diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2013-01-28 23:44:37 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-29 13:36:23 -0500 |
commit | 5f8e1e8b767bdb8e471d4f49612b88c606f8811e (patch) | |
tree | ce54f4695fd3bc8b400dd28ed965de9cfa202cd6 /include/net/snmp.h | |
parent | cd39a7890aed7433beb3188c7ad8591e260ebf10 (diff) | |
download | lwn-5f8e1e8b767bdb8e471d4f49612b88c606f8811e.tar.gz lwn-5f8e1e8b767bdb8e471d4f49612b88c606f8811e.zip |
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 'include/net/snmp.h')
0 files changed, 0 insertions, 0 deletions