bnx2x: Disable multi-cos feature.

This change “bnx2x: Disable multi-cos feature.” (commit d1f0b5d) in Linux kernel is authored by Sudarsana Reddy Kalluru <skalluru [at]> on Tue Jul 23 19:32:41 2019 -0700.

Description of "bnx2x: Disable multi-cos feature."

The change “bnx2x: Disable multi-cos feature.” introduces changes as follows.

bnx2x: Disable multi-cos feature.

Commit 3968d38917eb ("bnx2x: Fix Multi-Cos.") which enabled multi-cos
feature after prolonged time in driver added some regression causing
numerous issues (sudden reboots, tx timeout etc.) reported by customers.
We plan to backout this commit and submit proper fix once we have root
cause of issues reported with this feature enabled.

Fixes: 3968d38917eb ("bnx2x: Fix Multi-Cos.")
Signed-off-by: Sudarsana Reddy Kalluru <>
Signed-off-by: Manish Chopra <>
Signed-off-by: David S. Miller <>

Linux kernel releases containing commit d1f0b5d

Linux kernel code changes from "bnx2x: Disable multi-cos feature."

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index e2be5a685130..e47ea92e2ae3 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -1934,8 +1934,7 @@ u16 bnx2x_select_queue(struct net_device *dev, struct sk_buff *skb,
 	/* select a non-FCoE queue */
-	return netdev_pick_tx(dev, skb, NULL) %
-	       (BNX2X_NUM_ETH_QUEUES(bp) * bp->max_cos);
+	return netdev_pick_tx(dev, skb, NULL) % (BNX2X_NUM_ETH_QUEUES(bp));
 void bnx2x_set_num_queues(struct bnx2x *bp)

The commit for this change in Linux stable tree is d1f0b5d (patch).

Last modified: 2020/02/08