From: Ido Schimmel Date: Sat, 3 Dec 2016 15:44:58 +0000 (+0100) Subject: ipv4: fib: Export free_fib_info() X-Git-Tag: v4.14-rc1~1973^2~92^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b423cb10807b3a24b909c40f4372df88118a9875;p=platform%2Fkernel%2Flinux-rpi3.git ipv4: fib: Export free_fib_info() The FIB notification chain is going to be converted to an atomic chain, which means switchdev drivers will have to offload FIB entries in deferred work, as hardware operations entail sleeping. However, while the work is queued fib info might be freed, so a reference must be taken. To release the reference (and potentially free the fib info) fib_info_put() will be called, which in turn calls free_fib_info(). Export free_fib_info() so that modules will be able to invoke fib_info_put(). Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 388d3e2..c1bc1e9 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -234,6 +234,7 @@ void free_fib_info(struct fib_info *fi) #endif call_rcu(&fi->rcu, free_fib_info_rcu); } +EXPORT_SYMBOL_GPL(free_fib_info); void fib_release_info(struct fib_info *fi) {