nfp: bpf: add support for XDP_FLAGS_HW_MODE
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 22 Jun 2017 01:25:08 +0000 (18:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jun 2017 17:42:20 +0000 (13:42 -0400)
commitcafa92ac255337517ca2466ab05ca9f24c0ca9de
tree6f1f17c742343527b93fc40f10e5baed8d070cdc
parent6a8ef5428c9fb5b589c2c912889d157abb50dd61
nfp: bpf: add support for XDP_FLAGS_HW_MODE

Respect the XDP_FLAGS_HW_MODE.  When it's set install the program
on the NIC and skip enabling XDP in the driver.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c