]> 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)
commitdfc71a80353012e8f4ee45bbf9059ebb22b17eae
tree9314cbe3bc523ecae0c3ee46dfc244da8d7e972a
parenta247f284b059e6f2cb81b42168e26018a17ae64e
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: b42858a5bd15 ("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