path: root/net/ipv6/netfilter/nft_fib_ipv6.c
diff options
authorDavid Ahern <>2018-03-02 08:32:17 -0800
committerDavid S. Miller <>2018-03-04 13:04:22 -0500
commitb75cc8f90f07342467b3bd51dbc0054f185032c9 (patch)
treec60c0be94f8d29690af3a997d6672724192f2634 /net/ipv6/netfilter/nft_fib_ipv6.c
parent3192dac64c73d8c0eb4274a3da23d829fb5177af (diff)
net/ipv6: Pass skb to route lookup
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 <> Reviewed-by: Ido Schimmel <> Reviewed-by: Nikolay Aleksandrov <> Signed-off-by: David S. Miller <>
Diffstat (limited to 'net/ipv6/netfilter/nft_fib_ipv6.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/nft_fib_ipv6.c b/net/ipv6/netfilter/nft_fib_ipv6.c
index cc5174c7254c..3230b3d7b11b 100644
--- a/net/ipv6/netfilter/nft_fib_ipv6.c
+++ b/net/ipv6/netfilter/nft_fib_ipv6.c
@@ -181,7 +181,8 @@ void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs,
*dest = 0;
- rt = (void *)ip6_route_lookup(nft_net(pkt), &fl6, lookup_flags);
+ rt = (void *)ip6_route_lookup(nft_net(pkt), &fl6, pkt->skb,
+ lookup_flags);
if (rt->dst.error)
goto put_rt_err;