OSDN Git Service

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)
commitcc5f0eb2164f9aa11fe631f8d905192e0233e262
treec6544db0c15445adcacaf84bec9a12d11020c584
parent767a2217533fed696af0d06bee7746d34c4e00aa
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