Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mana: Set default number of queues to 16

Set the default number of queues per vPort to MANA_DEF_NUM_QUEUES (16),
as 16 queues can achieve optimal throughput for typical workloads. The
actual number of queues may be lower if it exceeds the hardware reported
limit. Users can increase the number of queues up to max_queues via
ethtool if needed.

Signed-off-by: Long Li <longli@microsoft.com>
Link: https://patch.msgid.link/20260323194925.1766385-1-longli@microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Long Li and committed by
Paolo Abeni
45b2b84a b08a7629

+3 -1
+2 -1
drivers/net/ethernet/microsoft/mana/mana_en.c
··· 3357 3357 apc->ac = ac; 3358 3358 apc->ndev = ndev; 3359 3359 apc->max_queues = gc->max_num_queues; 3360 - apc->num_queues = gc->max_num_queues; 3360 + /* Use MANA_DEF_NUM_QUEUES as default, still honoring the HW limit */ 3361 + apc->num_queues = min(gc->max_num_queues, MANA_DEF_NUM_QUEUES); 3361 3362 apc->tx_queue_size = DEF_TX_BUFFERS_PER_QUEUE; 3362 3363 apc->rx_queue_size = DEF_RX_BUFFERS_PER_QUEUE; 3363 3364 apc->port_handle = INVALID_MANA_HANDLE;
+1
include/net/mana/mana.h
··· 1007 1007 #define STATISTICS_FLAGS_TX_ERRORS_GDMA_ERROR 0x0000000004000000 1008 1008 1009 1009 #define MANA_MAX_NUM_QUEUES 64 1010 + #define MANA_DEF_NUM_QUEUES 16 1010 1011 1011 1012 #define MANA_SHORT_VPORT_OFFSET_MAX ((1U << 8) - 1) 1012 1013