diff options
author | Michael Chan <mchan@broadcom.com> | 2011-06-13 21:32:38 -0400 |
---|---|---|
committer | David S. Miller <davem@conan.davemloft.net> | 2011-06-15 10:56:12 -0400 |
commit | 59e5137357559ec60b2e72bdc3d5a7e22c47212b (patch) | |
tree | d5656a3545e64020c82166c2933a8e47b375da59 /drivers/net/cnic.h | |
parent | b7c7deeb4c77538577f0b6a724f10ce8693eb648 (diff) |
cnic: Move indexing function pointers to struct kcq_info
The hardware indexing scheme for the FCoE kcq will change in the upcoming
firmware. This patch will cope with the change easily.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
Diffstat (limited to 'drivers/net/cnic.h')
-rw-r--r-- | drivers/net/cnic.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/cnic.h b/drivers/net/cnic.h index 3367a6d3a774..eb11821108a0 100644 --- a/drivers/net/cnic.h +++ b/drivers/net/cnic.h | |||
@@ -185,6 +185,9 @@ struct kcq_info { | |||
185 | u16 sw_prod_idx; | 185 | u16 sw_prod_idx; |
186 | u16 *status_idx_ptr; | 186 | u16 *status_idx_ptr; |
187 | u32 io_addr; | 187 | u32 io_addr; |
188 | |||
189 | u16 (*next_idx)(u16); | ||
190 | u16 (*hw_idx)(u16); | ||
188 | }; | 191 | }; |
189 | 192 | ||
190 | struct iro { | 193 | struct iro { |
@@ -332,8 +335,6 @@ struct cnic_local { | |||
332 | void (*disable_int_sync)(struct cnic_dev *); | 335 | void (*disable_int_sync)(struct cnic_dev *); |
333 | void (*ack_int)(struct cnic_dev *); | 336 | void (*ack_int)(struct cnic_dev *); |
334 | void (*close_conn)(struct cnic_sock *, u32 opcode); | 337 | void (*close_conn)(struct cnic_sock *, u32 opcode); |
335 | u16 (*next_idx)(u16); | ||
336 | u16 (*hw_idx)(u16); | ||
337 | }; | 338 | }; |
338 | 339 | ||
339 | struct bnx2x_bd_chain_next { | 340 | struct bnx2x_bd_chain_next { |