diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2015-03-25 19:07:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-25 21:07:04 +0300 |
commit | b6a7719aedd7e5c0f2df7641aa47386111682df4 (patch) | |
tree | f0374d5535a6670c1cb453cc6c0e15237e108376 /net/ipv4/raw.c | |
parent | 8fa38a38ac37a0ca5366cd62ba4339c2bab49db9 (diff) | |
download | linux-b6a7719aedd7e5c0f2df7641aa47386111682df4.tar.xz |
ipv4: hash net ptr into fragmentation bucket selection
As namespaces are sometimes used with overlapping ip address ranges,
we should also use the namespace as input to the hash to select the ip
fragmentation counter bucket.
Cc: Eric Dumazet <edumazet@google.com>
Cc: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 923cf538fce1..56946f47d446 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -404,7 +404,7 @@ static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4, iph->check = 0; iph->tot_len = htons(length); if (!iph->id) - ip_select_ident(skb, NULL); + ip_select_ident(net, skb, NULL); iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); } |