aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2011-08-04 20:38:48 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:35:45 -0400
commit3f8744d147375aca902de7a9f2632a89872565f4 (patch)
treefc1c0ac4489141a22e0d98bc28e046a69bc0198a /drivers/scsi/bnx2fc/bnx2fc_fcoe.c
parent5fb8fd0dbc0f7e3bc3ea594223e5d4b50c2092d9 (diff)
[SCSI] bnx2fc: Drop incoming ABTS
As an initiator, driver need not handle incoming ABTS. It initiates an ABTS if any IO requests time out. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_fcoe.c')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_fcoe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index ca2e20690b93..62c0e94a916f 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -547,6 +547,14 @@ static void bnx2fc_recv_frame(struct sk_buff *skb)
547 break; 547 break;
548 } 548 }
549 } 549 }
550
551 if (fh->fh_r_ctl == FC_RCTL_BA_ABTS) {
552 /* Drop incoming ABTS */
553 put_cpu();
554 kfree_skb(skb);
555 return;
556 }
557
550 if (le32_to_cpu(fr_crc(fp)) != 558 if (le32_to_cpu(fr_crc(fp)) !=
551 ~crc32(~0, skb->data, fr_len)) { 559 ~crc32(~0, skb->data, fr_len)) {
552 if (stats->InvalidCRCCount < 5) 560 if (stats->InvalidCRCCount < 5)