WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xen/netback: add {set, validate}_mac_address ops
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Wed, 15 Dec 2010 10:36:00 +0000
Cc: jeremy@xxxxxxxx, Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Wed, 15 Dec 2010 02:36:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <#>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <#>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen/netback: add {set, validate}_mac_address ops, Ian Campbell <=