User Tools

Site Tools


0x13:reports:d2t1t06-veth-xdp-for-containers

This is an old revision of the document!


Day 2 / Track 1 / Talk 6 Talk – Nuts-n-Bolts: Veth XDP: XDP for containers Speakers: Toshiaki Makita and William Tu Report by: Anjali Singhai

Veth XDP: generic vs native

1. Performance wise little difference, then what is the point of doing native XDP for veth?

a. The point is XDP_REDIRECT (can be done without allocating skb_buff, using xdp_frame)

b. Does not require allocation/free of additional Meta data buffer

c. Native redirect converts to xdp_buff is very low overhead.

d. Generic from stack converts to skb to xdp_buff which is high overhead

e. Use case:

                                                                           i.     Containers, Container can install its own XDP program and use container to container using xdp_redirect
                                                                         ii.     Program chaining

1. Veth native XDP added rx queues and NAPI handler

2. This avoids infinite loop and stack overflow due to misconfigured XDP_redirect chain.

Site: https://www.netdevconf.org/0x13/session.html?talk-veth-xdp Slides: Videos:

0x13/reports/d2t1t06-veth-xdp-for-containers.1554209531.txt.gz · Last modified: 2019/09/28 17:04 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki