]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Rx work check
authorEilon Greenstein <eilong@broadcom.com>
Mon, 25 Aug 2008 22:19:17 +0000 (15:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Aug 2008 22:19:17 +0000 (15:19 -0700)
commitf01c67c197e731477b5f3264dac35af6dcb989bb
treee5553fb83bf504ffd632742999cc13fcfdbcbd18
parent6358701e5e38956fe1f490e9663c1ae54c77aa16
bnx2x: Rx work check

The has Rx work check was wrong: when the FW was at the end of the page,
the driver was already at the beginning of the next page. Since the
check only validated that both driver and FW are pointing to the same
place, it concluded that there is still work to be done. This caused
some serious issues including long latency results on ping-pong test and
lockups while unloading the driver in that condition.

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x.h
drivers/net/bnx2x_main.c