cxgb4: handle Rx/Tx queue ranges not starting at 0
authorDimitris Michailidis <dm@chelsio.com>
Mon, 23 Aug 2010 17:20:58 +0000 (17:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2010 03:38:13 +0000 (20:38 -0700)
commite46dab4d4be87769b09404135bc34f89e2e155d8
tree65f0b0a321939c4b12d40e7674ce93c699c2843e
parentf04b4dd2b1f533cef0507e0410ffc6732d21a272
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>
drivers/net/cxgb4/cxgb4.h
drivers/net/cxgb4/cxgb4_main.c
drivers/net/cxgb4/sge.c
drivers/net/cxgb4/t4fw_api.h