macvlan: Propagate promiscuity setting to lower devices.
authorVlad Yasevich <vyasevich@gmail.com>
Fri, 1 May 2015 21:36:37 +0000 (17:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 04:14:13 +0000 (00:14 -0400)
commitefdbd2b30caa65dd9e687853afa4d7ce8b39447e
treeb67a7c4723ad11c3f84a448ea8130aeda9c40b2d
parent2e70aedd3d522b018c01df172cd213a8a75e2d55
macvlan: Propagate promiscuity setting to lower devices.

When a macvlan device is placed in promiscuous mode, it currently
just sets it's multicast mask to permissive, but doesn't change
the state of the lower device.  As a result, not all multicast
traffic can be received on such device.  Additionally, none of
a vlan traffic can be received on such device as well.
This patch propagates the promiscuous mode setting to lower device
so that lower device may receive all packets that macvlan may
be interested in.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c