path: root/net/ipv4/fib_semantics.c
diff options
authorIdo Schimmel <idosch@mellanox.com>2016-12-03 16:44:58 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-03 19:29:35 -0500
commitb423cb10807b3a24b909c40f4372df88118a9875 (patch)
treed5390de939c954f2a87401934557ba594c0e814e /net/ipv4/fib_semantics.c
parentact_mirred: fix a typo in get_dev (diff)
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 <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 388d3e21629b..c1bc1e92de0e 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)
call_rcu(&fi->rcu, free_fib_info_rcu);
void fib_release_info(struct fib_info *fi)