summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
diff options
context:
space:
mode:
authorMichael Chan2017-02-06 22:55:39 +0100
committerDavid S. Miller2017-02-07 19:30:59 +0100
commita960dec98861b009b4227d2ae3b94a142c83eb96 (patch)
tree6c427d4de9015c2d2ef9dcfed34ec2db00db06e0 /drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
parentbnxt_en: Centralize logic to reserve rings. (diff)
downloadkernel-qcow2-linux-a960dec98861b009b4227d2ae3b94a142c83eb96.tar.gz
kernel-qcow2-linux-a960dec98861b009b4227d2ae3b94a142c83eb96.tar.xz
kernel-qcow2-linux-a960dec98861b009b4227d2ae3b94a142c83eb96.zip
bnxt_en: Add tx ring mapping logic.
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c')
0 files changed, 0 insertions, 0 deletions