diff options
author | David Ahern <dsahern@gmail.com> | 2018-03-02 17:32:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-04 19:04:22 +0100 |
commit | b75cc8f90f07342467b3bd51dbc0054f185032c9 (patch) | |
tree | c60c0be94f8d29690af3a997d6672724192f2634 /drivers/net/ipvlan | |
parent | net: Rename NETEVENT_MULTIPATH_HASH_UPDATE (diff) | |
download | linux-b75cc8f90f07342467b3bd51dbc0054f185032c9.tar.xz linux-b75cc8f90f07342467b3bd51dbc0054f185032c9.zip |
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 <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c index 17daebd19e65..1a8132eb2a3e 100644 --- a/drivers/net/ipvlan/ipvlan_core.c +++ b/drivers/net/ipvlan/ipvlan_core.c @@ -817,7 +817,8 @@ struct sk_buff *ipvlan_l3_rcv(struct net_device *dev, struct sk_buff *skb, }; skb_dst_drop(skb); - dst = ip6_route_input_lookup(dev_net(sdev), sdev, &fl6, flags); + dst = ip6_route_input_lookup(dev_net(sdev), sdev, &fl6, + skb, flags); skb_dst_set(skb, dst); break; } |