ia64/xen-unstable
changeset 9918:8f0f24dae963
Virtual net drivers advertise multicast capabilities.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Tue May 02 15:46:15 2006 +0100 (2006-05-02) |
parents | 42c73f3d7ac1 |
children | 72d1cf383c67 |
files | linux-2.6-xen-sparse/drivers/xen/netback/loopback.c linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Tue May 02 15:36:07 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Tue May 02 15:46:15 2006 +0100 1.3 @@ -127,6 +127,14 @@ static struct ethtool_ops network_ethtoo 1.4 .set_tx_csum = ethtool_op_set_tx_csum, 1.5 }; 1.6 1.7 +/* 1.8 + * Nothing to do here. Virtual interface is point-to-point and the 1.9 + * physical interface is probably promiscuous anyway. 1.10 + */ 1.11 +static void loopback_set_multicast_list(struct net_device *dev) 1.12 +{ 1.13 +} 1.14 + 1.15 static void loopback_construct(struct net_device *dev, struct net_device *lo) 1.16 { 1.17 struct net_private *np = netdev_priv(dev); 1.18 @@ -137,6 +145,7 @@ static void loopback_construct(struct ne 1.19 dev->stop = loopback_close; 1.20 dev->hard_start_xmit = loopback_start_xmit; 1.21 dev->get_stats = loopback_get_stats; 1.22 + dev->set_multicast_list = loopback_set_multicast_list; 1.23 1.24 dev->tx_queue_len = 0; 1.25
2.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c Tue May 02 15:36:07 2006 +0100 2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c Tue May 02 15:46:15 2006 +0100 2.3 @@ -1094,6 +1094,14 @@ static struct ethtool_ops network_ethtoo 2.4 .set_tx_csum = ethtool_op_set_tx_csum, 2.5 }; 2.6 2.7 +/* 2.8 + * Nothing to do here. Virtual interface is point-to-point and the 2.9 + * physical interface is probably promiscuous anyway. 2.10 + */ 2.11 +static void network_set_multicast_list(struct net_device *dev) 2.12 +{ 2.13 +} 2.14 + 2.15 /** Create a network device. 2.16 * @param handle device handle 2.17 * @param val return parameter for created device 2.18 @@ -1163,6 +1171,7 @@ static int create_netdev(int handle, str 2.19 netdev->stop = network_close; 2.20 netdev->get_stats = network_get_stats; 2.21 netdev->poll = netif_poll; 2.22 + netdev->set_multicast_list = network_set_multicast_list; 2.23 netdev->uninit = netif_uninit; 2.24 netdev->weight = 64; 2.25 netdev->features = NETIF_F_IP_CSUM;