bnx2x: properly handle CFC DEL in cnic flow
authorVladislav Zolotarov <vladz@broadcom.com>
Sun, 22 May 2011 10:08:09 +0000 (10:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 01:01:23 +0000 (21:01 -0400)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_main.c

index f45c0caf3240c4d87c555a7c5bdf2571d940102e..fb23d575d6336b86c441d834dc930f1541d7da60 100644 (file)
@@ -3666,7 +3666,8 @@ static int  bnx2x_cnic_handle_cfc_del(struct bnx2x *bp, u32 cid,
                                      union event_ring_elem *elem)
 {
        if (!bp->cnic_eth_dev.starting_cid  ||
-           cid < bp->cnic_eth_dev.starting_cid)
+           (cid < bp->cnic_eth_dev.starting_cid &&
+           cid != bp->cnic_eth_dev.iscsi_l2_cid))
                return 1;
 
        DP(BNX2X_MSG_SP, "got delete ramrod for CNIC CID %d\n", cid);