felix.c (d418f67e987fe8c8b2d34caf98ac0fb9f08c5dd5) felix.c (d3eed0e57d5d1bcbf1bd60f83a4adfe7d7b8dd9c)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2019-2021 NXP
3 *
4 * This is an umbrella module for all network switches that are
5 * register-compatible with Ocelot and that perform I/O to their host CPU
6 * through an NPI (Node Processor Interface) Ethernet port.
7 */
8#include <uapi/linux/if_bridge.h>

--- 692 unchanged lines hidden (view full) ---

701 struct ocelot *ocelot = ds->priv;
702
703 ocelot_port_bridge_flags(ocelot, port, val);
704
705 return 0;
706}
707
708static int felix_bridge_join(struct dsa_switch *ds, int port,
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2019-2021 NXP
3 *
4 * This is an umbrella module for all network switches that are
5 * register-compatible with Ocelot and that perform I/O to their host CPU
6 * through an NPI (Node Processor Interface) Ethernet port.
7 */
8#include <uapi/linux/if_bridge.h>

--- 692 unchanged lines hidden (view full) ---

701 struct ocelot *ocelot = ds->priv;
702
703 ocelot_port_bridge_flags(ocelot, port, val);
704
705 return 0;
706}
707
708static int felix_bridge_join(struct dsa_switch *ds, int port,
709 struct net_device *br)
709 struct dsa_bridge bridge)
710{
711 struct ocelot *ocelot = ds->priv;
712
710{
711 struct ocelot *ocelot = ds->priv;
712
713 ocelot_port_bridge_join(ocelot, port, br);
713 ocelot_port_bridge_join(ocelot, port, bridge.dev);
714
715 return 0;
716}
717
718static void felix_bridge_leave(struct dsa_switch *ds, int port,
714
715 return 0;
716}
717
718static void felix_bridge_leave(struct dsa_switch *ds, int port,
719 struct net_device *br)
719 struct dsa_bridge bridge)
720{
721 struct ocelot *ocelot = ds->priv;
722
720{
721 struct ocelot *ocelot = ds->priv;
722
723 ocelot_port_bridge_leave(ocelot, port, br);
723 ocelot_port_bridge_leave(ocelot, port, bridge.dev);
724}
725
726static int felix_lag_join(struct dsa_switch *ds, int port,
727 struct net_device *bond,
728 struct netdev_lag_upper_info *info)
729{
730 struct ocelot *ocelot = ds->priv;
731

--- 994 unchanged lines hidden ---
724}
725
726static int felix_lag_join(struct dsa_switch *ds, int port,
727 struct net_device *bond,
728 struct netdev_lag_upper_info *info)
729{
730 struct ocelot *ocelot = ds->priv;
731

--- 994 unchanged lines hidden ---