]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fib6_rule_action_alt needs to return -EAGAIN
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Apr 2019 01:06:30 +0000 (18:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2019 04:52:33 +0000 (21:52 -0700)
commita247f284b059e6f2cb81b42168e26018a17ae64e
tree65035cf5ac604d66065dd1be2b71c1986f6ccacc
parent9d18036655755396afc2e36f6e3c1078b8487e04
ipv6: fib6_rule_action_alt needs to return -EAGAIN

fib rule actions should return -EAGAIN for the rules to continue to the
next one. A recent change overwrote err with the lookup always returning
0 (future change will make it more like IPv4) which means the rules
stopped at the first (e.g., local table lookup only). Catch and reset err
to -EAGAIN.

Fixes: b42858a5bd152 ("ipv6: Pass fib6_result to fib lookups")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/fib6_rules.c