]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[UML]: uml-net: don't set IFF_ALLMULTI in set_multicast_list
authorPatrick McHardy <kaber@trash.net>
Wed, 26 Mar 2008 07:16:29 +0000 (00:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2008 07:16:29 +0000 (00:16 -0700)
IFF_ALLMULTI is an indication from the network stack to the driver
to disable multicast filters, drivers should never set it directly.

Since the UML networking device doesn't have any filtering capabilites,
it doesn't the set_multicast_list function at all, it is kept so userspace
can still issue SIOCADDMULTI/SIOCDELMULTI ioctls however.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/um/drivers/net_kern.c

index 1e8f41a9951142e536e22312d25e106b1cf1297e..1d43bdfc20c43d37c6b187195556054fd0ae2eeb 100644 (file)
@@ -256,11 +256,7 @@ static struct net_device_stats *uml_net_get_stats(struct net_device *dev)
 
 static void uml_net_set_multicast_list(struct net_device *dev)
 {
-       if (dev->flags & IFF_PROMISC)
-               return;
-       else if (dev->mc_count)
-               dev->flags |= IFF_ALLMULTI;
-       else dev->flags &= ~IFF_ALLMULTI;
+       return;
 }
 
 static void uml_net_tx_timeout(struct net_device *dev)