• David Ahern's avatar
    net: Move fib_convert_metrics to metrics file · a919525a
    David Ahern authored
    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: default avatarDavid Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a919525a
Makefile 2.7 KB