ipv4: export fib_flush
authorDavid Ahern <dsahern@gmail.com>
Wed, 22 May 2019 19:04:44 +0000 (12:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:48:44 +0000 (17:48 -0700)
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>
include/net/ip_fib.h
net/ipv4/fib_frontend.c

index 27d7c89..79c18bd 100644 (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)
index b298255..dfa57a8 100644 (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;