net: Move free of dst_metrics to helper
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Oct 2018 03:07:54 +0000 (20:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 04:54:25 +0000 (21:54 -0700)
commit1620a33695d81611360d813a47ebde9386714036
tree31389ac748a71fdac40f2ab6f4122267df29845b
parente1255ed4b6dafd9966c99cde5105891cc1ac70df
net: Move free of dst_metrics to helper

Move the refcounting and potential free of dst metrics associated
for ipv4 and ipv6 to a common helper.

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