]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Move setting default metric for routes
authorDavid Ahern <dsahern@gmail.com>
Thu, 21 Mar 2019 12:21:34 +0000 (05:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2019 17:16:54 +0000 (10:16 -0700)
commitcbeb37460f264130ea41b1635d1a7b5a92c63ac4
tree250a98025ec646b0290afb8816b18e36c87e07aa
parentfe353c09388728a50a35a2b2a6ad3bba9abeb891
ipv6: Move setting default metric for routes

ip6_route_info_create is a low level function for ensuring fc_metric is
set. Move the check and default setting to the 2 locations that do not
already set fc_metric before calling ip6_route_info_create. This is
required for the next patch which moves addrconf allocations to
ip6_route_info_create and want the metric for host routes to be 0.

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