net: hns3: optimize the barrier using when cleaning TX BD
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 6 May 2019 02:48:49 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:37:14 +0000 (10:37 -0700)
commitce74370c2ce9a90c16167131f837e14b5e3c57ed
treee7712ff507a9cbdc2fbca535b15d513a0ffdef0b
parentaa9d22dd456eb255db2a4a5b214ec2e243dda4c8
net: hns3: optimize the barrier using when cleaning TX BD

Currently, a barrier is used when cleaning each TX BD, which may
cause performance degradation.

This patch optimizes it to use one barrier when cleaning TX BD
each round.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c