]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Replace netif_tx_lock to ring spin lock
authorlipeng <lipeng321@huawei.com>
Sat, 1 Apr 2017 11:03:38 +0000 (12:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:48:43 +0000 (14:48 -0700)
commit28cbb90ad86fae9bccd92d22d8595a6fc5c95e6e
tree6ff4b970f8d2a19e6971cb8cc2bd9252f090bc73
parent1357b93a784d683261892256d608b5a73ceac341
net: hns: Replace netif_tx_lock to ring spin lock

netif_tx_lock is a global spin lock, it will take affect
in all rings in the netdevice. In tx_poll_one process, it can
only lock the current ring, in this case, we define a spin lock
in hnae_ring struct for it.

Signed-off-by: lipeng <lipeng321@huawei.com>
reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.c
drivers/net/ethernet/hisilicon/hns/hnae.h
drivers/net/ethernet/hisilicon/hns/hns_enet.c