From 3ee7211ceea9b5811e7d669de5e29cc92f03d311 Mon Sep 17 00:00:00 2001 From: Yunsheng Lin Date: Wed, 10 Apr 2019 10:32:44 +0800 Subject: [PATCH] net: hns3: keep the code align with mainline driver inclusion category: bugfix bugzilla: NA CVE: NA update the code to make it the same with mainline. Signed-off-by: Yunsheng Lin Reviewed-by: lipeng Reviewed-by: Xie XiuQi Signed-off-by: Yang Yingliang --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index e3fd46a2cbdb..e45abf02aa65 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -304,11 +304,11 @@ struct hns3_desc_cb { /* priv data for the desc, e.g. skb when use with ip stack*/ void *priv; u32 page_offset; - u32 reuse_flag; - u32 length; /* length of the buffer */ - /* desc type, used by the ring user to mark the type of the priv data */ + u16 reuse_flag; + + /* desc type, used by the ring user to mark the type of the priv data */ u16 type; }; -- GitLab