aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2008-09-11 22:58:29 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 18:54:55 -0400
commitff819cfb5d95c4945811f5e33aa57274885c7527 (patch)
tree82cc8a1ccba15d09b0786ed4206b14f696639518 /drivers
parent30efa5a363d18f1c284455879cb67fb1bf547bdc (diff)
ixgbe: fix bug with lots of tx queues
when using more than 8 tx queues you can overrun the 8 bit v_idx field, so change it to 16 bits to represent the maximum number of queues (one for each bit) 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')
-rw-r--r--drivers/net/ixgbe/ixgbe.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 5ba03845c3e3..064af675a941 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -152,9 +152,9 @@ struct ixgbe_ring {
152 struct net_lro_mgr lro_mgr; 152 struct net_lro_mgr lro_mgr;
153 bool lro_used; 153 bool lro_used;
154 struct ixgbe_queue_stats stats; 154 struct ixgbe_queue_stats stats;
155 u8 v_idx; /* maps directly to the index for this ring in the hardware 155 u16 v_idx; /* maps directly to the index for this ring in the hardware
156 * vector array, can also be used for finding the bit in EICR 156 * vector array, can also be used for finding the bit in EICR
157 * and friends that represents the vector for this ring */ 157 * and friends that represents the vector for this ring */
158 158
159 159
160 u16 work_limit; /* max work per interrupt */ 160 u16 work_limit; /* max work per interrupt */