Home
last modified time | relevance | path

Searched refs:ageing_time (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.15/net/dsa/
Dswitch.c18 unsigned int ageing_time) in dsa_switch_fastest_ageing_time() argument
25 if (dp->ageing_time && dp->ageing_time < ageing_time) in dsa_switch_fastest_ageing_time()
26 ageing_time = dp->ageing_time; in dsa_switch_fastest_ageing_time()
29 return ageing_time; in dsa_switch_fastest_ageing_time()
35 unsigned int ageing_time = info->ageing_time; in dsa_switch_ageing_time() local
37 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) in dsa_switch_ageing_time()
40 if (ds->ageing_time_max && ageing_time > ds->ageing_time_max) in dsa_switch_ageing_time()
44 ageing_time = dsa_switch_fastest_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
47 return ds->ops->set_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
Dport.c671 unsigned int ageing_time = jiffies_to_msecs(ageing_jiffies); in dsa_port_ageing_time() local
675 info.ageing_time = ageing_time; in dsa_port_ageing_time()
681 dp->ageing_time = ageing_time; in dsa_port_ageing_time()
Ddsa_priv.h50 unsigned int ageing_time; member
/Linux-v5.15/tools/testing/selftests/net/forwarding/
Dbridge_vlan_aware.sh32 ip link add dev br0 type bridge vlan_filtering 1 ageing_time 1000 \
115 local ageing_time
127 ageing_time=$(bridge_ageing_time_get br0)
128 sleep $((ageing_time + 10))
Dlib.sh805 local ageing_time
808 ageing_time=$(ip -j -d link show dev $bridge \
810 echo $((ageing_time / 100))
1139 local ageing_time
1181 ageing_time=$(bridge_ageing_time_get $bridge)
1182 sleep $((ageing_time + 10))
Dbridge_vlan_unaware.sh31 ip link add dev br0 type bridge ageing_time 1000 mcast_snooping 0
Dvxlan_bridge_1d.sh684 ip link set dev br1 type bridge ageing_time 1000
781 ip link set dev br1 type bridge ageing_time 30000
Dvxlan_bridge_1q.sh820 ip link set dev br1 type bridge ageing_time 1000
844 ip link set dev br1 type bridge ageing_time 30000
/Linux-v5.15/net/bridge/
Dbr_stp.c604 .u.ageing_time = jiffies_to_clock_t(t), in __set_ageing_time()
623 int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time) in br_set_ageing_time() argument
625 unsigned long t = clock_t_to_jiffies(ageing_time); in br_set_ageing_time()
634 br->ageing_time = t; in br_set_ageing_time()
651 return jiffies_to_clock_t(br->ageing_time); in br_get_ageing_time()
678 br->ageing_time = t; in __br_set_topology_change()
Dbr_ioctl.c161 b.ageing_time = jiffies_to_clock_t(br->ageing_time); in br_dev_siocdevprivate()
Dbr_stp_if.c43 err = __set_ageing_time(p->dev, p->br->ageing_time); in br_init_port()
Dbr_sysfs_br.c133 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->ageing_time)); in ageing_time_show()
148 static DEVICE_ATTR_RW(ageing_time);
Dbr_device.c526 br->bridge_ageing_time = br->ageing_time = BR_DEFAULT_AGEING_TIME; in br_dev_setup()
/Linux-v5.15/drivers/net/ethernet/microchip/sparx5/
Dsparx5_switchdev.c63 u32 ageing_time = jiffies_to_msecs(ageing_jiffies); in sparx5_port_attr_ageing_set() local
65 sparx5_set_ageing(port->sparx5, ageing_time); in sparx5_port_attr_ageing_set()
82 sparx5_port_attr_ageing_set(port, attr->u.ageing_time); in sparx5_port_attr_set()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.h59 int mlx5_esw_bridge_ageing_time_set(u16 vport_num, u16 esw_owner_vhca_id, unsigned long ageing_time,
Dbridge.c64 unsigned long ageing_time; member
624 bridge->ageing_time = clock_t_to_jiffies(BR_DEFAULT_AGEING_TIME); in mlx5_esw_bridge_create()
1054 int mlx5_esw_bridge_ageing_time_set(u16 vport_num, u16 esw_owner_vhca_id, unsigned long ageing_time, in mlx5_esw_bridge_ageing_time_set() argument
1063 port->bridge->ageing_time = clock_t_to_jiffies(ageing_time); in mlx5_esw_bridge_ageing_time_set()
1364 time_is_before_jiffies(entry->lastuse + bridge->ageing_time)) { in mlx5_esw_bridge_update()
/Linux-v5.15/drivers/net/ethernet/rocker/
Drocker_ofdpa.c189 unsigned long ageing_time; member
202 unsigned long ageing_time; member
1988 unsigned long next_timer = jiffies + ofdpa->ageing_time; in ofdpa_fdb_cleanup()
2001 expires = entry->touched + ofdpa_port->ageing_time; in ofdpa_fdb_cleanup()
2370 ofdpa->ageing_time = BR_DEFAULT_AGEING_TIME; in ofdpa_init()
2427 ofdpa_port->ageing_time = BR_DEFAULT_AGEING_TIME; in ofdpa_port_pre_init()
2519 u32 ageing_time) in ofdpa_port_attr_bridge_ageing_time_set() argument
2524 ofdpa_port->ageing_time = clock_t_to_jiffies(ageing_time); in ofdpa_port_attr_bridge_ageing_time_set()
2525 if (ofdpa_port->ageing_time < ofdpa->ageing_time) in ofdpa_port_attr_bridge_ageing_time_set()
2526 ofdpa->ageing_time = ofdpa_port->ageing_time; in ofdpa_port_attr_bridge_ageing_time_set()
Drocker.h112 u32 ageing_time);
/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot_net.c878 u32 ageing_time = jiffies_to_msecs(ageing_jiffies); in ocelot_port_attr_ageing_set() local
880 ocelot_set_ageing_time(ocelot, ageing_time); in ocelot_port_attr_ageing_set()
914 ocelot_port_attr_ageing_set(ocelot, port, attr->u.ageing_time); in ocelot_port_attr_set()
1126 clock_t ageing_time; in ocelot_switchdev_sync() local
1134 ageing_time = br_get_ageing_time(bridge_dev); in ocelot_switchdev_sync()
1135 ocelot_port_attr_ageing_set(ocelot, port, ageing_time); in ocelot_switchdev_sync()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c38 u32 ageing_time; member
730 static int mlxsw_sp_ageing_set(struct mlxsw_sp *mlxsw_sp, u32 ageing_time) in mlxsw_sp_ageing_set() argument
735 mlxsw_reg_sfdat_pack(sfdat_pl, ageing_time); in mlxsw_sp_ageing_set()
739 mlxsw_sp->bridge->ageing_time = ageing_time; in mlxsw_sp_ageing_set()
748 u32 ageing_time = jiffies_to_msecs(ageing_jiffies) / 1000; in mlxsw_sp_port_attr_br_ageing_set() local
750 if (ageing_time < MLXSW_SP_MIN_AGEING_TIME || in mlxsw_sp_port_attr_br_ageing_set()
751 ageing_time > MLXSW_SP_MAX_AGEING_TIME) in mlxsw_sp_port_attr_br_ageing_set()
754 return mlxsw_sp_ageing_set(mlxsw_sp, ageing_time); in mlxsw_sp_port_attr_br_ageing_set()
939 attr->u.ageing_time); in mlxsw_sp_port_attr_set()
/Linux-v5.15/Documentation/networking/device_drivers/ethernet/ti/
Dcpsw_switchdev.rst109 ip link set dev br0 type bridge ageing_time 1000
212 ip link set dev br0 type bridge ageing_time 1000
Dam65_nuss_cpsw_switchdev.rst59 ip link set dev br0 type bridge ageing_time 1000
/Linux-v5.15/include/net/
Dswitchdev.h48 clock_t ageing_time; /* BRIDGE_AGEING_TIME */ member
/Linux-v5.15/include/uapi/linux/
Dif_bridge.h69 __u32 ageing_time; member
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbridge.c266 attr->u.ageing_time, br_offloads); in mlx5_esw_bridge_port_obj_attr_set()

12