From: "Nambiar, Amritha" <amritha.nambiar@intel.com>
To: Hariprasad Kelam <hkelam@marvell.com>,
Jamal Hadi Salim <jhs@mojatatu.com>,
"sridhar.samudrala@intel.com" <sridhar.samudrala@intel.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kuba@kernel.org" <kuba@kernel.org>,
Sunil Kovvuri Goutham <sgoutham@marvell.com>,
"edumazet@google.com" <edumazet@google.com>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"xiyou.wangcong@gmail.com" <xiyou.wangcong@gmail.com>,
"jiri@resnulli.us" <jiri@resnulli.us>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [net-next] net: sched: extend flow action with RSS
Date: Fri, 20 Oct 2023 13:13:08 -0700 [thread overview]
Message-ID: <0329924b-a868-49b9-ab98-0b3f8bd545cb@intel.com> (raw)
In-Reply-To: <PH0PR18MB4474C304575E55092A2C7377DEDBA@PH0PR18MB4474.namprd18.prod.outlook.com>
On 10/20/2023 9:35 AM, Hariprasad Kelam wrote:
>
>
>
>
>> On Fri, Oct 20, 2023 at 2:12 AM Hariprasad Kelam <hkelam@marvell.com>
>> wrote:
>>>
>>> This patch extends current flow action with RSS, such that the user
>>> can install flower offloads with action RSS followed by a group id.
>>> Since this is done in hardware skip_sw flag is enforced.
>>
>> Our typical rule for TC is we need s/w equivalence for offloads. How would
>> this work in absence of offload?
>>
> [Hari]
> Our typical rule for TC is we need s/w equivalence for offloads. How would this work in absence of offload?
>
> This patch we added as an extension to receive queue selection in hardware.
> This patch "act_skbedit: skbedit queue mapping for receive queue" enabled receive queue selection in hardware
> and skip_sw is enforced.
>
> Adding stakeholders of this patch, to get their opinion.
> sridhar.samudrala@intel.com amritha.nambiar@intel.com
>
> incase of RSS, hardware makes decisions about incoming packets before they are even received in the queue.
>
The skip_sw for skbedit receive queue action was enforced as the only
other alternative was a new hw-only action, or changing the action
mirred. See discussion at
https://lore.kernel.org/netdev/20220921132929.3f4ca04d@kernel.org/
Few questions WRT this patch:
How are the rss groups created? ethtool rss contexts? Any reason to use
TC to direct to rss contexts over using ethtool context ids?
IIUC, skbedit is meant to only edit skb metadata such as mark, packet
type, queue mapping, priority etc. Even if this is a HW only action and
has no use in the stack, would skbedit be the right fit here?
> Thanks,
> Hariprasad k
>
>
>
>
>> cheers,
>> jamal
>>
>>> Example:
>>> In a multi rss group supported NIC,
>>>
>>> rss group #1 flow hash indirection table populated with rx queues 1 to
>>> 4 rss group #2 flow hash indirection table populated with rx queues 5
>>> to 9
>>>
>>> $tc filter add dev eth1 ingress protocol ip flower ip_proto tcp
>>> dst_port
>>> 443 action skbedit rss_group 1 skip_sw
>>>
>>> Packets destined to tcp port 443 will be distributed among rx queues 1
>>> to 4
>>>
>>> $tc filter add dev eth1 ingress protocol ip flower ip_proto udp
>>> dst_port
>>> 8080 action skbedit rss_group 2 skip_sw
>>>
>>> Packets destined to udp port 8080 will be distributed among rx queues
>>> 5 to 9
next prev parent reply other threads:[~2023-10-20 20:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-20 6:11 Hariprasad Kelam
2023-10-20 12:15 ` Jamal Hadi Salim
2023-10-20 16:35 ` Hariprasad Kelam
2023-10-20 20:13 ` Nambiar, Amritha [this message]
2023-10-22 5:53 ` Sunil Kovvuri
2023-10-22 7:20 ` Dave Taht
2023-10-23 4:04 ` Hariprasad Kelam
2023-10-20 17:41 ` Pedro Tammela
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=0329924b-a868-49b9-ab98-0b3f8bd545cb@intel.com \
--to=amritha.nambiar@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkelam@marvell.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sgoutham@marvell.com \
--cc=sridhar.samudrala@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
all inboxes | Powered by JetHome®