Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
47bd898b
Commit
47bd898b
authored
May 03, 2018
by
Vikram Narayanan
Browse files
drivers/ixgbe:set num queues to 4
Signed-off-by:
Vikram Narayanan
<
vikram186@gmail.com
>
parent
51c92885
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
View file @
47bd898b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment