From: Chaoyong He Date: Mon, 10 May 2021 16:53:19 +0000 (+0200) Subject: examples/l3fwd: disable multi-queue for single queue X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=97986fa56475f409bb700f1025ce3ea34002c10d;p=dpdk.git examples/l3fwd: disable multi-queue for single queue Set the Rx multi-queue mode to NONE when configuring a port that is associated with hardware that only supports a single Rx queue. Signed-off-by: Chaoyong He Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman Acked-by: Bruce Richardson --- diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 4cb800aa15..00ac267af1 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -1041,6 +1041,10 @@ l3fwd_poll_resource_setup(void) local_port_conf.rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; + + if (dev_info.max_rx_queues == 1) + local_port_conf.rxmode.mq_mode = ETH_MQ_RX_NONE; + if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != port_conf.rx_adv_conf.rss_conf.rss_hf) { printf("Port %u modified RSS hash function based on hardware support,"