aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cnic_if.h
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2010-10-05 23:33:18 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-06 17:10:40 -0400
commitc2bff63fad94eeecf59e4ba8e4cb51688ccae1ec (patch)
tree677c59a6a9c3a37a569c14cf55c305d63c20b8c4 /drivers/net/cnic_if.h
parentd6214d7aaa9a82b206dac9e3b0665c49c522a271 (diff)
bnx2x, cnic: Fix SPQ return credit
Return proper L2 and L5 SPQ (slow path queue) credits. Previously, all SPQ events were counted as L5 types. Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cnic_if.h')
-rw-r--r--drivers/net/cnic_if.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/net/cnic_if.h b/drivers/net/cnic_if.h
index 4018de12f819..98ebac52013e 100644
--- a/drivers/net/cnic_if.h
+++ b/drivers/net/cnic_if.h
@@ -12,8 +12,8 @@
12#ifndef CNIC_IF_H 12#ifndef CNIC_IF_H
13#define CNIC_IF_H 13#define CNIC_IF_H
14 14
15#define CNIC_MODULE_VERSION "2.1.3" 15#define CNIC_MODULE_VERSION "2.2.5"
16#define CNIC_MODULE_RELDATE "June 24, 2010" 16#define CNIC_MODULE_RELDATE "September 29, 2010"
17 17
18#define CNIC_ULP_RDMA 0 18#define CNIC_ULP_RDMA 0
19#define CNIC_ULP_ISCSI 1 19#define CNIC_ULP_ISCSI 1
@@ -80,18 +80,15 @@ struct kcqe {
80#define DRV_CTL_IO_RD_CMD 0x102 80#define DRV_CTL_IO_RD_CMD 0x102
81#define DRV_CTL_CTX_WR_CMD 0x103 81#define DRV_CTL_CTX_WR_CMD 0x103
82#define DRV_CTL_CTXTBL_WR_CMD 0x104 82#define DRV_CTL_CTXTBL_WR_CMD 0x104
83#define DRV_CTL_COMPLETION_CMD 0x105 83#define DRV_CTL_RET_L5_SPQ_CREDIT_CMD 0x105
84#define DRV_CTL_START_L2_CMD 0x106 84#define DRV_CTL_START_L2_CMD 0x106
85#define DRV_CTL_STOP_L2_CMD 0x107 85#define DRV_CTL_STOP_L2_CMD 0x107
86#define DRV_CTL_RET_L2_SPQ_CREDIT_CMD 0x10c
86 87
87struct cnic_ctl_completion { 88struct cnic_ctl_completion {
88 u32 cid; 89 u32 cid;
89}; 90};
90 91
91struct drv_ctl_completion {
92 u32 comp_count;
93};
94
95struct cnic_ctl_info { 92struct cnic_ctl_info {
96 int cmd; 93 int cmd;
97 union { 94 union {
@@ -100,6 +97,10 @@ struct cnic_ctl_info {
100 } data; 97 } data;
101}; 98};
102 99
100struct drv_ctl_spq_credit {
101 u32 credit_count;
102};
103
103struct drv_ctl_io { 104struct drv_ctl_io {
104 u32 cid_addr; 105 u32 cid_addr;
105 u32 offset; 106 u32 offset;
@@ -115,7 +116,7 @@ struct drv_ctl_l2_ring {
115struct drv_ctl_info { 116struct drv_ctl_info {
116 int cmd; 117 int cmd;
117 union { 118 union {
118 struct drv_ctl_completion comp; 119 struct drv_ctl_spq_credit credit;
119 struct drv_ctl_io io; 120 struct drv_ctl_io io;
120 struct drv_ctl_l2_ring ring; 121 struct drv_ctl_l2_ring ring;
121 char bytes[MAX_DRV_CTL_DATA]; 122 char bytes[MAX_DRV_CTL_DATA];
@@ -162,7 +163,9 @@ struct cnic_eth_dev {
162 u32 max_iscsi_conn; 163 u32 max_iscsi_conn;
163 u32 max_fcoe_conn; 164 u32 max_fcoe_conn;
164 u32 max_rdma_conn; 165 u32 max_rdma_conn;
165 u32 reserved0[2]; 166 u32 fcoe_init_cid;
167 u16 iscsi_l2_client_id;
168 u16 iscsi_l2_cid;
166 169
167 int num_irq; 170 int num_irq;
168 struct cnic_irq irq_arr[MAX_CNIC_VEC]; 171 struct cnic_irq irq_arr[MAX_CNIC_VEC];