summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/tsnmap.h
diff options
context:
space:
mode:
authorEric Dumazet2008-10-08 23:18:04 +0200
committerDavid S. Miller2008-10-08 23:18:04 +0200
commit3c689b7320ae6f20dba6a8b71806a6c6fd604ee8 (patch)
treef9417dbd9f4aca952a1aba3e9a0f2a5a6e088dcd /include/net/sctp/tsnmap.h
parentudp: Improve port randomization (diff)
downloadkernel-qcow2-linux-3c689b7320ae6f20dba6a8b71806a6c6fd604ee8.tar.gz
kernel-qcow2-linux-3c689b7320ae6f20dba6a8b71806a6c6fd604ee8.tar.xz
kernel-qcow2-linux-3c689b7320ae6f20dba6a8b71806a6c6fd604ee8.zip
inet: cleanup of local_port_range
I noticed sysctl_local_port_range[] and its associated seqlock sysctl_local_port_range_lock were on separate cache lines. Moreover, sysctl_local_port_range[] was close to unrelated variables, highly modified, leading to cache misses. Moving these two variables in a structure can help data locality and moving this structure to read_mostly section helps sharing of this data among cpus. Cleanup of extern declarations (moved in include file where they belong), and use of inet_get_local_port_range() accessor instead of direct access to ports values. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/tsnmap.h')
0 files changed, 0 insertions, 0 deletions