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.

Signed-off-by: Eilon Greenstein <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Eilon Greenstein 2009-10-15 00:17:20 -07:00 • committed by David S. Miller
commit b015e3d112
4 changed files with 33 additions and 33 deletions

View file

@ -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