Commit 9bd83667 authored by David Ahern's avatar David Ahern Committed by David S. Miller

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac1fab2d
...@@ -473,6 +473,7 @@ static inline void fib_combine_itag(u32 *itag, const struct fib_result *res) ...@@ -473,6 +473,7 @@ static inline void fib_combine_itag(u32 *itag, const struct fib_result *res)
#endif #endif
} }
void fib_flush(struct net *net);
void free_fib_info(struct fib_info *fi); void free_fib_info(struct fib_info *fi);
static inline void fib_info_hold(struct fib_info *fi) static inline void fib_info_hold(struct fib_info *fi)
......
...@@ -192,7 +192,7 @@ int fib_unmerge(struct net *net) ...@@ -192,7 +192,7 @@ int fib_unmerge(struct net *net)
return 0; return 0;
} }
static void fib_flush(struct net *net) void fib_flush(struct net *net)
{ {
int flushed = 0; int flushed = 0;
unsigned int h; unsigned int h;
......
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