From: Stefano Brivio <sbrivio@redhat.com>
To: David Ahern <dsahern@gmail.com>, Martin KaFai Lau <kafai@fb.com>
Cc: David Miller <davem@davemloft.net>,
Jianlin Shi <jishi@redhat.com>, Wei Wang <weiwan@google.com>,
Eric Dumazet <edumazet@google.com>,
Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH net v3 0/2] ipv6: Fix listing and flushing of cached route exceptions
Date: Tue, 11 Jun 2019 00:47:58 +0200 [thread overview]
Message-ID: <20190611004758.1e302288@redhat.com> (raw)
In-Reply-To: <20190610235315.46faca79@redhat.com>
On Mon, 10 Jun 2019 23:53:15 +0200
Stefano Brivio <sbrivio@redhat.com> wrote:
> On Mon, 10 Jun 2019 15:38:06 -0600
> David Ahern <dsahern@gmail.com> wrote:
>
> > in dot releases of stable trees, I think it would be better to converge
> > on consistent behavior between v4 and v6. By that I mean without the
> > CLONED flag, no exceptions are returned (default FIB dump). With the
> > CLONED flag only exceptions are returned.
>
> Again, this needs a change in iproute2, because RTM_F_CLONED is *not*
> passed on 'flush'. And sure, let's *also* do that, but not everybody
> runs recent versions of iproute2.
One thing that sounds a bit more acceptable to me is:
- dump (in IPv4 and IPv6):
- regular routes only, if !RTM_F_CLONED and NLM_F_MATCH
- exceptions only, if RTM_F_CLONED and NLM_F_MATCH
- everything if !NLM_F_MATCH
- fix iproute2 so that RTM_F_CLONED is passed on 'flush cache', or
don't pass NLM_F_MATCH in that case
this way, the kernel respects the intended semantics of flags, and we
fix a bug in iproute2 (that was always present).
I think it's not ideal, because the kernel unexpectedly changed the
behaviour and we're not guaranteeing that older iproute2 works. The
fact it was broken for two years is probably a partial excuse for this,
though.
What do you think? I'll prepare a v4 for net-next if we all agree.
I'm not entirely sure which trees I should target. I guess this
introduces a feature in the kernel, so net-next, and fixes a bug in
iproute2, so iproute2.git?
--
Stefano
next prev parent reply other threads:[~2019-06-10 22:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-08 18:12 [PATCH net v3 0/2] ipv6: Fix listing and flushing of cached route exceptions Stefano Brivio
2019-06-08 18:12 ` [PATCH net v3 1/2] ipv6: Dump route exceptions too in rt6_dump_route() Stefano Brivio
2019-06-10 21:31 ` David Ahern
2019-06-10 21:45 ` Stefano Brivio
2019-06-10 21:47 ` David Ahern
2019-06-10 21:55 ` Stefano Brivio
2019-06-08 18:12 ` [PATCH net v3 2/2] ip6_fib: Don't discard nodes with valid routing information in fib6_locate_1() Stefano Brivio
2019-06-10 21:38 ` [PATCH net v3 0/2] ipv6: Fix listing and flushing of cached route exceptions David Ahern
2019-06-10 21:50 ` Martin Lau
2019-06-10 21:53 ` Stefano Brivio
2019-06-10 22:47 ` Stefano Brivio [this message]
2019-06-11 20:19 ` Martin Lau
2019-06-11 21:09 ` David Ahern
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=20190611004758.1e302288@redhat.com \
--to=sbrivio@redhat.com \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=edumazet@google.com \
--cc=jishi@redhat.com \
--cc=kafai@fb.com \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=netdev@vger.kernel.org \
--cc=weiwan@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;
as well as URLs for NNTP newsgroup(s).