summaryrefslogtreecommitdiff
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-12-14 18:53:12 +0300
committerDavid S. Miller <davem@davemloft.net>2019-12-17 03:14:42 +0300
commit525bc345fcbc6f0d58977452999dd18a15dc0e9b (patch)
tree7b4a85cd3f5b90a8baa606caa9f53926df72c25e /net/ipv4/fib_trie.c
parentf613b6e2ffe13e9acba0d330a058b87aa0e19a2a (diff)
downloadlinux-525bc345fcbc6f0d58977452999dd18a15dc0e9b.tar.xz
ipv4: Handle route deletion notification during flush
In a similar fashion to previous patch, when a route is deleted as part of table flushing, promote the next route in the list, if exists. Otherwise, simply emit a delete notification. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 012aca433a91..c23be49ca51c 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -1979,6 +1979,8 @@ int fib_table_flush(struct net *net, struct fib_table *tb, bool flush_all)
continue;
}
+ fib_notify_alias_delete(net, n->key, &n->leaf, fa,
+ NULL);
call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL,
n->key,
KEYLENGTH - fa->fa_slen, fa,