Commit d2248ff9 authored by Yonglong Liu's avatar Yonglong Liu Committed by Yongqiang Liu
Browse files

net: hns3: fix vf link setting failed when no vf driver loaded

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I58AJW


CVE: NA

----------------------------

When no vf driver loaded, setting vf link state will return
fail. This patch adds check for vf keep alive, if vf keep alive
not exist, then just return success.

Fixes: 475febd3 ("net: hns3: PF add support for pushing link status to VFs")

Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarli yongxin <liyongxin1@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent acd99c12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment