cnic: Return SPQ credit to bnx2x after ring setup and shutdown.
authorMichael Chan <mchan@broadcom.com>
Tue, 18 May 2010 11:32:53 +0000 (11:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 22:16:44 +0000 (15:16 -0700)
commit48f753d2ba94a4081400fa8d26bdbfbbf12b10de
tree1b4bf9472d89cee9a517e154a4af59f7b78214c7
parent1f1332a3cb7ac73e3bcff6ea42ff965c90a29d12
cnic: Return SPQ credit to bnx2x after ring setup and shutdown.

Everytime the iSCSI ring finishes setup or shutdown, we need to return
the SPQ (slow path queue) credit to the bnx2x driver.  Without this step,
the SPQ will eventually be full causing iSCSI to fail.  This can happen
after 3 or 4 MTU changes for example.

Add code to wait for these slow path commands to complete in the RX ring
and return the SPQ credit to bnx2x.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c
drivers/net/cnic.h