]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns: add spin lock for tcam table operation
authorDaode Huang <huangdaode@hisilicon.com>
Tue, 21 Jun 2016 03:56:31 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:55 +0000 (04:51 -0400)
commitb76238168991f8b000c90ba053f6f125e4cf1e8c
tree6026356b91fc06fbd05463878d666d443ec70a1f
parent379d3954923537df4d895cb9d1ce36d8a7888d17
net: hns: add spin lock for tcam table operation

This patch adds spin lock for tcam table operation,
there maybe a race condition happens when more than
one thread try to change the tcam talbe entries.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h