]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Allowing 0 as initial fairness value
authorEilon Greenstein <eilong@broadcom.com>
Thu, 15 Oct 2009 07:17:20 +0000 (00:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2009 07:17:20 +0000 (00:17 -0700)
commit564717b09592e733bab8fa9e1b882a0b5c11fee0
tree5d3d2c780e4ac8cfdd88e921c36fbcf447d585ad
parentdaac637f7ace499aa53b970225d1db2889c3ddb4
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 <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_hsi.h
drivers/net/bnx2x_main.c
firmware/Makefile
firmware/WHENCE