aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2008-09-11 22:58:43 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 18:54:56 -0400
commit762f4c57105853d1cbad3b96ef18aa23beff3db2 (patch)
tree7df0c1a8e5d0ae30e7c4138c4f182d1d1dc2bba4 /drivers/net/ixgbe/ixgbe.h
parentff819cfb5d95c4945811f5e33aa57274885c7527 (diff)
ixgbe: recycle pages in packet split mode
most of the time we only need 1500 bytes for a packet which means we don't need a whole 4k page for each packet. Share the allocation by using a reference count to the page and giving half to two receive descriptors. This can enable us to use packet split mode all the time due to the performance increase of allocating half the pages. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ixgbe/ixgbe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 064af675a941..71ddac6ac4f4 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -114,6 +114,7 @@ struct ixgbe_rx_buffer {
114 dma_addr_t dma; 114 dma_addr_t dma;
115 struct page *page; 115 struct page *page;
116 dma_addr_t page_dma; 116 dma_addr_t page_dma;
117 unsigned int page_offset;
117}; 118};
118 119
119struct ixgbe_queue_stats { 120struct ixgbe_queue_stats {