Skip to contentSkip to conversation

bnx2x: Disable HC coalescing when setting timeout to zero.

PATCH Applied Eilon Greenstein 2 participants 2 messages Jul 5, 2009 – Jul 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bnx2x: Disable HC coalescing when setting timeout to zero.

Problem reported by Flavio Leitner <[email protected]>:
When setting rx/tx coalescing timeout to the values less than 12 traffic was stopped.

The FW supports coalescing in 12us granularity, and so value of less then 12 should be interpreted as disabling coalescing

---
 drivers/net/bnx2x_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/bnx2x_main.c +2 -2
index 951714a..5737b75 100644
@@ -4434,7 +4434,7 @@ static void bnx2x_update_coalesce(struct bnx2x *bp)
 		REG_WR16(bp, BAR_USTRORM_INTMEM +
 			 USTORM_SB_HC_DISABLE_OFFSET(port, sb_id,
 						     U_SB_ETH_RX_CQ_INDEX),
-			 bp->rx_ticks ? 0 : 1);
+			 (bp->rx_ticks/12) ? 0 : 1);
 
 		/* HC_INDEX_C_ETH_TX_CQ_CONS */
 		REG_WR8(bp, BAR_CSTRORM_INTMEM +
@@ -4444,7 +4444,7 @@ static void bnx2x_update_coalesce(struct bnx2x *bp)
 		REG_WR16(bp, BAR_CSTRORM_INTMEM +
 			 CSTORM_SB_HC_DISABLE_OFFSET(port, sb_id,
 						     C_SB_ETH_TX_CQ_INDEX),
-			 bp->tx_ticks ? 0 : 1);
+			 (bp->tx_ticks/12) ? 0 : 1);
 	}
 }
 

--
1.6.0.4

maintainer Applied
#1 lore raw

From: "Eilon Greenstein" <[email protected]>
Date: Sun, 5 Jul 2009 17:18:12 +0300

Quoted 9 lines

Problem reported by Flavio Leitner <[email protected]>:
When setting rx/tx coalescing timeout to the values less than 12 traffic was stopped.

The FW supports coalescing in 12us granularity, and so value of less then 12 should be interpreted as disabling coalescing

Applied.