提交 8ffe4326 编写于 作者: J Jiantao Xiao

Revert "net: hns3: fix getting supported parameter from driver in hclge_set_wol"

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7ON9Y
CVE: NA

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

This reverts commit c92b8f62.
Signed-off-by: NJiantao Xiao <xiaojiantao1@h-partners.com>
上级 1c46bf6e
......@@ -12248,10 +12248,12 @@ static int hclge_set_wol(struct hnae3_handle *handle,
struct hclge_vport *vport = hclge_get_vport(handle);
struct hclge_dev *hdev = vport->back;
struct hclge_wol_info *wol_info = &hdev->hw.mac.wol;
u32 wol_supported;
u32 wol_mode;
wol_supported = hclge_wol_mode_from_ethtool(wol->supported);
wol_mode = hclge_wol_mode_from_ethtool(wol->wolopts);
if (wol_mode & ~wol_info->wol_support_mode)
if (wol_mode & ~wol_supported)
return -EINVAL;
wol_info->wol_current_mode = wol_mode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册