On Tue, May 31, 2016 at 02:07:13PM -0700, David Miller wrote: > > 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.
Good point. Here's v2. This patch tries to improve macvlan multicast performance by maintaining a filter hash at the macvlan_port level so that we can quickly determine whether a given packet is needed or not. It is preceded by a patch that fixes a potential use-after-free bug that I discovered while looking over this. v2 fixed a bug where promiscuous/allmulti settings weren't handled correctly. Thanks, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt