net: dsa: lan9303: Set up trapping of IGMP to CPU port
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Fri, 10 Nov 2017 11:54:34 +0000 (12:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 12:50:14 +0000 (21:50 +0900)
commit2aee43078afc24fe8073829159292664c1eed424
tree59a21bcb6486345fe7cb86b6a820da239fa33136
parent940c9c458866725e0ade96d5c1c7dbe5fcf1cf85
net: dsa: lan9303: Set up trapping of IGMP to CPU port

IGMP packets should be trapped to the CPU port. The SW bridge knows
whether to forward to other ports.

With "IGMP snooping for local traffic" merged, IGMP trapping is also
required for stable IGMPv2 operation.

LAN9303 does not trap IGMP packets by default.

Enable IGMP trapping in lan9303_setup.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c