Re: [PATCH net-next] netns: get more entropy from net_hash_mix()

2018-06-22 Thread David Miller
From: Eric Dumazet Date: Fri, 22 Jun 2018 16:27:47 -0700 > 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

[PATCH net-next] netns: get more entropy from net_hash_mix()

2018-06-22 Thread Eric Dumazet
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. Fo