DPDK patches and discussions
 help / color / mirror / Atom feed
From: Amiya Ranjan Mohakud <amiyaranjan.mohakud@gmail.com>
To: dev@dpdk.org
Cc: amiyaranjan.mohakud@gmail.com, stable@dpdk.org
Subject: [PATCH] net/vmxnet3: disable RSS for single queue configuration for ESX8.0+ versions
Date: Wed, 22 Oct 2025 18:28:44 +0530	[thread overview]
Message-ID: <20251022125844.6187-1-amiyaranjan.mohakud@gmail.com> (raw)

This fixes the issue of v4 RSS configuration failure in vmxnet3_v4_rss_configure
while writing to BAR register. It's very specific to single queue conifuguration.

Ref: https://mails.dpdk.org/archives/users/2025-April/008236.html

Bugzilla ID:1789
Cc: stable@dpdk.org

Signed-off-by: Amiya Ranjan Mohakud <amiyaranjan.mohakud@gmail.com>
---
 drivers/net/vmxnet3/vmxnet3_ethdev.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
index f4cdb1bb31..fee4c23091 100644
--- a/drivers/net/vmxnet3/vmxnet3_ethdev.c
+++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c
@@ -534,6 +534,12 @@ vmxnet3_dev_configure(struct rte_eth_dev *dev)
 
 	PMD_INIT_FUNC_TRACE();
 
+    /* Disabling RSS for single queue pair */
+    if (dev->data->nb_rx_queues == 1) {
+        dev->data->dev_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;
+        PMD_INIT_LOG(ERR, "WARN: Disabling RSS for single Rx queue");
+    }
+
 	if (dev->data->dev_conf.rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG)
 		dev->data->dev_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
-- 
2.39.5 (Apple Git-154)


             reply	other threads:[~2025-10-22 12:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-22 12:58 Amiya Ranjan Mohakud [this message]
2025-10-22 13:32 ` Amiya Ranjan Mohakud
2025-10-22 13:35 ` Amiya Ranjan Mohakud
2025-10-22 15:56   ` [PATCH v2] " Amiya Ranjan Mohakud
2025-10-22 16:28 ` [PATCH] " Stephen Hemminger
2025-10-22 16:32 ` Ronak Doshi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251022125844.6187-1-amiyaranjan.mohakud@gmail.com \
    --to=amiyaranjan.mohakud@gmail.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).