diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-08-23 13:20:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-23 23:38:13 -0400 |
commit | e46dab4d4be87769b09404135bc34f89e2e155d8 (patch) | |
tree | 65f0b0a321939c4b12d40e7674ce93c699c2843e /drivers/net/cxgb4/cxgb4.h | |
parent | f04b4dd2b1f533cef0507e0410ffc6732d21a272 (diff) |
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.h | 2 |
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 { | |||
463 | u8 counter_val[SGE_NCOUNTERS]; | 463 | u8 counter_val[SGE_NCOUNTERS]; |
464 | unsigned int starve_thres; | 464 | unsigned int starve_thres; |
465 | u8 idma_state[2]; | 465 | u8 idma_state[2]; |
466 | unsigned int egr_start; | ||
467 | unsigned int ingr_start; | ||
466 | void *egr_map[MAX_EGRQ]; /* qid->queue egress queue map */ | 468 | void *egr_map[MAX_EGRQ]; /* qid->queue egress queue map */ |
467 | struct sge_rspq *ingr_map[MAX_INGQ]; /* qid->queue ingress queue map */ | 469 | struct sge_rspq *ingr_map[MAX_INGQ]; /* qid->queue ingress queue map */ |
468 | DECLARE_BITMAP(starving_fl, MAX_EGRQ); | 470 | DECLARE_BITMAP(starving_fl, MAX_EGRQ); |