net: hns3: swaps sequence between remove and add when modifying port base vlan
driver inclusion
category: bugfix
bugzilla: NA
CVE: NA
When modified the port base vlan tag, we need to add a new vlan tag and
remove the old vlan tag. In original codes, removing the tag action
was before adding the new tag. Onece the new tag added failed,
if would cause the old tag lost. So we change the sequence.
Fixes : 18fb5b0b985d ("After the vf is abnormal, delete the entries
remaining in the chip.")
Feature or Bugfix:Bugfix
Signed-off-by: NGuojia Liao <liaoguojia@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录