bnx2x: fix handling mf storage modes
PATCH 1/1 bnx2x: fix handling mf storage modes
Since commit a3348722 AFEX FCoE function is continuously reset. The patch prevents the resetting and removes debug print to stop garbaging syslog.
Signed-off-by Dmitry Kravkov <[email protected]>
Signed-off-by Ariel Elior <[email protected]>
Signed-off-by Eilon Greenstein <[email protected]>
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 10 +++++++--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +7 -3
@@ -2957,9 +2957,13 @@ netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev) skb_shinfo(skb)->nr_frags + BDS_PER_TX_PKT + NEXT_CNT_PER_TX_PKT(MAX_BDS_PER_TX_PKT))) { -bnx2x_fp_qstats (bp, txdata->parent_fp)->driver_xoff++; -netif_tx_stop_queue (txq); -BNX2X_ERR ("BUG! Tx ring full when queue awake!\n" ); +/* Handle special storage cases separately */ +if (txdata->tx_ring_size !=0 ) { +BNX2X_ERR ("BUG! Tx ring full when queue awake!\n" ); +bnx2x_fp_qstats (bp, txdata->parent_fp)->driver_xoff++; +netif_tx_stop_queue (txq); + } +return NETDEV_TX_BUSY ; }
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +1 -1
@@ -126,7 +126,7 @@ static inline int bnx2x_exe_queue_add(struct bnx2x *bp,/* Check if this request is ok */ rc = o->validate (bp, o->owner, elem);if (rc) { -BNX2X_ERR ("Preamble failed: %d\n" , rc); +DP (BNX2X_MSG_SP ,"Preamble failed: %d\n" , rc); goto free_and_exit; } }
Signature · 1 line
1.7.7.2
From: "Dmitry Kravkov" <[email protected]>
Date: Tue, 16 Oct 2012 13:28:27 +0200
Quoted 7 lines
Since commit
a3348722AFEX FCoE function is continuously reset. The patch prevents the resetting and removes debug print to stop garbaging syslog.Signed-off-by Dmitry Kravkov <[email protected]>Signed-off-by Ariel Elior <[email protected]>Signed-off-by Eilon Greenstein <[email protected]>
Applied.