bnx2i: Fixed packet error created when the sq_size is set to 16
authorEddie Wai <eddie.wai@broadcom.com>
Mon, 16 May 2011 18:13:18 +0000 (11:13 -0700)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:59 +0000 (12:20 -0500)
commitec6f0e050c97afad1f6843b64e916ed39ea4235b
tree6d336f6a00a488c9e564180c2d2f08b1723f1848
parentf21d2675922c3aeabdc41809f237675e3650a29f
bnx2i: Fixed packet error created when the sq_size is set to 16

BugLink: http://bugs.launchpad.net/bugs/793702

commit 7287c63e986fe1a51a89f4bb1327320274a7a741 upstream.

The number of chip's internal command cell, which is use to generate
SCSI cmd packets to the target, was not initialized correctly by
the driver when the sq_size is changed from the default 128.
This, in turn, will create a problem where the chip's transmit pipe
will erroneously reuse an old command cell that is no longer valid.
The fix is to correctly initialize the chip's command cell upon setup.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/scsi/bnx2i/bnx2i_hwi.c
drivers/scsi/bnx2i/bnx2i_iscsi.c