]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Use result arg in fib_lookup_arg consistently
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Apr 2019 01:05:33 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2019 04:53:11 +0000 (21:53 -0700)
commitf967d0a8666e7b3112e7134fdbf205bd93b7a099
tree9314cbe3bc523ecae0c3ee46dfc244da8d7e972a
parent6c621b705ab0c10bd62a6f712049402004929cd7
ipv6: Use result arg in fib_lookup_arg consistently

arg.result is sometimes used as fib6_result and sometimes used to
hold the rt6_info. Add rt6_info to fib6_result and make the use
of arg.result consistent through ipv6 rules.

The rt6 entry is filled in for lookups returning a dst_entry, but not
for direct fib_lookups that just want a fib6_info.

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