]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fib: Export free_fib_info()
authorIdo Schimmel <idosch@mellanox.com>
Sat, 3 Dec 2016 15:44:58 +0000 (16:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Dec 2016 00:29:35 +0000 (19:29 -0500)
commit7219e6287b3b17758502312a9a7834c6223fa3d6
treed5390de939c954f2a87401934557ba594c0e814e
parent3418b5231304e196b8afcb2bbf78575b858381b5
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>
net/ipv4/fib_semantics.c