hyperv: Add support for setting MAC from within guests
commit1ce09e899d2864b4c8ed8f777c396bcb953aa3c9
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 10 Jul 2012 07:19:22 +0000 (10 07:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:54:24 +0000 (16 22:54 -0700)
tree953c896879802b24e3596a51b403ec03d3677ccd
parent5e96855fc505082389813afcf796d4c46301d4fe
hyperv: Add support for setting MAC from within guests

This adds support for setting synthetic NIC MAC address from within Linux
guests. Before using this feature, the option "spoofing of MAC address"
should be enabled at the Hyper-V manager / Settings of the synthetic
NIC.

Thanks to Kin Cho <kcho@infoblox.com> for the initial implementation and
tests. And, thanks to Long Li <longli@microsoft.com> for the debugging
works.

Reported-and-tested-by: Kin Cho <kcho@infoblox.com>
Reported-by: Long Li <longli@microsoft.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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c