From: Paolo Abeni <pabeni@redhat.com>
To: Dmitry Skorodumov <skorodumov.dmitry@huawei.com>,
netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>,
Julian Vetter <julian@outer-limits.org>,
Guillaume Nault <gnault@redhat.com>,
Eric Dumazet <edumazet@google.com>,
Mahesh Bandewar <maheshb@google.com>,
"David S. Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org
Cc: Andrew Lunn <andrew+netdev@lunn.ch>
Subject: Re: [PATCH net] ipvlan: Ignore PACKET_LOOPBACK in handle_mode_l2()
Date: Thu, 4 Dec 2025 13:52:02 +0100 [thread overview]
Message-ID: <eb26c4db-5219-4ee6-b49d-fb324742266d@redhat.com> (raw)
In-Reply-To: <20251202103906.4087675-1-skorodumov.dmitry@huawei.com>
On 12/2/25 11:39 AM, Dmitry Skorodumov wrote:
> Packets with pkt_type == PACKET_LOOPBACK are captured by
> handle_frame() function, but they don't have L2 header.
> We should not process them in handle_mode_l2().
>
> This doesn't affect old L2 functionality, since handling
> was anyway incorrect.
>
> Handle them the same way as in br_handle_frame():
> just pass the skb.
>
> To observe invalid behaviour, just start "ping -b" on bcast address
> of port-interface.
>
> Fixes: 2ad7bf363841 ("ipvlan: Initial check-in of the IPVLAN driver.")
> Signed-off-by: Dmitry Skorodumov <skorodumov.dmitry@huawei.com>
Since you appear the have momentum on ipvlan devel, please consider
adding self-tests for the issue you are addressing.
You can later leverage the same infra for functional coverage and that
will help your intended development.
Thanks,
Paolo
next prev parent reply other threads:[~2025-12-04 12:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 10:39 Dmitry Skorodumov
2025-12-04 12:52 ` Paolo Abeni [this message]
2025-12-04 13:00 ` patchwork-bot+netdevbpf
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=eb26c4db-5219-4ee6-b49d-fb324742266d@redhat.com \
--to=pabeni@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gnault@redhat.com \
--cc=julian@outer-limits.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
--cc=skorodumov.dmitry@huawei.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®