veth interface and native XDP

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

 



Hello,

I am trying out XDP using the example
https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/test_xdp_redirect.sh

To set the xdp program instead of using xdpgeneric I did

ip link set dev veth1 xdp obj test_xdp_redirect.o sec redirect_to_222

My kernel version is 4.15.0 which I think has native XDP support for
veth. But from the ip link ouptut it looks like the generic XDP is
being used and not the native XDP for veth.

What is the right way to make use of the native XDP for veth ?

root@ubuntu-G551JW:~# ip link show dev veth1
111: veth1@if18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 xdpgeneric
qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether c2:ff:f4:d9:15:8f brd ff:ff:ff:ff:ff:ff link-netnsid 0
    prog/xdp id 32 tag d92aa6f7de3bd7d0 jited
root@ubuntu-G551JW:~#

Thanks for the help.

-Kumar



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

  Powered by Linux