Commit b02a8067 authored by Haiyang Zhang's avatar Haiyang Zhang Committed by David S. Miller

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: default avatarMichal Kubecek <>
Signed-off-by: default avatarHaiyang Zhang <>
Reviewed-by: default avatarK. Y. Srinivasan <>
Signed-off-by: default avatarDavid S. Miller <>
parent 1b4c44e6
......@@ -605,9 +605,12 @@ int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac)
return -EBUSY;
} else {
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",
ret = -EINVAL;
put_rndis_request(rdev, request);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment