aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2018-06-22 16:27:47 -0700
committerDavid S. Miller <[email protected]>2018-06-23 10:59:56 +0900
commit5424ea27390f1f8903e5de0eaa0c5b561e8e877a (patch)
treebd28494ae183d0327978152a43a1124dcc71327a /tools/perf/scripts/python
parent6c1f0a1ffb7c2b0501521b9fc1f53b4109f1791b (diff)
netns: get more entropy from net_hash_mix()
struct net are effectively allocated from order-1 pages on x86, with one object per slab, meaning that the 13 low order bits of their addresses are zero. Once shifted by L1_CACHE_SHIFT, this leaves 7 zero-bits, meaning that net_hash_mix() does not help spreading objects on various hash tables. For example, TCP listen table has 32 buckets, meaning that all netns use the same bucket for port 80 or port 443. Signed-off-by: Eric Dumazet <[email protected]> Reported-by: Maciej Żenczykowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions