Home
last modified time | relevance | path

Searched refs:BR_FLOOD (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_switchdev.c110 if (flags.mask & BR_FLOOD) in lan966x_port_bridge_flags()
112 !!(flags.val & BR_FLOOD)); in lan966x_port_bridge_flags()
126 if (flags.mask & ~(BR_MCAST_FLOOD | BR_FLOOD | BR_BCAST_FLOOD | in lan966x_port_pre_bridge_flags()
274 flags.mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; in lan966x_port_bridge_join()
287 flags.mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; in lan966x_port_bridge_leave()
/linux-6.1.9/include/linux/
Dif_bridge.h45 #define BR_FLOOD BIT(6) macro
46 #define BR_AUTO_MASK (BR_FLOOD | BR_LEARNING)
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_switchdev.c26 if (flags.mask & ~(BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD)) in sparx5_port_attr_pre_bridge_flags()
49 if (flags.mask & BR_FLOOD) in sparx5_port_attr_bridge_flags()
50 sparx5_pgid_update_mask(port, PGID_UC_FLOOD, !!(flags.val & BR_FLOOD)); in sparx5_port_attr_bridge_flags()
/linux-6.1.9/net/bridge/
Dbr_forward.c211 if (!(p->flags & BR_FLOOD)) in br_flood()
Dbr_sysfs_if.c236 BRPORT_ATTR_FLAG(unicast_flood, BR_FLOOD);
Dbr_if.c440 p->flags = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; in new_nbp()
Dbr_switchdev.c74 #define BR_PORT_FLAGS_HW_OFFLOAD (BR_LEARNING | BR_FLOOD | \
Dbr_netlink.c248 !!(p->flags & BR_FLOOD)) || in br_port_fill_attrs()
935 br_set_port_flag(p, tb, IFLA_BRPORT_UNICAST_FLOOD, BR_FLOOD); in br_setport()
/linux-6.1.9/drivers/net/dsa/sja1105/
Dsja1105_main.c2910 if (flags.mask & BR_FLOOD) { in sja1105_port_ucast_bcast_flood()
2911 if (flags.val & BR_FLOOD) in sja1105_port_ucast_bcast_flood()
2966 if (flags.mask & ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | in sja1105_port_pre_bridge_flags()
2970 if (flags.mask & (BR_FLOOD | BR_MCAST_FLOOD) && in sja1105_port_pre_bridge_flags()
2973 bool unicast = !!(flags.val & BR_FLOOD); in sja1105_port_pre_bridge_flags()
3000 if (flags.mask & (BR_FLOOD | BR_BCAST_FLOOD)) { in sja1105_port_bridge_flags()
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c1662 if (flags.mask & BR_FLOOD) in dpaa2_switch_port_flood()
1663 port_priv->ucast_flood = !!(flags.val & BR_FLOOD); in dpaa2_switch_port_flood()
1672 if (flags.mask & ~(BR_LEARNING | BR_BCAST_FLOOD | BR_FLOOD | in dpaa2_switch_port_pre_bridge_flags()
1676 if (flags.mask & (BR_FLOOD | BR_MCAST_FLOOD)) { in dpaa2_switch_port_pre_bridge_flags()
1678 bool unicast = !!(flags.val & BR_FLOOD); in dpaa2_switch_port_pre_bridge_flags()
1706 if (flags.mask & (BR_BCAST_FLOOD | BR_FLOOD | BR_MCAST_FLOOD)) { in dpaa2_switch_port_bridge_flags()
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c154 err = prestera_port_uc_flood_set(port, br_port->flags & BR_FLOOD); in prestera_br_port_flags_set()
569 br_port->flags = BR_LEARNING | BR_FLOOD | BR_LEARNING_SYNC | in prestera_bridge_port_create()
1172 ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_PORT_LOCKED)) in prestera_port_obj_attr_set()
/linux-6.1.9/drivers/net/dsa/hirschmann/
Dhellcreek.c663 if (flags.mask & ~(BR_FLOOD | BR_MCAST_FLOOD)) in hellcreek_pre_bridge_flags()
675 if (flags.mask & BR_FLOOD) in hellcreek_bridge_flags()
677 !!(flags.val & BR_FLOOD)); in hellcreek_bridge_flags()
/linux-6.1.9/net/dsa/
Dport.c322 const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | in dsa_port_inherit_brport_flags()
345 const unsigned long val = BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; in dsa_port_clear_brport_flags()
346 const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | in dsa_port_clear_brport_flags()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbridge.c288 if (attr->u.brport_flags.mask & ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD)) { in mlx5_esw_bridge_port_obj_attr_set()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c409 bridge_port->flags = BR_LEARNING | BR_FLOOD | BR_LEARNING_SYNC | in mlxsw_sp_bridge_port_create()
787 if (flags.mask & ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD)) in mlxsw_sp_port_attr_br_pre_flags_set()
805 if (flags.mask & BR_FLOOD) { in mlxsw_sp_port_attr_br_flags_set()
809 flags.val & BR_FLOOD); in mlxsw_sp_port_attr_br_flags_set()
1253 bridge_port->flags & BR_FLOOD); in mlxsw_sp_port_vlan_fid_join()
/linux-6.1.9/drivers/net/dsa/b53/
Db53_common.c1991 if (flags.mask & ~(BR_FLOOD | BR_MCAST_FLOOD | BR_LEARNING)) in b53_br_flags_pre()
2002 if (flags.mask & BR_FLOOD) in b53_br_flags()
2004 !!(flags.val & BR_FLOOD)); in b53_br_flags()
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot.c2382 if (flags.mask & ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | in ocelot_port_pre_bridge_flags()
2397 if (flags.mask & BR_FLOOD) in ocelot_port_bridge_flags()
2399 !!(flags.val & BR_FLOOD)); in ocelot_port_bridge_flags()
Docelot_net.c1248 flags.mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; in ocelot_inherit_brport_flags()
1261 flags.mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; in ocelot_clear_brport_flags()
/linux-6.1.9/drivers/net/dsa/
Dmt7530.c1167 if (flags.mask & ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | in mt7530_port_pre_bridge_flags()
1185 if (flags.mask & BR_FLOOD) in mt7530_port_bridge_flags()
1187 flags.val & BR_FLOOD ? UNU_FFP(BIT(port)) : 0); in mt7530_port_bridge_flags()
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Dchip.c6524 if (flags.mask & ~(BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | in mv88e6xxx_port_pre_bridge_flags()
6530 if ((flags.mask & BR_FLOOD) && !ops->port_set_ucast_flood) in mv88e6xxx_port_pre_bridge_flags()
6557 if (flags.mask & BR_FLOOD) { in mv88e6xxx_port_bridge_flags()
6558 bool unicast = !!(flags.val & BR_FLOOD); in mv88e6xxx_port_bridge_flags()
/linux-6.1.9/net/core/
Drtnetlink.c4808 IFLA_BRPORT_UNICAST_FLOOD, BR_FLOOD) || in ndo_dflt_bridge_getlink()