summaryrefslogtreecommitdiff
path: root/drivers/net/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-08-23 21:20:58 +0400
committerDavid S. Miller <davem@davemloft.net>2010-08-24 07:38:13 +0400
commite46dab4d4be87769b09404135bc34f89e2e155d8 (patch)
tree65f0b0a321939c4b12d40e7674ce93c699c2843e /drivers/net/cxgb4/cxgb4.h
parentf04b4dd2b1f533cef0507e0410ffc6732d21a272 (diff)
downloadlinux-e46dab4d4be87769b09404135bc34f89e2e155d8.tar.xz
cxgb4: handle Rx/Tx queue ranges not starting at 0
Currently the driver assumes that queue IDs start at 0 but that's true only for function 0. To support operation on other functions get the start of the queue ranges from FW and offset accordingly. Signed-off-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4/cxgb4.h')
-rw-r--r--drivers/net/cxgb4/cxgb4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/cxgb4.h b/drivers/net/cxgb4/cxgb4.h
index 6e562c0dad7d..3ece9f5069fa 100644
--- a/drivers/net/cxgb4/cxgb4.h
+++ b/drivers/net/cxgb4/cxgb4.h
@@ -463,6 +463,8 @@ struct sge {
u8 counter_val[SGE_NCOUNTERS];
unsigned int starve_thres;
u8 idma_state[2];
+ unsigned int egr_start;
+ unsigned int ingr_start;
void *egr_map[MAX_EGRQ]; /* qid->queue egress queue map */
struct sge_rspq *ingr_map[MAX_INGQ]; /* qid->queue ingress queue map */
DECLARE_BITMAP(starving_fl, MAX_EGRQ);