DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices
@ 2021-05-10 16:53 Heinrich Kuhn
  2021-05-12 16:32 ` Bruce Richardson
  0 siblings, 1 reply; 5+ messages in thread
From: Heinrich Kuhn @ 2021-05-10 16:53 UTC (permalink / raw)
  To: dev; +Cc: Chaoyong.He, Heinrich Kuhn, Simon Horman

From: "Chaoyong.He" <chaoyong.he@corigine.com>

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 <chaoyong.he@corigine.com>
Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
---
 examples/l3fwd/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c
index bb49e5faf..87b638ac0 100644
--- a/examples/l3fwd/main.c
+++ b/examples/l3fwd/main.c
@@ -953,6 +953,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,"
-- 
2.30.1 (Apple Git-130)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-30 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 16:53 [dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices Heinrich Kuhn
2021-05-12 16:32 ` Bruce Richardson
2021-05-12 18:43   ` Medvedkin, Vladimir
2021-05-13  9:59     ` Bruce Richardson
2021-07-30 16:50       ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).