commit | e1255ed4b6dafd9966c99cde5105891cc1ac70df | [log] [tgz] |
---|---|---|
author | David Ahern <dsahern@gmail.com> | Thu Oct 04 20:07:53 2018 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu Oct 04 21:54:19 2018 -0700 |
tree | a8118d6d76a79bc59220ce115663b9567365ce1a | |
parent | cc5f0eb2164f9aa11fe631f8d905192e0233e262 [diff] |
net: common metrics init helper for dst_entry ipv4 and ipv6 both use refcounted metrics if FIB entries have metrics set. Move the common initialization code to a helper and use for both protocols. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>