aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2011-04-26 03:26:08 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-06-21 04:20:13 -0400
commite901acd6fa5538436e08e8a862dd2c080297f852 (patch)
tree13e5f80f1aebbecbc2b95de238e2a415677b6d64 /drivers/net/ixgbe/ixgbe.h
parent8b1c0b24d9afd4a59a8aa9c778253bcff949395a (diff)
ixgbe: DCB use existing TX and RX queues
The number of TX and RX queues allocated depends on the device type, the current features set, online CPUs, and various compile flags. To enable DCB with multiple queues and allow it to coexist with all the features currently implemented it has to setup a valid queue count. This is done at init time using the FDIR and RSS max queue counts and allowing each TC to allocate a queue per CPU. DCB will now use available queues up to (8 x TCs) this is somewhat arbitrary cap but allows DCB to use up to 64 queues. Its easy to increase this later if that is needed. This is prep work to enable Flow Director with DCB. After this DCB can easily coexist with existing features and no longer needs its own DCB feature ring. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ixgbe/ixgbe.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index e467b20ed1f0..d5674fc8bc02 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -244,7 +244,6 @@ struct ixgbe_ring {
244 244
245enum ixgbe_ring_f_enum { 245enum ixgbe_ring_f_enum {
246 RING_F_NONE = 0, 246 RING_F_NONE = 0,
247 RING_F_DCB,
248 RING_F_VMDQ, /* SR-IOV uses the same ring feature */ 247 RING_F_VMDQ, /* SR-IOV uses the same ring feature */
249 RING_F_RSS, 248 RING_F_RSS,
250 RING_F_FDIR, 249 RING_F_FDIR,
@@ -255,7 +254,6 @@ enum ixgbe_ring_f_enum {
255 RING_F_ARRAY_SIZE /* must be last in enum set */ 254 RING_F_ARRAY_SIZE /* must be last in enum set */
256}; 255};
257 256
258#define IXGBE_MAX_DCB_INDICES 64
259#define IXGBE_MAX_RSS_INDICES 16 257#define IXGBE_MAX_RSS_INDICES 16
260#define IXGBE_MAX_VMDQ_INDICES 64 258#define IXGBE_MAX_VMDQ_INDICES 64
261#define IXGBE_MAX_FDIR_INDICES 64 259#define IXGBE_MAX_FDIR_INDICES 64