]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Create cleanup helper for fib_nh
authorDavid Ahern <dsahern@gmail.com>
Thu, 28 Mar 2019 03:53:49 +0000 (20:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 17:48:03 +0000 (10:48 -0700)
commitfffe6e0e5011a54d0bfb4c08358c9cd3cd0bf32a
tree70dba101146cf25c4c04fc669ea8b24051d9440b
parentbb002039fac375de7312671fa865576e90df606b
ipv4: Create cleanup helper for fib_nh

Move the fib_nh cleanup code from free_fib_info_rcu into a new helper,
fib_nh_release. Move classid accounting into fib_nh_release which is
called per fib_nh to make accounting symmetrical with fib_nh_init.
Export the helper to allow for use with nexthop objects in the
future.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_semantics.c