diff options
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
| -rw-r--r-- | drivers/net/sfc/net_driver.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index 15b9068e5b87..215d5c51bfa0 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /**************************************************************************** | 1 | /**************************************************************************** |
| 2 | * Driver for Solarflare Solarstorm network controllers and boards | 2 | * Driver for Solarflare Solarstorm network controllers and boards |
| 3 | * Copyright 2005-2006 Fen Systems Ltd. | 3 | * Copyright 2005-2006 Fen Systems Ltd. |
| 4 | * Copyright 2005-2009 Solarflare Communications Inc. | 4 | * Copyright 2005-2011 Solarflare Communications Inc. |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License version 2 as published | 7 | * under the terms of the GNU General Public License version 2 as published |
| @@ -41,7 +41,7 @@ | |||
| 41 | * | 41 | * |
| 42 | **************************************************************************/ | 42 | **************************************************************************/ |
| 43 | 43 | ||
| 44 | #define EFX_DRIVER_VERSION "3.0" | 44 | #define EFX_DRIVER_VERSION "3.1" |
| 45 | 45 | ||
| 46 | #ifdef EFX_ENABLE_DEBUG | 46 | #ifdef EFX_ENABLE_DEBUG |
| 47 | #define EFX_BUG_ON_PARANOID(x) BUG_ON(x) | 47 | #define EFX_BUG_ON_PARANOID(x) BUG_ON(x) |
| @@ -214,15 +214,17 @@ struct efx_tx_queue { | |||
| 214 | * If both this and page are %NULL, the buffer slot is currently free. | 214 | * If both this and page are %NULL, the buffer slot is currently free. |
| 215 | * @page: The associated page buffer, if any. | 215 | * @page: The associated page buffer, if any. |
| 216 | * If both this and skb are %NULL, the buffer slot is currently free. | 216 | * If both this and skb are %NULL, the buffer slot is currently free. |
| 217 | * @data: Pointer to ethernet header | ||
| 218 | * @len: Buffer length, in bytes. | 217 | * @len: Buffer length, in bytes. |
| 218 | * @is_page: Indicates if @page is valid. If false, @skb is valid. | ||
| 219 | */ | 219 | */ |
| 220 | struct efx_rx_buffer { | 220 | struct efx_rx_buffer { |
| 221 | dma_addr_t dma_addr; | 221 | dma_addr_t dma_addr; |
| 222 | struct sk_buff *skb; | 222 | union { |
| 223 | struct page *page; | 223 | struct sk_buff *skb; |
| 224 | char *data; | 224 | struct page *page; |
| 225 | } u; | ||
| 225 | unsigned int len; | 226 | unsigned int len; |
| 227 | bool is_page; | ||
| 226 | }; | 228 | }; |
| 227 | 229 | ||
| 228 | /** | 230 | /** |
