]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: Add batching support to redirect map
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 17 Jul 2017 16:29:40 +0000 (09:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:48:06 +0000 (09:48 -0700)
commit7d98f2a4c505ce090e77a8c06fbe2c7f3bbe3d8a
tree9983db89954e9d34d04d16fa023e5df752efd90d
parentded0f297905fd0b8b507408a40cc17f22a455879
xdp: Add batching support to redirect map

For performance reasons we want to avoid updating the tail pointer in
the driver tx ring as much as possible. To accomplish this we add
batching support to the redirect path in XDP.

This adds another ndo op "xdp_flush" that is used to inform the driver
that it should bump the tail pointer on the TX ring.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
include/linux/bpf.h
include/linux/filter.h
include/linux/netdevice.h
kernel/bpf/devmap.c
net/core/filter.c