[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160531.140713.2187659962450926738.davem@davemloft.net>
Date: Tue, 31 May 2016 14:07:13 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: buytenh@...tstofly.org, kaber@...sh.net, netdev@...r.kernel.org,
jpirko@...hat.com
Subject: Re: [PATCH 2/2] macvlan: Avoid unnecessary multicast cloning
From: Herbert Xu <herbert@...dor.apana.org.au>
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->flags & (IFF_PROMISC | IFF_ALLMULTI)) {
> bitmap_fill(vlan->mc_filter, MACVLAN_MC_FILTER_SZ);
> } else {
I think you need to set the vlan->port->mc_filter to all 1's in the
PROMISC/ALLMUTI branch here.
Otherwise packets won't properly pass your new hash test.
Powered by blists - more mailing lists