]> git.baikalelectronics.ru Git - kernel.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)
commit298d34a523e3aa420bed1fa3a03d664d1a4f601c
tree6026356b91fc06fbd05463878d666d443ec70a1f
parent11055ee06af60788dfcc1997c377662dd6dcbf62
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