提交 02ebc268 编写于 作者: B Ben Hutchings 提交者: David S. Miller

sfc: Use current MAC address, not NVRAM MAC address, for WoL filter

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4f3907e9
...@@ -562,7 +562,7 @@ static int siena_set_wol(struct efx_nic *efx, u32 type) ...@@ -562,7 +562,7 @@ static int siena_set_wol(struct efx_nic *efx, u32 type)
if (nic_data->wol_filter_id != -1) if (nic_data->wol_filter_id != -1)
efx_mcdi_wol_filter_remove(efx, efx_mcdi_wol_filter_remove(efx,
nic_data->wol_filter_id); nic_data->wol_filter_id);
rc = efx_mcdi_wol_filter_set_magic(efx, efx->mac_address, rc = efx_mcdi_wol_filter_set_magic(efx, efx->net_dev->dev_addr,
&nic_data->wol_filter_id); &nic_data->wol_filter_id);
if (rc) if (rc)
goto fail; goto fail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册