summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/cnic_defs.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2012-02-05 16:24:40 +0100
committerDavid S. Miller <davem@davemloft.net>2012-02-06 04:42:00 +0100
commit3238a9be4d7ad95c741bcfe6c147406eeef62d95 (patch)
treecfb3a9f8ca9117fb8adc8f413415262a00c8bb20 /drivers/net/ethernet/broadcom/cnic_defs.h
parentbnx2: Add missing memory barrier in bnx2_start_xmit() (diff)
downloadlinux-3238a9be4d7ad95c741bcfe6c147406eeef62d95.tar.xz
linux-3238a9be4d7ad95c741bcfe6c147406eeef62d95.zip
cnic: Add FCoE parity error recovery
When bnx2x returns error on FCoE SPQ messages, generate an error completion to bnx2fc immediately to speed up error recovery. This will eliminate length timeouts and spped up the reset of the device. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/cnic_defs.h')
-rw-r--r--drivers/net/ethernet/broadcom/cnic_defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic_defs.h b/drivers/net/ethernet/broadcom/cnic_defs.h
index 86936f6b6dbc..7271f14bda3b 100644
--- a/drivers/net/ethernet/broadcom/cnic_defs.h
+++ b/drivers/net/ethernet/broadcom/cnic_defs.h
@@ -1,7 +1,7 @@
/* cnic.c: Broadcom CNIC core network driver.
*
- * Copyright (c) 2006-2009 Broadcom Corporation
+ * Copyright (c) 2006-2012 Broadcom Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -69,6 +69,7 @@
#define FCOE_KCQE_COMPLETION_STATUS_ERROR (0x1)
#define FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE (0x3)
+#define FCOE_KCQE_COMPLETION_STATUS_NIC_ERROR (0x5)
/* KCQ (kernel completion queue) response op codes */
#define L4_KCQE_OPCODE_VALUE_CLOSE_COMP (53)