aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2008-07-08 18:11:40 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-07-11 01:20:32 -0400
commitbf36c1a0040cc6ccd63cdd1cec25d2085f2df964 (patch)
treebc23a159e39a8f99ae7359484cadd77237e5828f /drivers/net/igb/igb.h
parent7dfc16fab1186769d7d0086830ab3fbc8fddfcba (diff)
igb: add page recycling support
This patch adds support for page recycling by splitting the page into two usable portions and tracking the reference count. Signed-off-by: Alexander Duyck <alexander.h.duyck@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/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index ee08010d2c4f..f41b9996d2ed 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -125,6 +125,7 @@ struct igb_buffer {
125 struct { 125 struct {
126 struct page *page; 126 struct page *page;
127 u64 page_dma; 127 u64 page_dma;
128 unsigned int page_offset;
128 }; 129 };
129 }; 130 };
130}; 131};
@@ -163,9 +164,6 @@ struct igb_ring {
163 }; 164 };
164 /* RX */ 165 /* RX */
165 struct { 166 struct {
166 /* arrays of page information for packet split */
167 struct sk_buff *pending_skb;
168 int pending_skb_page;
169 int no_itr_adjust; 167 int no_itr_adjust;
170 struct igb_queue_stats rx_stats; 168 struct igb_queue_stats rx_stats;
171 struct napi_struct napi; 169 struct napi_struct napi;