]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: batch the page reference count updates
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 16 Sep 2020 09:33:45 +0000 (17:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Sep 2020 23:14:28 +0000 (16:14 -0700)
commitaeda9bf87a4573906d6dff5fcf7a3df0f41529da
treefc9bef1ec1cb13dea65a97593b2d55b13f5aa012
parentb948577b984a01d24d401d2264efbccc7f0146c1
net: hns3: batch the page reference count updates

Batch the page reference count updates instead of doing them
one at a time. By doing this we can improve the overall receive
performance by avoid some atomic increment operations when the
rx page is reused.

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