mirror of https://gitee.com/openkylin/linux.git
hyperv: Add an error message to rndis_filter_set_device_mac()
This message indicates an error returned from the host when changing MAC address. Reported-by: Michal Kubecek <mkubecek@suse.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1b4c44e636
commit
b02a80674e
|
@ -605,8 +605,11 @@ int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
} else {
|
} else {
|
||||||
set_complete = &request->response_msg.msg.set_complete;
|
set_complete = &request->response_msg.msg.set_complete;
|
||||||
if (set_complete->status != RNDIS_STATUS_SUCCESS)
|
if (set_complete->status != RNDIS_STATUS_SUCCESS) {
|
||||||
|
netdev_err(ndev, "Fail to set MAC on host side:0x%x\n",
|
||||||
|
set_complete->status);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
Loading…
Reference in New Issue