Re: Measuring/Debugging XDP Performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christian,

On Tue, Jan 28, 2020 at 4:01 PM Christian Deacon <gamemann@xxxxxxxxxxx> wrote:
>
> Hey everyone,

[...]

>
> My question is, how would you know if you're using XDP-native or not?

I believe the 'ip link' command is able to tell you that. If you have
an XDP program attached to interface eth0, you can do something like:

$ ip link show dev eth0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 xdp qdisc
mq state UP mode DEFAULT group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
prog/xdp id 27 tag f95672269956c10d jited

Note the 'xdp' after the MTU size. IIRC, that indicates XDP Native.
XDP generic would show `xdpgeneric` instead. `xdpoffload` is also a
possible output if your program is offloaded to a SmartNIC.

>
>
>
> Here's a link to the outputs of the 'perf' command discussed above for
> anyone interested:
>
>
> https://g.gflclan.com/6sHmHPlo3W.zip
>
>
> Any help is highly appreciated and thank you for your time!
>

--
Matheus Castanho



[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux