Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f70c1766 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[UML]: uml-net: don't set IFF_ALLMULTI in set_multicast_list



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: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ed21b32
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;
}

static void uml_net_tx_timeout(struct net_device *dev)