aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-10-27 11:51:27 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 04:20:24 -0400
commitfce99e341524c204ef3dd3e7c5f77265a7e05ddd (patch)
treede53c88cf94f52431f5fb662043c5c2dc15a7d90 /drivers/net/igb/igb.h
parent952f72a8ceee3996ef8476a2f05ece1627080c20 (diff)
igb: change the head and tail offsets into pointers
Since we are writting to the head/tail pointers frequently we might as well save ourselves some processing time by converting the head and tail offsets directly to pointers. This will shave a few cycles off the rx/tx path and allows us to move one step closer to the rings being a bit more independant of each other. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index 303df02a6907..e52fee44aeac 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -178,8 +178,8 @@ struct igb_ring {
178 unsigned int count; /* number of desc. in the ring */ 178 unsigned int count; /* number of desc. in the ring */
179 u16 next_to_use; 179 u16 next_to_use;
180 u16 next_to_clean; 180 u16 next_to_clean;
181 u16 head; 181 void __iomem *head;
182 u16 tail; 182 void __iomem *tail;
183 struct igb_buffer *buffer_info; /* array of buffer info structs */ 183 struct igb_buffer *buffer_info; /* array of buffer info structs */
184 184
185 u8 queue_index; 185 u8 queue_index;