Home
last modified time | relevance | path

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

12

/linux/net/dsa/
H A Dswitch.c24 unsigned int ageing_time) in dsa_switch_fastest_ageing_time() argument
29 if (dp->ageing_time && dp->ageing_time < ageing_time) in dsa_switch_fastest_ageing_time()
30 ageing_time = dp->ageing_time; in dsa_switch_fastest_ageing_time()
32 return ageing_time; in dsa_switch_fastest_ageing_time()
38 unsigned int ageing_time = info->ageing_time; in dsa_switch_ageing_time() local
40 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) in dsa_switch_ageing_time()
43 if (ds->ageing_time_max && ageing_time > ds->ageing_time_max) in dsa_switch_ageing_time()
47 ageing_time = dsa_switch_fastest_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
50 return ds->ops->set_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
H A Dswitch.h42 unsigned int ageing_time; member
/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_vlan_aware.sh33 ageing_time $LOW_AGEING_TIME \
116 local ageing_time
128 ageing_time=$(bridge_ageing_time_get br0)
129 sleep $((ageing_time + 10))
H A Dlib.sh65 # Minimum ageing_time (in centiseconds) supported by hardware
982 local ageing_time
985 ageing_time=$(ip -j -d link show dev $bridge \
986 | jq '.[]["linkinfo"]["info_data"]["ageing_time"]')
987 echo $((ageing_time / 100))
1348 local ageing_time
1391 ageing_time=$(bridge_ageing_time_get $bridge)
1392 sleep $((ageing_time + 10))
H A Dvxlan_bridge_1d.sh692 ip link set dev br1 type bridge ageing_time 3000
791 ip link set dev br1 type bridge ageing_time 30000
H A Dvxlan_bridge_1q.sh815 ip link set dev br1 type bridge ageing_time 3000
839 ip link set dev br1 type bridge ageing_time 30000
/linux/net/bridge/
H A Dbr_stp.c610 .u.ageing_time = jiffies_to_clock_t(t), in __set_ageing_time()
629 int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time) in br_set_ageing_time() argument
631 unsigned long t = clock_t_to_jiffies(ageing_time); in br_set_ageing_time()
640 br->ageing_time = t; in br_set_ageing_time()
657 return jiffies_to_clock_t(br->ageing_time); in br_get_ageing_time()
684 br->ageing_time = t; in __br_set_topology_change()
H A Dbr_ioctl.c182 b.ageing_time = jiffies_to_clock_t(br->ageing_time); in br_dev_siocdevprivate()
H A Dbr_stp_if.c43 err = __set_ageing_time(p->dev, p->br->ageing_time); in br_init_port()
H A Dbr_sysfs_br.c132 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->ageing_time)); in ageing_time_show()
147 static DEVICE_ATTR_RW(ageing_time);
H A Dbr_device.c528 br->bridge_ageing_time = br->ageing_time = BR_DEFAULT_AGEING_TIME; in br_dev_setup()
H A Dbr_netlink.c1646 u32 ageing_time = jiffies_to_clock_t(br->ageing_time); in br_fill_info() local
1671 nla_put_u32(skb, IFLA_BR_AGEING_TIME, ageing_time) || in br_fill_info()
H A Dbr_private.h528 unsigned long ageing_time; member
2027 int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time);
/linux/drivers/net/ethernet/rocker/
H A Drocker_ofdpa.c189 unsigned long ageing_time; member
202 unsigned long ageing_time; member
1989 unsigned long next_timer = jiffies + ofdpa->ageing_time; in ofdpa_fdb_cleanup()
2002 expires = entry->touched + ofdpa_port->ageing_time; in ofdpa_fdb_cleanup()
2371 ofdpa->ageing_time = BR_DEFAULT_AGEING_TIME; in ofdpa_init()
2428 ofdpa_port->ageing_time = BR_DEFAULT_AGEING_TIME; in ofdpa_port_pre_init()
2520 u32 ageing_time) in ofdpa_port_attr_bridge_ageing_time_set() argument
2525 ofdpa_port->ageing_time = clock_t_to_jiffies(ageing_time); in ofdpa_port_attr_bridge_ageing_time_set()
2526 if (ofdpa_port->ageing_time < ofdpa->ageing_time) in ofdpa_port_attr_bridge_ageing_time_set()
2527 ofdpa->ageing_time = ofdpa_port->ageing_time; in ofdpa_port_attr_bridge_ageing_time_set()
H A Drocker.h112 u32 ageing_time);
H A Drocker_main.c1612 u32 ageing_time) in rocker_world_port_attr_bridge_ageing_time_set() argument
1619 return wops->port_attr_bridge_ageing_time_set(rocker_port, ageing_time); in rocker_world_port_attr_bridge_ageing_time_set()
2057 attr->u.ageing_time); in rocker_port_attr_set()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch_br.h66 unsigned long ageing_time; member
H A Dice_eswitch_br.c849 br_port->bridge->ageing_time = in ice_eswitch_br_port_obj_attr_set()
850 clock_t_to_jiffies(attr->u.ageing_time); in ice_eswitch_br_port_obj_attr_set()
1029 bridge->ageing_time = clock_t_to_jiffies(BR_DEFAULT_AGEING_TIME); in ice_eswitch_br_init()
1268 bridge->ageing_time)) in ice_eswitch_br_update()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_switchdev.c181 u32 ageing_time = jiffies_to_msecs(ageing_jiffies) / 1000; in lan966x_port_ageing_set() local
183 lan966x_mac_set_ageing(port->lan966x, ageing_time); in lan966x_port_ageing_set()
229 lan966x_port_ageing_set(port, attr->u.ageing_time); in lan966x_port_attr_set()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge.h75 int mlx5_esw_bridge_ageing_time_set(u16 vport_num, u16 esw_owner_vhca_id, unsigned long ageing_time,
H A Dbridge_priv.h218 unsigned long ageing_time; member
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_switchdev.c99 u32 ageing_time = jiffies_to_msecs(ageing_jiffies); in sparx5_port_attr_ageing_set() local
101 sparx5_set_ageing(port->sparx5, ageing_time); in sparx5_port_attr_ageing_set()
152 sparx5_port_attr_ageing_set(port, attr->u.ageing_time); in sparx5_port_attr_set()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c38 u32 ageing_time; member
946 static int mlxsw_sp_ageing_set(struct mlxsw_sp *mlxsw_sp, u32 ageing_time) in mlxsw_sp_ageing_set() argument
951 mlxsw_reg_sfdat_pack(sfdat_pl, ageing_time); in mlxsw_sp_ageing_set()
955 mlxsw_sp->bridge->ageing_time = ageing_time; in mlxsw_sp_ageing_set()
964 u32 ageing_time = jiffies_to_msecs(ageing_jiffies) / 1000; in mlxsw_sp_port_attr_br_ageing_set() local
966 if (ageing_time < MLXSW_SP_MIN_AGEING_TIME || in mlxsw_sp_port_attr_br_ageing_set()
967 ageing_time > MLXSW_SP_MAX_AGEING_TIME) in mlxsw_sp_port_attr_br_ageing_set()
970 return mlxsw_sp_ageing_set(mlxsw_sp, ageing_time); in mlxsw_sp_port_attr_br_ageing_set()
1307 attr->u.ageing_time); in mlxsw_sp_port_attr_set()
/linux/include/net/
H A Dswitchdev.h62 clock_t ageing_time; /* BRIDGE_AGEING_TIME */ member
H A Ddsa.h299 unsigned int ageing_time; member

12