提交 6bfde2e1 编写于 作者: D David S. Miller

Merge branch 'hns3-fixes'

Huazhong Tan says:

====================
net: hns3: bug fix & optimization for HNS3 driver

This patchset presents a bug fix found out when CONFIG_ARM64_64K_PAGES
enable and an optimization for HNS3 driver.
====================
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
...@@ -2019,7 +2019,8 @@ static void hns3_nic_reuse_page(struct sk_buff *skb, int i, ...@@ -2019,7 +2019,8 @@ static void hns3_nic_reuse_page(struct sk_buff *skb, int i,
struct hns3_desc_cb *desc_cb) struct hns3_desc_cb *desc_cb)
{ {
struct hns3_desc *desc; struct hns3_desc *desc;
int truesize, size; u32 truesize;
int size;
int last_offset; int last_offset;
bool twobufs; bool twobufs;
......
...@@ -284,11 +284,11 @@ struct hns3_desc_cb { ...@@ -284,11 +284,11 @@ struct hns3_desc_cb {
/* priv data for the desc, e.g. skb when use with ip stack*/ /* priv data for the desc, e.g. skb when use with ip stack*/
void *priv; void *priv;
u16 page_offset; u32 page_offset;
u16 reuse_flag;
u32 length; /* length of the buffer */ u32 length; /* length of the buffer */
u16 reuse_flag;
/* desc type, used by the ring user to mark the type of the priv data */ /* desc type, used by the ring user to mark the type of the priv data */
u16 type; u16 type;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册