Skip to content

Commit b423cb1

Browse files
idoschdavem330
authored andcommitted
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>
1 parent 548ed72 commit b423cb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/fib_semantics.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ void free_fib_info(struct fib_info *fi)
234234
#endif
235235
call_rcu(&fi->rcu, free_fib_info_rcu);
236236
}
237+
EXPORT_SYMBOL_GPL(free_fib_info);
237238

238239
void fib_release_info(struct fib_info *fi)
239240
{

0 commit comments

Comments
 (0)