bnxt_en: Add a set of TX rings to support XDP.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Feb 2017 21:55:40 +0000 (16:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:30:59 +0000 (13:30 -0500)
commit5f4492493e75dafc5cbb96eabe0f146c2ffb1e3d
treee3b3d8517ba722a0be8ea24e93f7cd102727ece4
parenta960dec98861b009b4227d2ae3b94a142c83eb96
bnxt_en: Add a set of TX rings to support XDP.

Add logic for an extra set of TX rings for XDP.  If enabled, this
set of TX rings equals the number of RX rings and shares the same
IRQ as the RX ring set.  A new field bp->tx_nr_rings_xdp is added
to keep track of these TX XDP rings.  Adjust all other relevant functions
to handle bp->tx_nr_rings_xdp.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c