net: dsa: mv88e6xxx: Enable IGMP snooping on user ports only
authorSteffen Bätz <steffen@innosonix.de>
Wed, 29 Mar 2023 15:01:40 +0000 (12:01 -0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Mar 2023 18:31:24 +0000 (11:31 -0700)
commit7bcad0f0e6fbc1d613e49e0ee35c8e5f2e685bb0
tree2682e7f816a97764be5774b9cc9d64090f9f0e57
parent2eca98e5b24d01c02b46c67be05a5f98cc9789b1
net: dsa: mv88e6xxx: Enable IGMP snooping on user ports only

Do not set the MV88E6XXX_PORT_CTL0_IGMP_MLD_SNOOP bit on CPU or DSA ports.

This allows the host CPU port to be a regular IGMP listener by sending out
IGMP Membership Reports, which would otherwise not be forwarded by the
mv88exxx chip, but directly looped back to the CPU port itself.

Fixes: 54d792f257c6 ("net: dsa: Centralise global and port setup code into mv88e6xxx.")
Signed-off-by: Steffen Bätz <steffen@innosonix.de>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230329150140.701559-1-festevam@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c