]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] 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)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:40:45 +0000 (12:40 -0400)
commite56bbd9f8248348695ef2f4520ac3252ca736a03
treef9c712bc37bd16ed2437459c8989d868eeaf2112
parente7f8aa5591d17af13610194f7f5e067fb97649a3
[SCSI] bnx2i: Fixed packet error created when the sq_size is set to 16

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>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/bnx2i/bnx2i_hwi.c
drivers/scsi/bnx2i/bnx2i_iscsi.c