diff options
author | Tom Herbert <tom@herbertland.com> | 2015-08-01 01:52:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-01 02:07:11 +0200 |
commit | 67800f9b1f4eb5bbefc32e3f5044097354bc85b3 (patch) | |
tree | fe8539672e187703c52b6b9e0344f96c0e344551 /net/ipv6/ip6_tunnel.c | |
parent | net: Add functions to get skb->hash based on flow structures (diff) | |
download | linux-67800f9b1f4eb5bbefc32e3f5044097354bc85b3.tar.xz linux-67800f9b1f4eb5bbefc32e3f5044097354bc85b3.zip |
ipv6: Call skb_get_hash_flowi6 to get skb->hash in ip6_make_flowlabel
We can't call skb_get_hash here since the packet is not complete to do
flow_dissector. Create hash based on flowi6 instead.
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_tunnel.c')
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 2e67b660118b..54e694c4af0e 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -1095,7 +1095,7 @@ static int ip6_tnl_xmit2(struct sk_buff *skb, skb_reset_network_header(skb); ipv6h = ipv6_hdr(skb); ip6_flow_hdr(ipv6h, INET_ECN_encapsulate(0, dsfield), - ip6_make_flowlabel(net, skb, fl6->flowlabel, false)); + ip6_make_flowlabel(net, skb, fl6->flowlabel, false, fl6)); ipv6h->hop_limit = t->parms.hop_limit; ipv6h->nexthdr = proto; ipv6h->saddr = fl6->saddr; |