[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen/netback: add {set, validate}_mac_address ops



use the default implementation.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 drivers/xen/netback/interface.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/xen/netback/interface.c b/drivers/xen/netback/interface.c
index 2e8508a..6532fe0 100644
--- a/drivers/xen/netback/interface.c
+++ b/drivers/xen/netback/interface.c
@@ -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)
-- 
1.5.6.5


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.