diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2012-11-30 09:23:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-30 15:02:56 -0500 |
commit | b02a80674ea3905926c1a942426008d732c47339 (patch) | |
tree | aa3c3f9903d4fcc23009b6e3ecce2b15ee2885dd /drivers/net/hyperv | |
parent | 1b4c44e6369dbbafd113f1e00b406f1eda5ab5b2 (diff) | |
download | linux-stable-b02a80674ea3905926c1a942426008d732c47339.tar.gz linux-stable-b02a80674ea3905926c1a942426008d732c47339.tar.bz2 linux-stable-b02a80674ea3905926c1a942426008d732c47339.zip |
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>
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r-- | drivers/net/hyperv/rndis_filter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 7fdeb528133d..2b657d4d63a8 100644 --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -605,8 +605,11 @@ 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", + set_complete->status); ret = -EINVAL; + } } cleanup: |