DPDK patches and discussions
 help / color / mirror / Atom feed
From: Dan Kan <dan@nyansa.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Unable to get RSS to work in testpmd and load balancing question
Date: Thu, 9 Jan 2014 17:02:34 -0800	[thread overview]
Message-ID: <CA+RRbcor5DFq4S_f-NH61O2OP8GYq0uZsi=UrcLvDnKx+hjovg@mail.gmail.com> (raw)
In-Reply-To: <1570706.IYEFmS7tHv@x220>

I think the following change might be sufficient. DCB seems to use its own
init_port_dcb_config(), which would reset mq_mode. If this is good, I can
submit the patch. Thanks.

index b11eb2e..355db0f 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -1546,6 +1546,9 @@ init_port_config(void)
                if (nb_rxq > 0) {
                        port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
                        port->dev_conf.rx_adv_conf.rss_conf.rss_hf = rss_hf;
+                       if (nb_rxq > 1 && rss_hf != 0) {
+                               port->dev_conf.rxmode.mq_mode =
ETH_MQ_RX_RSS;
+                       }
                } else {
                        port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
                        port->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0;


On Thu, Jan 9, 2014 at 3:11 PM, Thomas Monjalon
<thomas.monjalon@6wind.com>wrote:

> Hello,
>
> 09/01/2014 10:49, Daniel Kan :
> > The problem appears to be that rxmode.mq_mode was never set to
> ETH_MQ_RX_RSS
> > in testpmd.c; it’s initialized to 0.
>
> You're right. Its broken since the commit       "ETH_MQ_RX_NONE should
> disable RSS":
>
> http://dpdk.org/browse/dpdk/commit/?id=243db2ddee3094a2cb39fdd4b17e26df4e7735e1
>
> > There should probably be a configuration for that, or should be set when
> > rxq > 1.
>
> RSS can be configured or disabled with testpmd options or commands.
> So it must be fixed in 2 places:
> - in app/test-pmd/parameters.c for options
> - in app/test-pmd/cmdline.c for commands
> When setting rss_hf, mq_mode must be set accordingly.
>
> Note that DCB feature can use mq_mode.
>
> Thanks for the report. Patch is welcome :)
> --
> Thomas
>

  reply	other threads:[~2014-01-10  1:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08 23:24 Dan Kan
2014-01-09 18:49 ` Daniel Kan
2014-01-09 23:11   ` Thomas Monjalon
2014-01-10  1:02     ` Dan Kan [this message]
2014-01-10  2:07 Choi, Sy Jong
2014-01-10  2:35 ` Daniel Kan
2014-01-10 16:04   ` Michael Quicquaro

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='CA+RRbcor5DFq4S_f-NH61O2OP8GYq0uZsi=UrcLvDnKx+hjovg@mail.gmail.com' \
    --to=dan@nyansa.com \
    --cc=dev@dpdk.org \
    --cc=thomas.monjalon@6wind.com \
    /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).