net: hns3: check MAC's exist status before setting
driver inclusion
category: bugfix
bugzilla: NA
CVE: NA
This patch adds a check for MAC's exist status when configuring VF
MAC on the host.
Also, checking the new MAC from VF is equal to the HOST's one when
it is not zero, if not, then return -EPERM to VF.
Fixes: 23be8a6689b2 ("net: hns3: add support for configuring VF MAC on the host")
Feature or Bugfix:Bugfix
Signed-off-by: NHuazhong Tan <tanhuazhong@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>
Showing
想要评论请 注册 或 登录