net: hns3: refine for set ring parameters
driver inclusion category: bugfix bugzilla: NA CVE: NA Previously, when changing the ring parameters, we free the old ring resources firstly, and then setup the new ring resources. In some case of an allocation fail, there will be no resources to use. This patch refines it by setup new ring resources and free the old ring resources in order. Feature or Bugfix:Bugfix Signed-off-by: Nshenjian (K) <shenjian15@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录