summaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck2008-12-26 10:34:11 +0100
committerDavid S. Miller2008-12-26 10:34:11 +0100
commit26bc19ecf6c077c926827c25631340fd2e8fb16e (patch)
treefab4cb0d2c633b5f336046dcd3416d26ef3e08e0 /drivers/net/igb/igb.h
parentigb: defeature tx head writeback (diff)
downloadkernel-qcow2-linux-26bc19ecf6c077c926827c25631340fd2e8fb16e.tar.gz
kernel-qcow2-linux-26bc19ecf6c077c926827c25631340fd2e8fb16e.tar.xz
kernel-qcow2-linux-26bc19ecf6c077c926827c25631340fd2e8fb16e.zip
igb: re-order queues to support cleaner use of ivar on 82576
The 82576 adapter orders the queues in pairs when virtualization is in use. The queue ordering previously conflicted with the ordering when sr-iov was enabled. This new ordering allows a PF to allocate 2 queues without using any VF resources. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index c90632524fda..5a27825cc48a 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -159,7 +159,8 @@ struct igb_ring {
u16 itr_register;
u16 cpu;
- int queue_index;
+ u16 queue_index;
+ u16 reg_idx;
unsigned int total_bytes;
unsigned int total_packets;