DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Qiming Yang" <qiming.yang@intel.com>,
	"Edwin Brossette" <edwin.brossette@6wind.com>
Cc: "Olivier Matz" <olivier.matz@6wind.com>,
	"Laurent Hardy" <laurent.hardy@6wind.com>, <dev@dpdk.org>,
	<stable@dpdk.org>
Subject: RE: net/e1000: Test issues following change in max rx/tx queues
Date: Thu, 30 Nov 2023 13:01:59 +0100	[thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F079@smartserver.smartshare.dk> (raw)
In-Reply-To: <CANDF9xAQ-Woo9_2fQF3rrKYRCWfiVuJJbR3UtYxGaBAiTsbzdg@mail.gmail.com>

+TO: Qiming Yang, author of the patch.
+CC: stable

> From: Edwin Brossette [mailto:edwin.brossette@6wind.com] 
> Sent: Thursday, 30 November 2023 12.25
> 
> Hello, 
> 
> We recently started to observe concerning behaviour on our continuous integration platform  following this commit, which set the maximum amount of tx/rx queues at 2 for the e1000 pmd:
> 
> net/e1000: fix queue number initialization
> https://git.dpdk.org/dpdk/commit/?id=c1a42d646472fd3477429bf016f682e0865b77f0
> 
> Reverting this change locally on our side was enough to fix our test issues.
> 
> There is a considerately long explanation in a comment just above the change explaining why the number of rx/tx queues is limited at 1, yet it was changed at 2 anyway. 

For reference, here is the explanation in the source code:

<quote>
Starting with 631xESB hw supports 2 TX/RX queues per port.
Unfortunatelly, all these nics have just one TX context.
So we have few choises for TX:
- Use just one TX queue.
- Allow cksum offload only for one TX queue.
- Don't allow TX cksum offload at all.
For now, option #1 was chosen.
To use second RX queue we have to use extended RX descriptor
(Multiple Receive Queues are mutually exclusive with UDP
fragmentation and are not supported when a legacy receive
descriptor format is used).
Which means separate RX routinies - as legacy nics (82540, 82545)
don't support extended RXD.
To avoid it we support just one RX queue for now (no RSS).
</quote>

> 
> Since I couldn't see any mention in logs about theses restrictions being removed, I wished to inquire whether this change was truly intended and if there was any problem which motivated it.

Qiming, what is the explanation, please?

> Maybe the max number of rx/tx queues should reverted back to 1? Or maybe the comment should be updated if limitations are no longer true?

Your CI platform flagging problems is a strong indicator of something being wrong. So I would guess the limitations are still true, and the max number of rx/tx queues should be reverted back to 1.

If someone really needs 2 queues, perhaps it could be a build time option to enable 2 queues without offloads. Qiming, what do you think?

> 
> Regards,
> Edwin Brossette.

      reply	other threads:[~2023-11-30 12:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-30 11:25 Edwin Brossette
2023-11-30 12:01 ` Morten Brørup [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=98CBD80474FA8B44BF855DF32C47DC35E9F079@smartserver.smartshare.dk \
    --to=mb@smartsharesystems.com \
    --cc=dev@dpdk.org \
    --cc=edwin.brossette@6wind.com \
    --cc=laurent.hardy@6wind.com \
    --cc=olivier.matz@6wind.com \
    --cc=qiming.yang@intel.com \
    --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).