OSDN Git Service

vxlan: Use FDB_HASH_SIZE hash_locks to reduce contention
authorLitao jiao <jiaolitao@raisecom.com>
Thu, 6 Jun 2019 09:57:58 +0000 (17:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 18:08:55 +0000 (11:08 -0700)
commitfe1e0713bbe84c6796b01d50a55ce4e324141161
tree2cd04c3b21deca45672f51015c0c1cb5ad3deede
parent4daa95af7f1c78fa6f8e2a92dc7d52c46443974e
vxlan: Use FDB_HASH_SIZE hash_locks to reduce contention

The monolithic hash_lock could cause huge contention when
inserting/deletiing vxlan_fdbs into the fdb_head.

Use FDB_HASH_SIZE hash_locks to protect insertions/deletions
of vxlan_fdbs into the fdb_head hash table.

Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Litao jiao <jiaolitao@raisecom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h