aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2012-07-10 03:19:22 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-17 01:54:24 -0400
commit1ce09e899d2864b4c8ed8f777c396bcb953aa3c9 (patch)
tree953c896879802b24e3596a51b403ec03d3677ccd /drivers/net/hyperv/hyperv_net.h
parent5e96855fc505082389813afcf796d4c46301d4fe (diff)
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>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 2857ab078aac..95ceb3593043 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -131,6 +131,7 @@ int rndis_filter_send(struct hv_device *dev,
131 struct hv_netvsc_packet *pkt); 131 struct hv_netvsc_packet *pkt);
132 132
133int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter); 133int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter);
134int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac);
134 135
135 136
136#define NVSP_INVALID_PROTOCOL_VERSION ((u32)0xFFFFFFFF) 137#define NVSP_INVALID_PROTOCOL_VERSION ((u32)0xFFFFFFFF)