]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitab997ad408394bcaf7f3015d4c4e38047eaf2ad6
tree7a42dc942c501f16c4526ff88583e53f64be23e9
parentf23d538bc24a83c16127c2eb82c9cf1adc2b5149
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