diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index c5f73edd5390..00c303a745db 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -148,10 +148,6 @@ struct ixgbe_ring { | |||
148 | int cpu; | 148 | int cpu; |
149 | #endif | 149 | #endif |
150 | struct ixgbe_queue_stats stats; | 150 | struct ixgbe_queue_stats stats; |
151 | u64 v_idx; /* maps directly to the index for this ring in the hardware | ||
152 | * vector array, can also be used for finding the bit in EICR | ||
153 | * and friends that represents the vector for this ring */ | ||
154 | |||
155 | 151 | ||
156 | u16 work_limit; /* max work per interrupt */ | 152 | u16 work_limit; /* max work per interrupt */ |
157 | u16 rx_buf_len; | 153 | u16 rx_buf_len; |
@@ -193,6 +189,9 @@ struct ixgbe_ring_feature { | |||
193 | */ | 189 | */ |
194 | struct ixgbe_q_vector { | 190 | struct ixgbe_q_vector { |
195 | struct ixgbe_adapter *adapter; | 191 | struct ixgbe_adapter *adapter; |
192 | unsigned int v_idx; /* index of q_vector within array, also used for | ||
193 | * finding the bit in EICR and friends that | ||
194 | * represents the vector for this ring */ | ||
196 | struct napi_struct napi; | 195 | struct napi_struct napi; |
197 | DECLARE_BITMAP(rxr_idx, MAX_RX_QUEUES); /* Rx ring indices */ | 196 | DECLARE_BITMAP(rxr_idx, MAX_RX_QUEUES); /* Rx ring indices */ |
198 | DECLARE_BITMAP(txr_idx, MAX_TX_QUEUES); /* Tx ring indices */ | 197 | DECLARE_BITMAP(txr_idx, MAX_TX_QUEUES); /* Tx ring indices */ |
@@ -201,7 +200,6 @@ struct ixgbe_q_vector { | |||
201 | u8 tx_itr; | 200 | u8 tx_itr; |
202 | u8 rx_itr; | 201 | u8 rx_itr; |
203 | u32 eitr; | 202 | u32 eitr; |
204 | u32 v_idx; /* vector index in list */ | ||
205 | }; | 203 | }; |
206 | 204 | ||
207 | /* Helper macros to switch between ints/sec and what the register uses. | 205 | /* Helper macros to switch between ints/sec and what the register uses. |
@@ -401,7 +399,8 @@ extern void ixgbe_free_tx_resources(struct ixgbe_adapter *, struct ixgbe_ring *) | |||
401 | extern void ixgbe_update_stats(struct ixgbe_adapter *adapter); | 399 | extern void ixgbe_update_stats(struct ixgbe_adapter *adapter); |
402 | extern int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter); | 400 | extern int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter); |
403 | extern void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter); | 401 | extern void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter); |
404 | extern void ixgbe_write_eitr(struct ixgbe_adapter *, int, u32); | 402 | extern void ixgbe_write_eitr(struct ixgbe_q_vector *); |
403 | extern int ethtool_ioctl(struct ifreq *ifr); | ||
405 | #ifdef IXGBE_FCOE | 404 | #ifdef IXGBE_FCOE |
406 | extern void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter); | 405 | extern void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter); |
407 | extern int ixgbe_fso(struct ixgbe_adapter *adapter, | 406 | extern int ixgbe_fso(struct ixgbe_adapter *adapter, |