Skip to content

Commit 525bc34

Browse files
idoschdavem330
authored andcommitted
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 <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f613b6e commit 525bc34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/ipv4/fib_trie.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,8 @@ int fib_table_flush(struct net *net, struct fib_table *tb, bool flush_all)
19791979
continue;
19801980
}
19811981

1982+
fib_notify_alias_delete(net, n->key, &n->leaf, fa,
1983+
NULL);
19821984
call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL,
19831985
n->key,
19841986
KEYLENGTH - fa->fa_slen, fa,

0 commit comments

Comments
 (0)