提交 a8d940d8 编写于 作者: S shenjian 提交者: Xie XiuQi

net: hns3: fix set ring parameters error

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The hns3_init_all_ring() has called outside the
hns3_change_all_ring_bd_num(), we should remove
it from hns3_change_all_ring_bd_num().

Feature or Bugfix:Bugfix
Signed-off-by: Nshenjian (K) <shenjian15@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 83cf1fc4
...@@ -48,7 +48,7 @@ enum HCLGE_MBX_OPCODE { ...@@ -48,7 +48,7 @@ enum HCLGE_MBX_OPCODE {
HCLGE_MBX_GET_VF_FLR_STATUS = 200, /* (M7 -> PF) get vf flr status */ HCLGE_MBX_GET_VF_FLR_STATUS = 200, /* (M7 -> PF) get vf flr status */
HCLGE_MBX_PUSH_LINK_STATUS, /* (M7 -> PF) get port link status */ HCLGE_MBX_PUSH_LINK_STATUS, /* (M7 -> PF) get port link status */
HCLGE_MBX_NCSI_ERROR = 202, /* (M7 -> PF) receive a NCSI error */ HCLGE_MBX_NCSI_ERROR, /* (M7 -> PF) receive a NCSI error */
}; };
/* below are per-VF mac-vlan subcodes */ /* below are per-VF mac-vlan subcodes */
......
...@@ -870,8 +870,8 @@ static int hns3_get_rxnfc(struct net_device *netdev, ...@@ -870,8 +870,8 @@ static int hns3_get_rxnfc(struct net_device *netdev,
} }
} }
static int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, static void hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv,
u32 tx_desc_num, u32 rx_desc_num) u32 tx_desc_num, u32 rx_desc_num)
{ {
struct hnae3_handle *h = priv->ae_handle; struct hnae3_handle *h = priv->ae_handle;
int i; int i;
...@@ -884,8 +884,6 @@ static int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, ...@@ -884,8 +884,6 @@ static int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv,
priv->ring_data[(u32)(i + h->kinfo.num_tqps)].ring->desc_num = priv->ring_data[(u32)(i + h->kinfo.num_tqps)].ring->desc_num =
rx_desc_num; rx_desc_num;
} }
return hns3_init_all_ring(priv);
} }
static struct hns3_enet_ring *hns3_backup_ringparam(struct hns3_nic_priv *priv) static struct hns3_enet_ring *hns3_backup_ringparam(struct hns3_nic_priv *priv)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册