From: Hangbin Liu <liuhangbin@gmail.com>
To: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Ido Schimmel <idosch@nvidia.com>,
David Ahern <dsahern@kernel.org>,
Benjamin Poirier <bpoirier@nvidia.com>,
Thomas Haller <thaller@redhat.com>,
Stephen Hemminger <stephen@networkplumber.org>,
Eric Dumazet <edumazet@google.com>,
Nicolas Dichtel <nicolas.dichtel@6wind.com>,
Hangbin Liu <liuhangbin@gmail.com>
Subject: [PATCHv3 net 0/2] IPv4: send notify when delete source address routes
Date: Thu, 21 Sep 2023 11:14:07 +0800 [thread overview]
Message-ID: <20230921031409.514488-1-liuhangbin@gmail.com> (raw)
After deleting an interface address, the relate perfer source address routes
are also deleted. But there is no notify for the route deleting, which makes
route daemons, or monitor like `ip monitor route` miss the routing changes
when delete src routes.
Run fib_tests.sh and all passed.
Tests passed: 203
Tests failed: 0
v3: Update patch description. Target to net as Nicolas suggested.
v2: Add a bit in fib_info to mark the deleted src route.
Hangbin Liu (2):
fib: convert fib_nh_is_v6 and nh_updated to use a single bit
ipv4/fib: send notify when delete source address routes
include/net/ip_fib.h | 5 +++--
net/ipv4/fib_semantics.c | 3 ++-
net/ipv4/fib_trie.c | 4 ++++
net/ipv4/nexthop.c | 4 ++--
4 files changed, 11 insertions(+), 5 deletions(-)
--
2.41.0
next reply other threads:[~2023-09-21 3:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-21 3:14 Hangbin Liu [this message]
2023-09-21 3:14 ` [PATCHv3 net 1/2] fib: convert fib_nh_is_v6 and nh_updated to use a single bit Hangbin Liu
2023-09-21 13:03 ` David Ahern
2023-09-22 1:29 ` Hangbin Liu
2023-09-22 1:51 ` David Ahern
2023-09-21 3:14 ` [PATCHv3 net 2/2] ipv4/fib: send notify when delete source address routes Hangbin Liu
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=20230921031409.514488-1-liuhangbin@gmail.com \
--to=liuhangbin@gmail.com \
--cc=bpoirier@nvidia.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=pabeni@redhat.com \
--cc=stephen@networkplumber.org \
--cc=thaller@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 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).