ipv4: export fib_flush

As nexthops are deleted, fib entries referencing it are marked dead.
Export fib_flush so those entries can be removed in a timely manner.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David Ahern 2019-05-22 12:04:44 -07:00 committed by David S. Miller
parent ac1fab2d13
commit 9bd8366792
2 changed files with 2 additions and 1 deletions

View File

@ -473,6 +473,7 @@ static inline void fib_combine_itag(u32 *itag, const struct fib_result *res)
#endif
}
void fib_flush(struct net *net);
void free_fib_info(struct fib_info *fi);
static inline void fib_info_hold(struct fib_info *fi)

View File

@ -192,7 +192,7 @@ int fib_unmerge(struct net *net)
return 0;
}
static void fib_flush(struct net *net)
void fib_flush(struct net *net)
{
int flushed = 0;
unsigned int h;