From: Stanislav Fomichev <stfomichev@gmail.com>
To: Eric Dumazet <edumazet@google.com>
Cc: David Ahern <dsahern@kernel.org>,
Nicolas Dichtel <nicolas.dichtel@6wind.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, Paul Ripke <stix@google.com>,
Simon Horman <horms@kernel.org>,
eric.dumazet@gmail.com
Subject: Re: [PATCH net-next 2/2] ipv6: fix blackhole routes
Date: Wed, 12 Feb 2025 18:30:52 -0800 [thread overview]
Message-ID: <Z61ZXLdD4VQZFcBa@mini-arch> (raw)
In-Reply-To: <CANn89iLiEcbnbMj7MdCTPsxoT3fHANALZ9LAAsG9T+sWcv-vew@mail.gmail.com>
On 02/12, Eric Dumazet wrote:
> On Wed, Feb 12, 2025 at 7:00 PM David Ahern <dsahern@kernel.org> wrote:
> >
> > On 2/12/25 9:43 AM, Eric Dumazet wrote:
> > > diff --git a/net/ipv6/route.c b/net/ipv6/route.c
> > > index 78362822b9070df138a0724dc76003b63026f9e2..335cdbfe621e2fc4a71badf4ff834870638d5e13 100644
> > > --- a/net/ipv6/route.c
> > > +++ b/net/ipv6/route.c
> > > @@ -1048,7 +1048,7 @@ static const int fib6_prop[RTN_MAX + 1] = {
> > > [RTN_BROADCAST] = 0,
> > > [RTN_ANYCAST] = 0,
> > > [RTN_MULTICAST] = 0,
> > > - [RTN_BLACKHOLE] = -EINVAL,
> > > + [RTN_BLACKHOLE] = 0,
> > > [RTN_UNREACHABLE] = -EHOSTUNREACH,
> > > [RTN_PROHIBIT] = -EACCES,
> > > [RTN_THROW] = -EAGAIN,
> >
> > EINVAL goes back to ef2c7d7b59708 in 2012, so this is a change in user
> > visible behavior. Also this will make ipv6 deviate from ipv4:
> >
> > [RTN_BLACKHOLE] = {
> > .error = -EINVAL,
> > .scope = RT_SCOPE_UNIVERSE,
> > },
>
> Should we create a new RTN_SINK (or different name), for both IPv4 and IPv6 ?
Sorry for sidelining, but depending on how this discussion goes,
tools/testing/selftests/net/fib_nexthops.sh test might need to be
adjusted (currently fails presumably because of -EINVAL change):
https://netdev-3.bots.linux.dev/vmksft-net/results/990081/2-fib-nexthops-sh/stdout
---
pw-bot: cr
next prev parent reply other threads:[~2025-02-13 2:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 16:43 [PATCH net-next 0/2] net: better support of blackholes Eric Dumazet
2025-02-12 16:43 ` [PATCH net-next 1/2] net: dropreason: add SKB_DROP_REASON_BLACKHOLE Eric Dumazet
2025-02-12 17:57 ` David Ahern
2025-02-12 16:43 ` [PATCH net-next 2/2] ipv6: fix blackhole routes Eric Dumazet
2025-02-12 18:00 ` David Ahern
2025-02-12 18:38 ` Eric Dumazet
2025-02-13 2:30 ` Stanislav Fomichev [this message]
2025-02-13 15:49 ` David Ahern
2025-02-18 8:43 ` Nicolas Dichtel
2025-02-16 9:50 ` Simon Horman
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=Z61ZXLdD4VQZFcBa@mini-arch \
--to=stfomichev@gmail.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=pabeni@redhat.com \
--cc=stix@google.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