From: "Daniel Xu" <dxu@dxuuu.xyz>
To: "Michael Chan" <michael.chan@broadcom.com>
Cc: "David Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
andrew+netdev@lunn.ch, "Jakub Kicinski" <kuba@kernel.org>,
vikas.gupta@broadcom.com, andrew.gospodarek@broadcom.com,
"Paolo Abeni" <pabeni@redhat.com>,
pavan.chebbi@broadcom.com,
"Martin KaFai Lau" <martin.lau@linux.dev>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
"Kernel Team" <kernel-team@meta.com>
Subject: Re: [PATCH net] bnxt_en: ethtool: Fix ip[6] ntuple rule verification
Date: Tue, 05 Nov 2024 08:46:26 +0900 [thread overview]
Message-ID: <319eb538-4b7c-45e9-b0ab-01d5ffdc097e@app.fastmail.com> (raw)
In-Reply-To: <CACKFLik=SE4p9gq8BZJY68W_9QB=szU6cAwd-UgsvnCxQ6yu4Q@mail.gmail.com>
Hi Michael,
On Tue, Nov 5, 2024, at 2:21 AM, Michael Chan wrote:
> On Fri, Nov 1, 2024 at 3:42 PM Daniel Xu <dxu@dxuuu.xyz> wrote:
>> On Fri, Nov 01, 2024 at 12:20:44PM GMT, Michael Chan wrote:
>> > Thanks for the patch. I think the original author Vikas intended the
>> > user to do this for ip only filters:
>> >
>> > ethtool -N eth0 flow-type ip6 dst-ip $IP6 l4_proto 0xff context 1
>> >
>> > But your patch makes sense and simplifies the usage for the user. I
>> > just need to check that FW can accept 0 for the ip_protocol field to
>> > mean wildcard when it receives the FW message to create the filter.
>> >
>> > I will reply when I get the answer from the FW team. If FW requires
>> > 0xff, then we just need to make a small change to your patch.
>>
>> FWIW at least my HW/FW seems to behave correctly with my patch. I did
>> some quick tracing last night w/ a UDP traffic generator running to
>> confirm redirection occurs.
>>
> The FW team has confirmed that ip_protocol 0 will work as a wild card
> on all FW supporting this feature. So the patch will work.
>
> But I think I want to eliminate the l4_proto 0xff usage. It is
> non-standard and non-intuitive. So we should only support l4_proto to
> be TCP, UDP, ICMP, or unspecified for any protocol. Thanks.
>
Thanks for looking. I will send v3 that rolls up all the feedback
from this thread.
Thanks,
Daniel
next prev parent reply other threads:[~2024-11-04 23:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-01 4:58 Daniel Xu
2024-11-01 19:20 ` Michael Chan
2024-11-01 22:42 ` Daniel Xu
2024-11-04 17:21 ` Michael Chan
2024-11-04 23:46 ` Daniel Xu [this message]
2024-11-03 15:54 ` Jakub Kicinski
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=319eb538-4b7c-45e9-b0ab-01d5ffdc097e@app.fastmail.com \
--to=dxu@dxuuu.xyz \
--cc=andrew+netdev@lunn.ch \
--cc=andrew.gospodarek@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kernel-team@meta.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.com \
--cc=vikas.gupta@broadcom.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®