]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Handle no aggregation ring gracefully.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 29 Dec 2016 17:13:43 +0000 (12:13 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:23 +0000 (13:35 -0800)
commit4b46dd42f1e644f1e5b712e79595d0ef00dc1d8b
tree74be998821ab6be281279d7739d42df169c35083
parent633e1af28006aac5394eb7ed5ed6e29ea855a577
bnxt_en: Handle no aggregation ring gracefully.

Orabug: 25645429

The current code assumes that we will always have at least 2 rx rings, 1
will be used as an aggregation ring for TPA and jumbo page placements.
However, it is possible, especially on a VF, that there is only 1 rx
ring available.  In this scenario, the current code will fail to initialize.
To handle it, we need to properly set up only 1 ring without aggregation.
Set a new flag BNXT_FLAG_NO_AGG_RINGS for this condition and add logic to
set up the chip to place RX data linearly into a single buffer per packet.

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