]> 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)
commit40ab03ba21248e308025d3275acd4bd001e60115
treec6544db0c15445adcacaf84bec9a12d11020c584
parentf907f93192ffb90ab3e4e321e459f3e77a527e61
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