sfc: Reduce size of efx_rx_buffer by unionising skb and page

[bwh: Forward-ported to net-next-2.6.]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
Steve Hodgson
2011-02-24 23:36:01 +00:00
committed by Ben Hutchings
parent 5b2c4dd2ec
commit 8ba5366ada
2 changed files with 51 additions and 53 deletions

View File

@@ -216,13 +216,17 @@ struct efx_tx_queue {
* If both this and skb are %NULL, the buffer slot is currently free.
* @data: Pointer to ethernet header
* @len: Buffer length, in bytes.
* @is_page: Indicates if @page is valid. If false, @skb is valid.
*/
struct efx_rx_buffer {
dma_addr_t dma_addr;
struct sk_buff *skb;
struct page *page;
union {
struct sk_buff *skb;
struct page *page;
} u;
char *data;
unsigned int len;
bool is_page;
};
/**