[SCSI] bnx2i: Added return code check for chip kwqe submission request
authorEddie Wai <eddie.wai@broadcom.com>
Tue, 23 Nov 2010 23:29:29 +0000 (15:29 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:14 +0000 (12:24 -0600)
commitbee348770dcaeafa57bbd32129ce0cb16a4342d6
treea25e1730b3652b47963176778c4c67f184fd6c3e
parent842158d7b7bc3b1a49c31f43ac20414234c33a8d
[SCSI] bnx2i: Added return code check for chip kwqe submission request

Added the handling for cases when a chip request is made to the
CNIC module but the hardware is not ready to accept.  This would
lead to many unnecessary wait timeouts.
This code adds check in the connect establishment and destruction
path.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bnx2i/bnx2i.h
drivers/scsi/bnx2i/bnx2i_hwi.c
drivers/scsi/bnx2i/bnx2i_iscsi.c