From: Bhanu Prakash Gollapudi Date: Fri, 5 Aug 2011 00:38:48 +0000 (-0700) Subject: [SCSI] bnx2fc: Drop incoming ABTS X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~438 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=559bbbd07b8622dae743341bad5a10024e4b8247;p=users%2Fjedix%2Flinux-maple.git [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 Signed-off-by: James Bottomley (cherry picked from commit 3f8744d147375aca902de7a9f2632a89872565f4) Signed-off-by: Joe Jin --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index e0636473e2e9..fc3be98a1406 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -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)