From: "Medvedkin, Vladimir" <vladimir.medvedkin@intel.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: <dev@dpdk.org>, <kai.ji@intel.com>, <anatoly.burakov@intel.com>,
<qi.z.zhang@intel.com>, <stable@dpdk.org>
Subject: Re: [PATCH v2] net/ice: fix how ice driver handles flows
Date: Thu, 30 Jan 2025 20:18:35 +0000 [thread overview]
Message-ID: <bbbc94bf-2755-41d6-b8d8-ad24aa4fe580@intel.com> (raw)
In-Reply-To: <Z5u842Y82Kg0r33X@bricha3-mobl1.ger.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2127 bytes --]
Hi Bruce,
On 30/01/2025 17:54, Bruce Richardson wrote:
> On Thu, Jan 30, 2025 at 04:14:42PM +0000, Vladimir Medvedkin wrote:
>> Currently ICE PMD uses group attribute to select the appropriate HW engine
>> to offload the flow. This behavior violates the rte_flow API, existing
>> documentation/examples, and reveals hardware specific details.
>>
>> This patch eliminates the use of the group attribute and runs each engine
>> parser in the order they work in the HW pipeline.
>>
>> Fixes: 9c5f0070fa3f ("net/ice: map group to pipeline stage")
>> Cc:qi.z.zhang@intel.com
>> Cc:stable@dpdk.org
>>
>> Signed-off-by: Vladimir Medvedkin<vladimir.medvedkin@intel.com>
> Thanks, this seems a great idea, to automatically put the flow in place.
>
> Question: is there ever a scenario where a user may need, or want, to
> override the automatic choice made here? Or is it just the case that once
> the flow is installed, it works the same whatever group it's added into?
> I would assume the latter, but just want to confirm.
I don't think a user might have to worry about the internals of the NIC
filters. Thesefiltersperformdifferent lookups: ACL provides wildcard
matching, when FDIR in an exact match, so it depends on what kind of
mask is used for a particular field, for example:
I want to install _exact_match_ rule:
- I use FDIR engine: flow create 0 ingress group 2 pattern eth / ipv4
dst spec 192.168.0.1 dst mask 255.255.255.255 / end actions drop / end
and it works as expected.
- I use ACL engine: flow create 0 ingress group 2 pattern eth / ipv4 dst
spec 192.168.0.1 dst mask 255.255.255.255 / end actions drop / end
and parser throws an error: Invalid IPv4 mask.: Invalid argument
I want to install _wildcard_match_ rule:
- I use FDIR engine: flow create 0 ingress group 2 pattern eth / ipv4
dst spec 192.168.0.1 dst mask 255.255.255.254 / end actions drop / end
doesn't work, Invalid action.: Invalid argument
- I use ACL engine:flow create 0 ingress group 1 pattern eth / ipv4 dst
spec 192.168.0.1 dst mask 255.255.0.255 / end actions drop / end
and it works as expected
> /Bruce
--
Regards,
Vladimir
[-- Attachment #2: Type: text/html, Size: 3804 bytes --]
prev parent reply other threads:[~2025-01-30 20:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-30 15:50 [PATCH] " Vladimir Medvedkin
2025-01-30 16:14 ` [PATCH v2] " Vladimir Medvedkin
2025-01-30 17:54 ` Bruce Richardson
2025-01-30 20:18 ` Medvedkin, Vladimir [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=bbbc94bf-2755-41d6-b8d8-ad24aa4fe580@intel.com \
--to=vladimir.medvedkin@intel.com \
--cc=anatoly.burakov@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=kai.ji@intel.com \
--cc=qi.z.zhang@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).