]> Git Repo - linux.git/commitdiff
ipv4: fib: Export free_fib_info()
authorIdo Schimmel <[email protected]>
Sat, 3 Dec 2016 15:44:58 +0000 (16:44 +0100)
committerDavid S. Miller <[email protected]>
Sun, 4 Dec 2016 00:29:35 +0000 (19:29 -0500)
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 <[email protected]>
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/fib_semantics.c

index 388d3e21629b17b9a212234352ac7644da4fb7d6..c1bc1e92de0ec97fe5061e1587da43919b81568e 100644 (file)
@@ -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)
 {
This page took 0.046613 seconds and 4 git commands to generate.