]> git.baikalelectronics.ru Git - kernel.git/commit
ehea: Fix multicast registration on semi-promiscuous mode
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Mon, 23 May 2011 03:36:35 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 20:33:31 +0000 (16:33 -0400)
commitfd3e61eb44c43f15a7addc7386e1cce7a011007a
tree7bfbb023769fdd777d7ec61a4b59c11560f31b00
parent84703e69861cbc3571d1f516ebfbd2f7d19ab9d4
ehea: Fix multicast registration on semi-promiscuous mode

Ehea will not register multicast groups in phyp if the physical
interface is in promiscuous mode. But it should register if the
logical port is in promiscuous mode, but the physical port is not.

Ehea physical promiscuous mode is defined by ehea_port->promisc,
while logical port is defined by IFF_PROMISC.

So currently, if the user set the interface in promiscuous mode,
IGMP will not be registred in PHYP, and PHYP will never pass
the multicast packet to the logical port, which is bad

So, this patch just fixes it, assuring that we register in phyp
if the physical port is not on promiscuous mode.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ehea/ehea_main.c