Commit 525bc345 authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller

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: default avatarIdo Schimmel <idosch@mellanox.com>
Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f613b6e2
...@@ -1979,6 +1979,8 @@ int fib_table_flush(struct net *net, struct fib_table *tb, bool flush_all) ...@@ -1979,6 +1979,8 @@ int fib_table_flush(struct net *net, struct fib_table *tb, bool flush_all)
continue; continue;
} }
fib_notify_alias_delete(net, n->key, &n->leaf, fa,
NULL);
call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL,
n->key, n->key,
KEYLENGTH - fa->fa_slen, fa, KEYLENGTH - fa->fa_slen, fa,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment