[PATCHv2 net-next 0/2] send notify when delete source address routes

Hangbin Liu
2023-08-09T14:02:42Z

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 like NetworkManager keep a wrong cache. Fix this by sending
notify when delete src routes.

Run fib_tests.sh and all passed.

Tests passed: 203
Tests failed: 0

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.38.1