DPDK patches and discussions
 help / color / mirror / Atom feed
From: Trevor Tao <Trevor.Tao@arm.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "thomas@monjalon.net" <thomas@monjalon.net>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] examples/l3fwd: relax the RSS/Offload requirement
Date: Fri, 12 May 2023 04:34:07 +0000	[thread overview]
Message-ID: <PAXPR08MB65894696D313E803D7D58C7C97759@PAXPR08MB6589.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <20230511083912.439d8e65@hermes.local>

Hi Stephen:

Yes,  I think there is no point in doing RSS if only a single queue, but for the 2nd part:
"|| !local_port_conf.rx_adv_conf.rss_conf.rss_hf"
It's an "or" relationship with the dev_info.max_rx_queues==1, and in my case, the device(virtio) information showed that
the max_rx_queues is not 1 but the rss_hf is 0:
......
Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=1...
Trevor: dev_info.max_rx_queues=16, local_port_conf.rx_adv_conf.rss_conf.rss_hf = 0x0
......

So in this case, the mq_mode should also be set to RTE_ETH_MQ_RX_NONE to disable the RSS.

Thanks,

Best Regards,

Zijin Tao(Trevor Tao, 陶孜谨)
ARM Electronic Technology (Shanghai) Co., Ltd
安谋电子科技(上海)有限公司
Building 11, Shanghai Busininess ParkⅢ ,
No.1016 Tianlin Rd, Minhang District, Shanghai, 200233 China
上海市闵行区田林路1016号科技绿洲三期2号楼10楼,200233
Cell:      +86-153 7109 6192

-----Original Message-----
From: Stephen Hemminger <stephen@networkplumber.org>
Sent: Thursday, May 11, 2023 11:39 PM
To: Trevor Tao <Trevor.Tao@arm.com>
Cc: thomas@monjalon.net; dev@dpdk.org
Subject: Re: [PATCH] examples/l3fwd: relax the RSS/Offload requirement

On Thu, 11 May 2023 09:33:35 +0000
Trevor Tao <Trevor.Tao@arm.com> wrote:

> +               /* relax the rx rss requirement */
> +               if (dev_info.max_rx_queues == 1 || !local_port_conf.rx_adv_conf.rss_conf.rss_hf) {
> +                       printf("warning: modified the rx mq_mode to RTE_ETH_MQ_RX_NONE base on"
> +                               " device capability\n");
>                         local_port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_NONE;
> +               }

There is no point in doing RSS if only a single queue.
Therefore remove the !local_port.conf portion of the expression.

And since this is normal, no printf is needed.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

      reply	other threads:[~2023-05-12  4:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230511080612.126034-1-trevor.tao@arm.com>
2023-05-11  9:33 ` Trevor Tao
2023-05-11 15:39   ` Stephen Hemminger
2023-05-12  4:34     ` Trevor Tao [this message]

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=PAXPR08MB65894696D313E803D7D58C7C97759@PAXPR08MB6589.eurprd08.prod.outlook.com \
    --to=trevor.tao@arm.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /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).