mirror of https://gitee.com/openkylin/linux.git
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:
parent
ac1fab2d13
commit
9bd8366792
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue