]> 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)
commitae4bd0b538b5a0375a0ceb0e25727d30c43aaf92
tree7a42dc942c501f16c4526ff88583e53f64be23e9
parent41c5a1a288ff957a366094381a8896586e939ec2
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