bnxt_en: Add basic XDP support.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Feb 2017 21:55:42 +0000 (16:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:31:00 +0000 (13:31 -0500)
commitc6d30e8391b85e00eb544e6cf047ee0160ee9938
tree4204297fe6a0fe740463c0583682b3fe8f352241
parentfa3e93e86cc3d1809fba67cb138883ed4bb74a5f
bnxt_en: Add basic XDP support.

Add basic ndo_xdp support to setup and query program, configure the NIC
to run in rx page mode, and support XDP_PASS, XDP_DROP, XDP_ABORTED
actions only.

v3: Pass modified offset and length to stack for XDP_PASS.
    Remove Kconfig option.

v2: Added trace_xdp_exception()
    Added dma_syncs.
    Added XDP headroom support.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Tested-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/Makefile
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c [new file with mode: 0644]
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h [new file with mode: 0644]