]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: batch tx doorbell operation
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 16 Sep 2020 09:33:46 +0000 (17:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Sep 2020 23:14:28 +0000 (16:14 -0700)
commit21578307000b5cd7f776457e44c6353b9954850c
tree0d34c4ff63199fe16e0a45acadf242f8f49f33a1
parentb47fd245de2d80ef6d35ac9c427bec7b3b9c9104
net: hns3: batch tx doorbell operation

Use netdev_xmit_more() to defer the tx doorbell operation when
the skb is passed to the driver continuously. By doing this we
can improve the overall xmit performance by avoid some doorbell
operations.

Also, the tx_err_cnt stat is not used, so rename it to tx_more
stat.

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
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c