net: add ndo to setup/query xdp prog in adapter rx
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 19 Jul 2016 19:16:48 +0000 (12:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 04:46:31 +0000 (21:46 -0700)
commita7862b45849fe2f8610a2bec89235580f55d337f
tree622f97fb21ba33f2e7a43e213d766f61874ace57
parent6a773a15a1e8874e5eccd2f29190c31085912c95
net: add ndo to setup/query xdp prog in adapter rx

Add one new netdev op for drivers implementing the BPF_PROG_TYPE_XDP
filter. The single op is used for both setup/query of the xdp program,
modelled after ndo_setup_tc.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c