Skip to content

Commit b352569

Browse files
jacob-kellerJeff Kirsher
authored andcommitted
fm10k: base queue scheme covered by RSS
In fm10k_set_num_queues, we previously assigned the base template. This would always be overwritten by either fm10k_set_qos_queues or fm10k_set_rss_queues. In either case, we don't need the base values, so we can just remove them. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Krishneil Singh <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent e72319b commit b352569

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/ethernet/intel/fm10k/fm10k_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,13 +1572,11 @@ static bool fm10k_set_rss_queues(struct fm10k_intfc *interface)
15721572
**/
15731573
static void fm10k_set_num_queues(struct fm10k_intfc *interface)
15741574
{
1575-
/* Start with base case */
1576-
interface->num_rx_queues = 1;
1577-
interface->num_tx_queues = 1;
1578-
1575+
/* Attempt to setup QoS and RSS first */
15791576
if (fm10k_set_qos_queues(interface))
15801577
return;
15811578

1579+
/* If we don't have QoS, just fallback to only RSS. */
15821580
fm10k_set_rss_queues(interface);
15831581
}
15841582

0 commit comments

Comments
 (0)