aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/cnic.h
diff options
context:
space:
mode:
authorMichael Chan2011-06-14 01:32:38 +0000
committerDavid S. Miller2011-06-15 10:56:12 -0400
commit59e5137357559ec60b2e72bdc3d5a7e22c47212b (patch)
treed5656a3545e64020c82166c2933a8e47b375da59 /drivers/net/cnic.h
parentb7c7deeb4c77538577f0b6a724f10ce8693eb648 (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.h5
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 {
u16 sw_prod_idx;
u16 *status_idx_ptr;
u32 io_addr;
+
+ u16 (*next_idx)(u16);
+ u16 (*hw_idx)(u16);
};
struct iro {
@@ -332,8 +335,6 @@ struct cnic_local {
void (*disable_int_sync)(struct cnic_dev *);
void (*ack_int)(struct cnic_dev *);
void (*close_conn)(struct cnic_sock *, u32 opcode);
- u16 (*next_idx)(u16);
- u16 (*hw_idx)(u16);
};
struct bnx2x_bd_chain_next {