aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorAlexandre Rames <arames@solarflare.com>2013-01-11 07:26:21 -0500
committerBen Hutchings <bhutchings@solarflare.com>2013-03-07 15:21:57 -0500
commit97d48a10c670f87bba9e5b2241e32f2eccd3fef0 (patch)
tree49751747e27c3963e1bd1f788ea4005f9f5e964f /drivers/net/ethernet/sfc/net_driver.h
parent9230451af9efcf5e3d60ce7f4fec2468e8ce54b1 (diff)
sfc: Remove rx_alloc_method SKB
[bwh: Remove more dead code, and make efx_ptp_rx() pull the data it needs into the header area.] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index cdcf510311c3..c83fe090406d 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -206,25 +206,19 @@ struct efx_tx_queue {
206/** 206/**
207 * struct efx_rx_buffer - An Efx RX data buffer 207 * struct efx_rx_buffer - An Efx RX data buffer
208 * @dma_addr: DMA base address of the buffer 208 * @dma_addr: DMA base address of the buffer
209 * @skb: The associated socket buffer. Valid iff !(@flags & %EFX_RX_BUF_PAGE). 209 * @page: The associated page buffer.
210 * Will be %NULL if the buffer slot is currently free. 210 * Will be %NULL if the buffer slot is currently free.
211 * @page: The associated page buffer. Valif iff @flags & %EFX_RX_BUF_PAGE. 211 * @page_offset: Offset within page
212 * Will be %NULL if the buffer slot is currently free.
213 * @page_offset: Offset within page. Valid iff @flags & %EFX_RX_BUF_PAGE.
214 * @len: Buffer length, in bytes. 212 * @len: Buffer length, in bytes.
215 * @flags: Flags for buffer and packet state. 213 * @flags: Flags for buffer and packet state.
216 */ 214 */
217struct efx_rx_buffer { 215struct efx_rx_buffer {
218 dma_addr_t dma_addr; 216 dma_addr_t dma_addr;
219 union { 217 struct page *page;
220 struct sk_buff *skb;
221 struct page *page;
222 } u;
223 u16 page_offset; 218 u16 page_offset;
224 u16 len; 219 u16 len;
225 u16 flags; 220 u16 flags;
226}; 221};
227#define EFX_RX_BUF_PAGE 0x0001
228#define EFX_RX_PKT_CSUMMED 0x0002 222#define EFX_RX_PKT_CSUMMED 0x0002
229#define EFX_RX_PKT_DISCARD 0x0004 223#define EFX_RX_PKT_DISCARD 0x0004
230 224
@@ -266,8 +260,6 @@ struct efx_rx_page_state {
266 * @min_fill: RX descriptor minimum non-zero fill level. 260 * @min_fill: RX descriptor minimum non-zero fill level.
267 * This records the minimum fill level observed when a ring 261 * This records the minimum fill level observed when a ring
268 * refill was triggered. 262 * refill was triggered.
269 * @alloc_page_count: RX allocation strategy counter.
270 * @alloc_skb_count: RX allocation strategy counter.
271 * @slow_fill: Timer used to defer efx_nic_generate_fill_event(). 263 * @slow_fill: Timer used to defer efx_nic_generate_fill_event().
272 */ 264 */
273struct efx_rx_queue { 265struct efx_rx_queue {
@@ -286,8 +278,6 @@ struct efx_rx_queue {
286 unsigned int fast_fill_trigger; 278 unsigned int fast_fill_trigger;
287 unsigned int min_fill; 279 unsigned int min_fill;
288 unsigned int min_overfill; 280 unsigned int min_overfill;
289 unsigned int alloc_page_count;
290 unsigned int alloc_skb_count;
291 struct timer_list slow_fill; 281 struct timer_list slow_fill;
292 unsigned int slow_fill_count; 282 unsigned int slow_fill_count;
293}; 283};
@@ -336,10 +326,6 @@ enum efx_rx_alloc_method {
336 * @event_test_cpu: Last CPU to handle interrupt or test event for this channel 326 * @event_test_cpu: Last CPU to handle interrupt or test event for this channel
337 * @irq_count: Number of IRQs since last adaptive moderation decision 327 * @irq_count: Number of IRQs since last adaptive moderation decision
338 * @irq_mod_score: IRQ moderation score 328 * @irq_mod_score: IRQ moderation score
339 * @rx_alloc_level: Watermark based heuristic counter for pushing descriptors
340 * and diagnostic counters
341 * @rx_alloc_push_pages: RX allocation method currently in use for pushing
342 * descriptors
343 * @n_rx_tobe_disc: Count of RX_TOBE_DISC errors 329 * @n_rx_tobe_disc: Count of RX_TOBE_DISC errors
344 * @n_rx_ip_hdr_chksum_err: Count of RX IP header checksum errors 330 * @n_rx_ip_hdr_chksum_err: Count of RX IP header checksum errors
345 * @n_rx_tcp_udp_chksum_err: Count of RX TCP and UDP checksum errors 331 * @n_rx_tcp_udp_chksum_err: Count of RX TCP and UDP checksum errors
@@ -371,9 +357,6 @@ struct efx_channel {
371 unsigned int rfs_filters_added; 357 unsigned int rfs_filters_added;
372#endif 358#endif
373 359
374 int rx_alloc_level;
375 int rx_alloc_push_pages;
376
377 unsigned n_rx_tobe_disc; 360 unsigned n_rx_tobe_disc;
378 unsigned n_rx_ip_hdr_chksum_err; 361 unsigned n_rx_ip_hdr_chksum_err;
379 unsigned n_rx_tcp_udp_chksum_err; 362 unsigned n_rx_tcp_udp_chksum_err;