mbox series

[PATCHv3,net,0/2] IPv4: send notify when delete source address routes

Message ID 20230921031409.514488-1-liuhangbin@gmail.com (mailing list archive)
Headers show
Series IPv4: send notify when delete source address routes | expand

Message

Hangbin Liu Sept. 21, 2023, 3:14 a.m. UTC
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(-)