david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[igbvf] Remove some unused Linux-specific portions of igbvf.h

These unused portions trigger a compiler warning under gcc 4.6, due to
the ambiguity over the "page" field in struct igbvf_buffer.

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-03-16 18:41:47 +00:00
parent 070100b21d
commit d94e62ded4
1 changed files with 4 additions and 2 deletions

View File

@ -102,6 +102,7 @@ struct igbvf_queue_stats {
* so a DMA handle can be stored along with the buffer
*/
struct igbvf_buffer {
#if 0
dma_addr_t dma;
dma_addr_t page_dma;
struct sk_buff *skb;
@ -119,9 +120,11 @@ struct igbvf_buffer {
};
};
struct page *page;
#endif
};
struct igbvf_ring {
#if 0
struct igbvf_adapter *adapter; /* backlink */
void *desc; /* pointer to ring memory */
dma_addr_t dma; /* phys address of ring */
@ -136,11 +139,9 @@ struct igbvf_ring {
/* array of buffer information structs */
struct igbvf_buffer *buffer_info;
#if 0
struct napi_struct napi;
char name[IFNAMSIZ + 5];
#endif
u32 eims_value;
u32 itr_val;
u16 itr_register;
@ -149,6 +150,7 @@ struct igbvf_ring {
struct sk_buff *rx_skb_top;
struct igbvf_queue_stats stats;
#endif
};
/* board specific private data structure */