diff options
Diffstat (limited to 'drivers/net/e1000/e1000.h')
-rw-r--r-- | drivers/net/e1000/e1000.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h index 3aeba9305dfa..583b823f760c 100644 --- a/drivers/net/e1000/e1000.h +++ b/drivers/net/e1000/e1000.h | |||
@@ -253,9 +253,7 @@ struct e1000_adapter { | |||
253 | u16 link_speed; | 253 | u16 link_speed; |
254 | u16 link_duplex; | 254 | u16 link_duplex; |
255 | spinlock_t stats_lock; | 255 | spinlock_t stats_lock; |
256 | #ifdef CONFIG_E1000_NAPI | ||
257 | spinlock_t tx_queue_lock; | 256 | spinlock_t tx_queue_lock; |
258 | #endif | ||
259 | unsigned int total_tx_bytes; | 257 | unsigned int total_tx_bytes; |
260 | unsigned int total_tx_packets; | 258 | unsigned int total_tx_packets; |
261 | unsigned int total_rx_bytes; | 259 | unsigned int total_rx_bytes; |
@@ -293,22 +291,16 @@ struct e1000_adapter { | |||
293 | bool detect_tx_hung; | 291 | bool detect_tx_hung; |
294 | 292 | ||
295 | /* RX */ | 293 | /* RX */ |
296 | #ifdef CONFIG_E1000_NAPI | ||
297 | bool (*clean_rx)(struct e1000_adapter *adapter, | 294 | bool (*clean_rx)(struct e1000_adapter *adapter, |
298 | struct e1000_rx_ring *rx_ring, | 295 | struct e1000_rx_ring *rx_ring, |
299 | int *work_done, int work_to_do); | 296 | int *work_done, int work_to_do); |
300 | #else | ||
301 | bool (*clean_rx)(struct e1000_adapter *adapter, | ||
302 | struct e1000_rx_ring *rx_ring); | ||
303 | #endif | ||
304 | void (*alloc_rx_buf)(struct e1000_adapter *adapter, | 297 | void (*alloc_rx_buf)(struct e1000_adapter *adapter, |
305 | struct e1000_rx_ring *rx_ring, | 298 | struct e1000_rx_ring *rx_ring, |
306 | int cleaned_count); | 299 | int cleaned_count); |
307 | struct e1000_rx_ring *rx_ring; /* One per active queue */ | 300 | struct e1000_rx_ring *rx_ring; /* One per active queue */ |
308 | #ifdef CONFIG_E1000_NAPI | ||
309 | struct napi_struct napi; | 301 | struct napi_struct napi; |
310 | struct net_device *polling_netdev; /* One per active queue */ | 302 | struct net_device *polling_netdev; /* One per active queue */ |
311 | #endif | 303 | |
312 | int num_tx_queues; | 304 | int num_tx_queues; |
313 | int num_rx_queues; | 305 | int num_rx_queues; |
314 | 306 | ||