Skip to contentSkip to conversation

xen/netback: add {set, validate}_mac_address ops

PATCH New Ian Campbell 1 participant 1 message Dec 15, 2010 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/netback: add {set, validate}_mac_address ops

use the default implementation.

---
 drivers/xen/netback/interface.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
drivers/xen/netback/interface.c +7 -5
index 2e8508a..6532fe0 100644
@@ -252,11 +252,13 @@ static struct ethtool_ops network_ethtool_ops =
 
 static struct net_device_ops netback_ops =
 {
-	.ndo_start_xmit	= netif_be_start_xmit,
-	.ndo_get_stats	= netif_be_get_stats,
-	.ndo_open	= net_open,
-	.ndo_stop	= net_close,
-	.ndo_change_mtu	= netbk_change_mtu,
+	.ndo_start_xmit		= netif_be_start_xmit,
+	.ndo_get_stats		= netif_be_get_stats,
+	.ndo_open		= net_open,
+	.ndo_stop		= net_close,
+	.ndo_change_mtu		= netbk_change_mtu,
+	.ndo_set_mac_address	= eth_mac_addr,
+	.ndo_validate_addr	= eth_validate_addr,
 };
 
 struct xen_netif *netif_alloc(struct device *parent, domid_t domid, unsigned int handle)
Signature · 1 line
1.5.6.5