DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix set Rx offloads RSS hash off
@ 2021-11-03  3:07 Jie Wang
  2021-11-04  9:29 ` [dpdk-dev] [PATCH v2] " Jie Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Jie Wang @ 2021-11-03  3:07 UTC (permalink / raw)
  To: dev
  Cc: yuying.zhang, xiaoyun.li, stevex.yang, junfeng.guo, qi.z.zhang, Jie Wang

When we set Rx offloads RSS hash off in cmdline, then we start
port, if dev->data->dev_conf.rxmode.mq_mode RSS enable(multiple
queues mode), it will load RSS hash in driver and sync to port.

After setting Rx offloads RSS hash off, this patch removes
RTE_ETH_MQ_RX_RSS in port->dev_conf.rxmode.mq_mode to fix this issue.

Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API")

Signed-off-by: Jie Wang <jie1x.wang@intel.com>
---
 app/test-pmd/cmdline.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index d08a1c9777..63b60f196e 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -16180,6 +16180,9 @@ cmd_config_per_port_rx_offload_parsed(void *parsed_result,
 		port->dev_conf.rxmode.offloads &= ~single_offload;
 		for (q = 0; q < nb_rx_queues; q++)
 			port->rx_conf[q].offloads &= ~single_offload;
+
+		if (single_offload & 0x80000)
+			port->dev_conf.rxmode.mq_mode &= ~RTE_ETH_MQ_RX_RSS;
 	}
 
 	cmd_reconfig_device_queue(port_id, 1, 1);
-- 
2.25.1


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

end of thread, other threads:[~2021-11-08  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03  3:07 [dpdk-dev] [PATCH] app/testpmd: fix set Rx offloads RSS hash off Jie Wang
2021-11-04  9:29 ` [dpdk-dev] [PATCH v2] " Jie Wang
2021-11-05 16:24   ` Ferruh Yigit
2021-11-08  7:24     ` Wang, Jie1X
2021-11-08  9:02       ` Ferruh Yigit

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).