diff options
author | Michael Chan <michael.chan@broadcom.com> | 2019-07-08 17:53:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-08 15:15:24 -0700 |
commit | c1ba92a86db24dc9ca2648473d4820979a0d8a4c (patch) | |
tree | 194f7727ba0f3aa4c14b6d90760037f6721844a1 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | 52c0609258658ff35b85c654c568a50abd602ac6 (diff) | |
download | lwn-c1ba92a86db24dc9ca2648473d4820979a0d8a4c.tar.gz lwn-c1ba92a86db24dc9ca2648473d4820979a0d8a4c.zip |
bnxt_en: Refactor __bnxt_xmit_xdp().
__bnxt_xmit_xdp() is used by XDP_TX and ethtool loopback packet transmit.
Refactor it so that it can be re-used by the XDP_REDIRECT logic.
Restructure the TX interrupt handler logic to cleanly separate XDP_TX
logic in preparation for XDP_REDIRECT.
Acked-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 4b3ae92a082b..bf12cfce64c2 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -596,6 +596,7 @@ struct bnxt_sw_tx_bd { DEFINE_DMA_UNMAP_ADDR(mapping); u8 is_gso; u8 is_push; + u8 action; union { unsigned short nr_frags; u16 rx_prod; |