aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2020-09-16 17:33:45 +0800
committerDavid S. Miller <davem@davemloft.net>2020-09-17 16:14:28 -0700
commitaeda9bf87a4573906d6dff5fcf7a3df0f41529da (patch)
treefc9bef1ec1cb13dea65a97593b2d55b13f5aa012 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
parentcxgb4vf: convert to use DEFINE_SEQ_ATTRIBUTE macro (diff)
downloadlinux-dev-aeda9bf87a4573906d6dff5fcf7a3df0f41529da.tar.xz
linux-dev-aeda9bf87a4573906d6dff5fcf7a3df0f41529da.zip
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.h1
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 {