]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
[SCSI] bnx2fc: Drop incoming ABTS
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:48 +0000 (17:38 -0700)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:09:32 +0000 (09:09 +0800)
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>
(cherry picked from commit 3f8744d147375aca902de7a9f2632a89872565f4)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index e0636473e2e954b86923000497c5c16e487e5b8e..fc3be98a1406dd09cd9cfebf3319dbde7699ea2c 100644 (file)
@@ -548,6 +548,14 @@ static void bnx2fc_recv_frame(struct sk_buff *skb)
                        break;
                }
        }
+
+       if (fh->fh_r_ctl == FC_RCTL_BA_ABTS) {
+               /* Drop incoming ABTS */
+               put_cpu();
+               kfree_skb(skb);
+               return;
+       }
+
        if (le32_to_cpu(fr_crc(fp)) !=
                        ~crc32(~0, skb->data, fr_len)) {
                if (stats->InvalidCRCCount < 5)