]> git.baikalelectronics.ru Git - kernel.git/commit
net: Move free of fib_metrics to helper
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Oct 2018 03:07:52 +0000 (20:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 04:54:10 +0000 (21:54 -0700)
commit90db62335a0daebb1713049f09a99debc2836736
treec6544db0c15445adcacaf84bec9a12d11020c584
parent61a7e8dba136a684e0e44f54cf0ef0d9b5f8c62e
net: Move free of fib_metrics to helper

Move the refcounting and potential free of dst metrics associated
with a fib entry to a helper and use it in both ipv4 and ipv6.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/fib_semantics.c
net/ipv6/ip6_fib.c