]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix the incorrect return value of throw route
authorlucien <lucien.xin@gmail.com>
Fri, 23 Oct 2015 07:36:53 +0000 (15:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Oct 2015 09:38:18 +0000 (02:38 -0700)
commitbadbf4b54f165b27cbce3ffc5c583959f0f439a9
tree7a42dc942c501f16c4526ff88583e53f64be23e9
parent2cc0360dc907855a7795d31c9c47e8438bae43c7
ipv6: fix the incorrect return value of throw route

The error condition -EAGAIN, which is signaled by throw routes, tells
the rules framework to walk on searching for next matches. If the walk
ends and we stop walking the rules with the result of a throw route we
have to translate the error conditions to -ENETUNREACH.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/fib6_rules.c
net/ipv6/ip6_fib.c