diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2020-09-16 12:33:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 02:14:28 +0300 |
commit | aeda9bf87a4573906d6dff5fcf7a3df0f41529da (patch) | |
tree | fc9bef1ec1cb13dea65a97593b2d55b13f5aa012 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | |
parent | b948577b984a01d24d401d2264efbccc7f0146c1 (diff) | |
download | linux-aeda9bf87a4573906d6dff5fcf7a3df0f41529da.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 98ca6ead0b7d..8f7840941dd8 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -287,6 +287,7 @@ struct hns3_desc_cb { /* desc type, used by the ring user to mark the type of the priv data */ u16 type; + u16 pagecnt_bias; }; enum hns3_pkt_l3type { |