]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix nexthop lookups
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 19 Aug 2015 18:40:31 +0000 (11:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 21:42:39 +0000 (14:42 -0700)
commit6542ab87fa4a03dcdd571d00a5ae2a844f7a3ff1
treeda0247bb0bf48354e8c8d2ec087e7c3640b771ac
parent15a397d1ba4a3eb9566449613b49ea4b5b34278c
net: Fix nexthop lookups

Andreas reported breakage adding routes with local nexthops:
$ ip route show table main
...
172.28.0.0/24 dev vnf-xe1p0  proto kernel  scope link  src 172.28.0.16

$ ip route add 10.0.0.0/8 via 172.28.0.32 table 100 dev vnf-xe1p0
RTNETLINK answers: Resource temporarily unavailable

088e3db430a changed the lookup to use the passed in table but for cases like
this the nexthop is in the local table rather than the passed in table.

Fixes: 088e3db430a ("net: Use passed in table for nexthop lookups")
Reported-by: Andreas Schultz <aschultz@tpip.net>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c