aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/metrics.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-04-17net: Move fib_convert_metrics to metrics fileDavid Ahern1-0/+53
Move logic of fib_convert_metrics into ip_metrics_convert. This allows the code that converts netlink attributes into metrics struct to be re-used in a later patch by IPv6. This is mostly a code move with the following changes to variable names: - fi->fib_net becomes net - fc_mx and fc_mx_len are passed as inputs pulled from fib_config - metrics array is passed as an input from fi->fib_metrics->metrics Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>