Commit 47bd898b authored by Vikram Narayanan's avatar Vikram Narayanan

drivers/ixgbe:set num queues to 4

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent 51c92885
......@@ -5632,7 +5632,7 @@ static int ixgbe_sw_init(struct ixgbe_adapter *adapter)
unsigned int rss, fdir;
u32 fwsm;
int i;
#define NUM_HW_QUEUES 4
/* PCI config space info */
hw->vendor_id = pdev->vendor;
......@@ -5642,12 +5642,14 @@ static int ixgbe_sw_init(struct ixgbe_adapter *adapter)
hw->subsystem_device_id = pdev->subsystem_device;
/* Set common capability flags and settings */
rss = min_t(int, ixgbe_max_rss_indices(adapter), num_online_cpus());
//rss = min_t(int, ixgbe_max_rss_indices(adapter), num_online_cpus());
rss = min_t(int, ixgbe_max_rss_indices(adapter), NUM_HW_QUEUES);
adapter->ring_feature[RING_F_RSS].limit = rss;
adapter->flags2 |= IXGBE_FLAG2_RSC_CAPABLE;
adapter->max_q_vectors = MAX_Q_VECTORS_82599;
adapter->atr_sample_rate = 20;
fdir = min_t(int, IXGBE_MAX_FDIR_INDICES, num_online_cpus());
//fdir = min_t(int, IXGBE_MAX_FDIR_INDICES, num_online_cpus());
fdir = min_t(int, IXGBE_MAX_FDIR_INDICES, NUM_HW_QUEUES);
adapter->ring_feature[RING_F_FDIR].limit = fdir;
adapter->fdir_pballoc = IXGBE_FDIR_PBALLOC_64K;
#ifdef CONFIG_IXGBE_DCA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment