[v2 PATCH 2/2] macvlan: Avoid unnecessary multicast cloning

2016-05-31 Thread Herbert Xu
Currently we always queue a multicast packet for further processing, even if none of the macvlan devices are subscribed to the address. This patch optimises this by adding a global multicast filter for a macvlan_port. Note that this patch doesn't handle the broadcast addresses of the individual m

Re: [PATCH 2/2] macvlan: Avoid unnecessary multicast cloning

2016-05-31 Thread David Miller
From: Herbert Xu Date: Mon, 30 May 2016 16:28:28 +0800 > @@ -725,6 +730,8 @@ static void macvlan_set_mac_lists(struct net_device *dev) > { > struct macvlan_dev *vlan = netdev_priv(dev); > > + dev_uc_sync(vlan->lowerdev, dev); > + dev_mc_sync(vlan->lowerdev, dev); > if (dev-

[PATCH 2/2] macvlan: Avoid unnecessary multicast cloning

2016-05-30 Thread Herbert Xu
Currently we always queue a multicast packet for further processing, even if none of the macvlan devices are subscribed to the address. This patch optimises this by adding a global multicast filter for a macvlan_port. Note that this patch doesn't handle the broadcast addresses of the individual m