summaryrefslogtreecommitdiff
path: root/net/ipv4/inet_fragment.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2013-01-28 23:44:37 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-01-29 18:36:23 (GMT)
commit5f8e1e8b767bdb8e471d4f49612b88c606f8811e (patch)
treece54f4695fd3bc8b400dd28ed965de9cfa202cd6 /net/ipv4/inet_fragment.c
parentcd39a7890aed7433beb3188c7ad8591e260ebf10 (diff)
downloadlinux-5f8e1e8b767bdb8e471d4f49612b88c606f8811e.tar.xz
net: cacheline adjust struct inet_frags for better frag performance
The globally shared rwlock, of struct inet_frags, shares cacheline with the 'rnd' number, which is used by the hash calculations. Fix this, as this obviously is a bad idea, as unnecessary cache-misses will occur when accessing the 'rnd' number. Also small note that, moving function ptr (*match) up in struct, is to avoid it lands on the next cacheline (on 64-bit). Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_fragment.c')
0 files changed, 0 insertions, 0 deletions