Skip to contentSkip to conversation

bnx2x: Allowing 0 as initial fairness value

PATCH New Eilon Greenstein 1 participant 1 message Oct 15, 2009

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

PATCH 2/8 bnx2x: Allowing 0 as initial fairness value

Value of zero was used to disable the fairness mechanism. Though the code (driver and FW) allowed changing the value at run time, it did not allow to do that if the mechanism was disabled to begin with.
Fixed the FW to allow turning on and off the mechanism at run time. Fixed the code to read the value from the chip at the right sequence.
Without this fix, if the initial value was set to zero, traffic could not run on the interface.

---
 drivers/net/bnx2x_hsi.h  |    4 +-
 drivers/net/bnx2x_main.c |   56 +++++++++++++++++++++++-----------------------
 firmware/Makefile        |    2 +-
 firmware/WHENCE          |    4 +-
 4 files changed, 33 insertions(+), 33 deletions(-)
drivers/net/bnx2x_hsi.h +2 -2
index 994743d..dc2f8ed 100644
@@ -1259,8 +1259,8 @@ struct host_func_stats {
 
 
 #define BCM_5710_FW_MAJOR_VERSION			5
-#define BCM_5710_FW_MINOR_VERSION			0
-#define BCM_5710_FW_REVISION_VERSION			21
+#define BCM_5710_FW_MINOR_VERSION			2
+#define BCM_5710_FW_REVISION_VERSION			7
 #define BCM_5710_FW_ENGINEERING_VERSION 		0
 #define BCM_5710_FW_COMPILE_FLAGS			1
 
drivers/net/bnx2x_main.c +28 -28

113 lines not on this page · raw message

firmware/Makefile +1 -1
index a6c7c3e..45c0466 100644
@@ -32,7 +32,7 @@ fw-shipped-$(CONFIG_ADAPTEC_STARFIRE) += adaptec/starfire_rx.bin \
 					 adaptec/starfire_tx.bin
 fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin
 fw-shipped-$(CONFIG_ATM_AMBASSADOR) += atmsar11.fw
-fw-shipped-$(CONFIG_BNX2X) += bnx2x-e1-5.0.21.0.fw bnx2x-e1h-5.0.21.0.fw
+fw-shipped-$(CONFIG_BNX2X) += bnx2x-e1-5.2.7.0.fw bnx2x-e1h-5.2.7.0.fw
 fw-shipped-$(CONFIG_BNX2) += bnx2/bnx2-mips-09-5.0.0.j3.fw \
 			     bnx2/bnx2-rv2p-09-5.0.0.j3.fw \
 			     bnx2/bnx2-rv2p-09ax-5.0.0.j3.fw \
firmware/WHENCE +2 -2
index c437e14..a07aede 100644
@@ -674,8 +674,8 @@ Found in hex form in kernel source.
 
 Driver: bnx2x: Broadcom Everest
 
-File: bnx2x-e1-4.8.53.0.fw.ihex
-File: bnx2x-e1h-4.8.53.0.fw.ihex
+File: bnx2x-e1-5.2.7.0.fw.ihex
+File: bnx2x-e1h-5.2.7.0.fw.ihex
 
 License:
   Copyright (c) 2007-2009 Broadcom Corporation
Signature · 1 line
1.5.4.3