]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: vlan: adjust rhashtable initial size and hash locks size
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 30 Sep 2015 18:16:51 +0000 (20:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2015 01:24:03 +0000 (18:24 -0700)
commitdd1224fc542550922a3e4ac99fd7c98868ca7a6b
tree89bff0cf7845888e3790bfa9870d517d7313a6c3
parentd1d2c10ca5b42d5a2a03bc429ff005c71dec216b
bridge: vlan: adjust rhashtable initial size and hash locks size

As Stephen pointed out the default initial size is more than we need, so
let's start small (4 elements, thus nelem_hint = 3). Also limit the hash
locks to the number of CPUs as we don't need any write-side scaling and
this looks like the minimum.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c