[SCSI] bfa: io tag handling and minor bug fix.
authorKrishna Gudipati <kgudipat@brocade.com>
Tue, 14 Dec 2010 00:23:27 +0000 (16:23 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:37:17 +0000 (12:37 -0600)
commit15821f05b78dbeb2f897d1d22576449103a4d8d5
treed71a92b42ceba66e2cd33d5494b05f378cae0476
parentb704495c6707013806d1b66507a967896e2b4a7c
[SCSI] bfa: io tag handling and minor bug fix.

Fix iotag handling:

1) Update and check io tag for retry case.
2) Clearing upper 3 bits in io tag when an IO completes.
   The 3 upper bits in io tags are used for counting FCP exchange retry.
   Un-cleared bits will cause firmware to access invalid memory when the
   same io tag is used for an IO to a target that doesn't support FCP
   exchange retry.
3) Only check the effective bits when validating an iotag.

Other minor fixes:

1) Added trace to get FC header type with assert of unhandled packet received.
   Ignore the type FC_TYPE_FC_FSS (FC_XS).
2) Fixed the adapter info display check - to check for fcmode flag even.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/bfa_fcpim.c
drivers/scsi/bfa/bfa_fcpim.h
drivers/scsi/bfa/bfa_fcs_lport.c
drivers/scsi/bfa/bfad_im.c