OSDN Git Service

ipv4: Handle route deletion notification
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Dec 2019 15:53:11 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:14:42 +0000 (16:14 -0800)
commitf613b6e2ffe13e9acba0d330a058b87aa0e19a2a
tree4731be7e19ea0c157d22b3e9839c8cc4f0fd9937
parenta8674f753e36f566d6c1d992ab85323d784281d9
ipv4: Handle route deletion notification

When a route is deleted we potentially need to promote the next route in
the FIB alias list (e.g., with an higher metric). In case we find such a
route, a replace notification is emitted. Otherwise, a delete
notification for the deleted route.

v2:
* Convert to use fib_find_alias() instead of fib_find_first_alias()

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c