]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Add tx ring mapping logic.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Feb 2017 21:55:39 +0000 (16:55 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:34 +0000 (13:35 -0800)
commita3b8b579d2ebb7eb70abd694736235fa320050b9
tree228b33fbfd66953e9af38d604bd0a9c486698e78
parenta6666a451ca1e32586345d5b469f81661ac77f7f
bnxt_en: Add tx ring mapping logic.

Orabug: 25645429

To support XDP_TX, we need to add a set of dedicated TX rings, each
associated with the NAPI of an RX ring.  To assign XDP rings and regular
rings in a flexible way, we add a bp->tx_ring_map[] array to do the
remapping.  The netdev txq index is stored in the new field txq_index
so that we can retrieve the netdev txq when handling TX completions.
In this patch, before we introduce XDP_TX, the mapping is 1:1.

v2: Fixed a bug in bnxt_tx_int().

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit a960dec98861b009b4227d2ae3b94a142c83eb96)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h