summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2017-07-17 09:26:45 -0700
committerDavid S. Miller <davem@davemloft.net>2017-07-17 09:48:05 -0700
commitd445516966dcb2924741b13b27738b54df2af01a (patch)
treea93bc06b2cf7176add789cc2368a029d9bafcab6 /include/linux
parent90382dca61137444cb8f639db0a76c4d084763d7 (diff)
downloadlwn-d445516966dcb2924741b13b27738b54df2af01a.tar.gz
lwn-d445516966dcb2924741b13b27738b54df2af01a.zip
net: xdp: support xdp generic on virtual devices
XDP generic allows users to test XDP programs and/or run them with degraded performance on devices that do not yet support XDP. For testing I typically test eBPF programs using a set of veth devices. This allows testing topologies that would otherwise be difficult to setup especially in the early stages of development. This patch adds a xdp generic hook to the netif_rx_internal() function which is called from dev_forward_skb(). With this addition attaching XDP programs to veth devices works as expected! Also I noticed multiple drivers using netif_rx(). These devices will also benefit and generic XDP will work for them as well. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Tested-by: Andy Gospodarek <andy@greyhouse.net> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions