]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: skip metrics loop for dst_default_metrics
authorDavid Ahern <dsahern@gmail.com>
Fri, 21 Jun 2019 23:27:16 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 20:14:59 +0000 (13:14 -0700)
commit6772b7918a62f7358c4d64322e702768879ae06c
treea673724f126f4391966caea67adf1fef78a5eeae
parentc8fc28698c35d64b0b179966f1f85e37fc7300d1
rtnetlink: skip metrics loop for dst_default_metrics

dst_default_metrics has all of the metrics initialized to 0, so nothing
will be added to the skb in rtnetlink_put_metrics. Avoid the loop if
metrics is from dst_default_metrics.

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