]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Don't miss existing cached metrics in new routes.
authorDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 22:37:30 +0000 (14:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 22:37:30 +0000 (14:37 -0800)
commit5ff239e8ba5430e6ee34b744fd8499ae8abcd132
tree880906b7030daf840fc1e903de4381cb70cf473c
parent0693710fcee318bbd03d0a63b9a3f9c222633065
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: David S. Miller <davem@davemloft.net>
net/ipv4/route.c