Commit 8b64afac authored by Peter Christensen's avatar Peter Christensen Committed by Greg Kroah-Hartman

macvlan: Don't propagate IFF_ALLMULTI changes on down interfaces.

[ Upstream commit bbeb0ead ]

Clearing the IFF_ALLMULTI flag on a down interface could cause an allmulti
overflow on the underlying interface.

Attempting the set IFF_ALLMULTI on the underlying interface would cause an
error and the log message:

"allmulti touches root, set allmulti failed."
Signed-off-by: default avatarPeter Christensen <pch@ordbogen.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b237dc48
...@@ -420,8 +420,10 @@ static void macvlan_change_rx_flags(struct net_device *dev, int change) ...@@ -420,8 +420,10 @@ static void macvlan_change_rx_flags(struct net_device *dev, int change)
struct macvlan_dev *vlan = netdev_priv(dev); struct macvlan_dev *vlan = netdev_priv(dev);
struct net_device *lowerdev = vlan->lowerdev; struct net_device *lowerdev = vlan->lowerdev;
if (change & IFF_ALLMULTI) if (dev->flags & IFF_UP) {
dev_set_allmulti(lowerdev, dev->flags & IFF_ALLMULTI ? 1 : -1); if (change & IFF_ALLMULTI)
dev_set_allmulti(lowerdev, dev->flags & IFF_ALLMULTI ? 1 : -1);
}
} }
static void macvlan_set_mac_lists(struct net_device *dev) static void macvlan_set_mac_lists(struct net_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment