@@ -467,7 +467,12 @@ static int dsa_slave_port_attr_set(struct net_device *dev,
case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS:
ret = dsa_port_bridge_flags(dp, attr->u.brport_flags, trans);
break;
+ case SWITCHDEV_ATTR_ID_PORT_MROUTER:
+ /* A multicast router is connected to this external port */
+ ret = dsa_port_mrouter(dp, attr->u.mrouter, trans);
+ break;
case SWITCHDEV_ATTR_ID_BRIDGE_MROUTER:
+ /* The local bridge is a multicast router */
ret = dsa_port_mrouter(dp->cpu_dp, attr->u.mrouter, trans);
break;
default: