From: Jakub Kicinski <kuba@kernel.org>
To: "Nambiar, Amritha" <amritha.nambiar@intel.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"alexander.duyck@gmail.com" <alexander.duyck@gmail.com>,
"jhs@mojatatu.com" <jhs@mojatatu.com>,
"jiri@resnulli.us" <jiri@resnulli.us>,
"xiyou.wangcong@gmail.com" <xiyou.wangcong@gmail.com>,
"Gomes, Vinicius" <vinicius.gomes@intel.com>,
"Samudrala, Sridhar" <sridhar.samudrala@intel.com>
Subject: Re: [net-next PATCH v2 0/4] Extend action skbedit to RX queue mapping
Date: Fri, 23 Sep 2022 06:02:00 -0700 [thread overview]
Message-ID: <20220923060200.5effc63e@kernel.org> (raw)
In-Reply-To: <MWHPR11MB1293FB462DB6021E6B2916A5F1519@MWHPR11MB1293.namprd11.prod.outlook.com>
On Fri, 23 Sep 2022 01:09:38 +0000 Nambiar, Amritha wrote:
> > Is it configurable? :S If we think about RSS context selection we'd
> > expect the context to be selected based on for example the IPv6 daddr
> > of the container but we still want aRFS to select the exact queue...
>
> This behavior is similar on E810 currently, i.e., TC filter selects the set
> of queues (like the RSS context), and then the flow director filter can
> be used to select the exact queue within the queue-set. We want to have
> the ability to select the exact queue within the queue-set via TC (and not
> flow director filter).
>
> On E810, TC filters are added to hardware block called the "switch". This
> block supports two types of actions in hardware termed as "forward to
> queue" and "forward to queue-set". aRFS filters are added to a different
> HW block called the "flow director" (FD). The FD block comes after the switch
> block in the HW pipeline. The FD block has certain restrictions (can only
> have filters with the same packet type). The switch table does not have
> this restriction.
>
> When both the TC filter and FD filter competes for queue selection (i.e. both
> filters are matched and action is to set a queue), the pipeline resolves
> conflicts based on metadata priority. The priorities are not user configurable.
> The ICE driver programs these priorities based on metadata at each stage,
> action etc. Switch (TC) filters with forward-to-queue action have higher
> priority over FD filter assigning a queue. The hash filter has lowest priority.
>
> > Is there a counterargument for giving the flow director higher prio?
>
> Isn't the HW behavior on RX (WRT to setting the queue) consistent
> with what we have in SW for TX ? In SW, TX queue set via TC filter
> (skbedit action) has the highest precedence over XPS and jhash (lowest).
Alright, I guess that could work as well, thanks for the explanation.
Initially I thought that it'd be strange if the queue-set selection
was before aRFS and queue-id selection after, if they are both to be
controlled by TC. But I can see how that makes most practical sense :S
prev parent reply other threads:[~2022-09-23 13:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 1:23 [net-next PATCH v2 0/4] Extend action skbedit to RX queue mapping Amritha Nambiar
2022-09-08 1:24 ` [net-next PATCH v2 1/4] act_skbedit: Add support for action skbedit " Amritha Nambiar
2022-09-08 1:24 ` [net-next PATCH v2 2/4] act_skbedit: Offload skbedit queue mapping for receive queue Amritha Nambiar
2022-09-08 1:24 ` [net-next PATCH v2 3/4] ice: Enable RX queue selection using skbedit action Amritha Nambiar
2022-09-08 1:24 ` [net-next PATCH v2 4/4] Documentation: networking: TC queue based filtering Amritha Nambiar
2022-09-08 17:34 ` kernel test robot
2022-09-08 15:27 ` [net-next PATCH v2 0/4] Extend action skbedit to RX queue mapping Alexander Duyck
2022-09-09 9:18 ` Nambiar, Amritha
2022-09-09 18:35 ` Alexander Duyck
2022-09-15 8:45 ` Nambiar, Amritha
2022-09-15 15:21 ` Alexander Duyck
2022-09-15 22:09 ` Nambiar, Amritha
2022-09-16 15:58 ` Alexander Duyck
2022-09-21 20:29 ` Jakub Kicinski
2022-09-22 8:19 ` Nambiar, Amritha
2022-09-22 12:29 ` Jakub Kicinski
2022-09-23 1:09 ` Nambiar, Amritha
2022-09-23 13:02 ` Jakub Kicinski [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=20220923060200.5effc63e@kernel.org \
--to=kuba@kernel.org \
--cc=alexander.duyck@gmail.com \
--cc=amritha.nambiar@intel.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=sridhar.samudrala@intel.com \
--cc=vinicius.gomes@intel.com \
--cc=xiyou.wangcong@gmail.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).