projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b4c44e
)
hyperv: Add an error message to rndis_filter_set_device_mac()
author
Haiyang Zhang
<
[email protected]
>
Fri, 30 Nov 2012 09:23:41 +0000
(09:23 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 30 Nov 2012 20:02:56 +0000
(15:02 -0500)
This message indicates an error returned from the host when changing MAC address.
Reported-by: Michal Kubecek <
[email protected]
>
Signed-off-by: Haiyang Zhang <
[email protected]
>
Reviewed-by: K. Y. Srinivasan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/hyperv/rndis_filter.c
patch
|
blob
|
history
diff --git
a/drivers/net/hyperv/rndis_filter.c
b/drivers/net/hyperv/rndis_filter.c
index 7fdeb528133d0b5374bd02e2ebf25a0a5ef6843d..2b657d4d63a8cc86950db8f50c805c3f96e017d1 100644
(file)
--- 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: