On 02/03/18 18:32, David Ahern wrote: > IPv6 does path selection for multipath routes deep in the lookup > functions. The next patch adds L4 hash option and needs the skb > for the forward path. To get the skb to the relevant FIB lookup > functions it needs to go through the fib rules layer, so add a > lookup_data argument to the fib_lookup_arg struct. > > Signed-off-by: David Ahern <dsah...@gmail.com> > Reviewed-by: Ido Schimmel <ido...@mellanox.com> > --- > drivers/infiniband/core/cma.c | 2 +- > drivers/net/ipvlan/ipvlan_core.c | 3 +- > drivers/net/vrf.c | 7 ++-- > include/net/fib_rules.h | 1 + > include/net/ip6_fib.h | 4 ++- > include/net/ip6_route.h | 11 +++--- > net/ipv6/anycast.c | 2 +- > net/ipv6/fib6_rules.c | 8 +++-- > net/ipv6/icmp.c | 3 +- > net/ipv6/ip6_fib.c | 3 +- > net/ipv6/ip6_gre.c | 2 +- > net/ipv6/ip6_tunnel.c | 4 +-- > net/ipv6/ip6_vti.c | 2 +- > net/ipv6/mcast.c | 4 +-- > net/ipv6/netfilter/ip6t_rpfilter.c | 2 +- > net/ipv6/netfilter/nft_fib_ipv6.c | 3 +- > net/ipv6/route.c | 72 > +++++++++++++++++++++++--------------- > net/ipv6/seg6_local.c | 4 +-- > 18 files changed, 83 insertions(+), 54 deletions(-) >
Indeed, I remember this requirement back when I was making the IPv4 changes and looked into how IPv6 is handled, skb wasn't passed down until now. Looks good to me! Reviewed-by: Nikolay Aleksandrov <niko...@cumulusnetworks.com>