All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sabrina Dubroca <sd@queasysnail.net>
To: Antoine Tenart <atenart@kernel.org>
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
	edumazet@google.com, netdev@vger.kernel.org,
	Menglong Dong <menglong8.dong@gmail.com>
Subject: Re: [PATCH net v2] net: ipv4: fix stat increase when udp early demux drops the packet
Date: Tue, 1 Jul 2025 16:33:05 +0200	[thread overview]
Message-ID: <aGPxoZsW8_qa5gyF@krikkit> (raw)
In-Reply-To: <20250701074935.144134-1-atenart@kernel.org>

2025-07-01, 09:49:34 +0200, Antoine Tenart wrote:
> udp_v4_early_demux now returns drop reasons as it either returns 0 or
> ip_mc_validate_source, which returns itself a drop reason. However its
> use was not converted in ip_rcv_finish_core and the drop reason is
> ignored, leading to potentially skipping increasing LINUX_MIB_IPRPFILTER
> if the drop reason is SKB_DROP_REASON_IP_RPFILTER.
> 
> This is a fix and we're not converting udp_v4_early_demux to explicitly
> return a drop reason to ease backports; this can be done as a follow-up.
> 
> Fixes: d46f827016d8 ("net: ip: make ip_mc_validate_source() return drop reason")
> Cc: Menglong Dong <menglong8.dong@gmail.com>
> Reported-by: Sabrina Dubroca <sd@queasysnail.net>
> Signed-off-by: Antoine Tenart <atenart@kernel.org>
> ---
> Changes in v2:
>   - Reset the drop reason to NOT_SPECIFIED if not returning early. The
>     diff remains small and this aligns with the rest of the function.
> ---
>  net/ipv4/ip_input.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>

Thanks Antoine.

-- 
Sabrina

  reply	other threads:[~2025-07-01 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-01  7:49 [PATCH net v2] net: ipv4: fix stat increase when udp early demux drops the packet Antoine Tenart
2025-07-01 14:33 ` Sabrina Dubroca [this message]
2025-07-02 22: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=aGPxoZsW8_qa5gyF@krikkit \
    --to=sd@queasysnail.net \
    --cc=atenart@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=menglong8.dong@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.