Skip to content
Commit 0131ba45 authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Don't miss existing cached metrics in new routes.



Always lookup to see if we have an existing inetpeer entry for
a route.  Let FLOWI_FLAG_PRECOW_METRICS merely influence the
"create" argument to rt_bind_peer().

Also, call rt_bind_peer() unconditionally since it is not
possible for rt->peer to be non-NULL at this point.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bd4a6974
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment