Home
last modified time | relevance | path

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

12

/Linux-v5.4/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
39 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) in dsa_switch_ageing_time()
41 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()
Dport.c221 unsigned int ageing_time = jiffies_to_msecs(ageing_jiffies); in dsa_port_ageing_time() local
223 .ageing_time = ageing_time, in dsa_port_ageing_time()
230 dp->ageing_time = ageing_time; in dsa_port_ageing_time()
Ddsa_priv.h30 unsigned int ageing_time; member
/Linux-v5.4/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.sh550 local ageing_time
553 ageing_time=$(ip -j -d link show dev $bridge \
555 echo $((ageing_time / 100))
884 local ageing_time
926 ageing_time=$(bridge_ageing_time_get $bridge)
927 sleep $((ageing_time + 10))
Dbridge_vlan_unaware.sh31 ip link add dev br0 type bridge ageing_time 1000 mcast_snooping 0
Dvxlan_bridge_1d.sh673 ip link set dev br1 type bridge ageing_time 1000
770 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.4/net/bridge/
Dbr_stp.c568 .u.ageing_time = jiffies_to_clock_t(t), in __set_ageing_time()
587 int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time) in br_set_ageing_time() argument
589 unsigned long t = clock_t_to_jiffies(ageing_time); in br_set_ageing_time()
598 br->ageing_time = t; in br_set_ageing_time()
629 br->ageing_time = t; in __br_set_topology_change()
Dbr_ioctl.c144 b.ageing_time = jiffies_to_clock_t(br->ageing_time); in old_dev_ioctl()
Dbr_stp_if.c43 err = __set_ageing_time(p->dev, p->br->ageing_time); in br_init_port()
Dbr_device.c444 br->bridge_ageing_time = br->ageing_time = BR_DEFAULT_AGEING_TIME; in br_dev_setup()
Dbr_sysfs_br.c103 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->ageing_time)); in ageing_time_show()
117 static DEVICE_ATTR_RW(ageing_time);
Dbr_private.h357 unsigned long ageing_time; member
1125 int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time);
Dbr_netlink.c1393 u32 ageing_time = jiffies_to_clock_t(br->ageing_time); in br_fill_info() local
1418 nla_put_u32(skb, IFLA_BR_AGEING_TIME, ageing_time) || in br_fill_info()
/Linux-v5.4/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()
2523 u32 ageing_time, in ofdpa_port_attr_bridge_ageing_time_set() argument
2530 ofdpa_port->ageing_time = clock_t_to_jiffies(ageing_time); in ofdpa_port_attr_bridge_ageing_time_set()
2531 if (ofdpa_port->ageing_time < ofdpa->ageing_time) in ofdpa_port_attr_bridge_ageing_time_set()
2532 ofdpa->ageing_time = ofdpa_port->ageing_time; in ofdpa_port_attr_bridge_ageing_time_set()
Drocker.h113 u32 ageing_time,
Drocker_main.c1620 u32 ageing_time, in rocker_world_port_attr_bridge_ageing_time_set() argument
1632 return wops->port_attr_bridge_ageing_time_set(rocker_port, ageing_time, in rocker_world_port_attr_bridge_ageing_time_set()
2090 attr->u.ageing_time, in rocker_port_attr_set()
/Linux-v5.4/include/uapi/linux/
Dif_bridge.h69 __u32 ageing_time; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c38 u32 ageing_time; member
636 static int mlxsw_sp_ageing_set(struct mlxsw_sp *mlxsw_sp, u32 ageing_time) in mlxsw_sp_ageing_set() argument
641 mlxsw_reg_sfdat_pack(sfdat_pl, ageing_time); in mlxsw_sp_ageing_set()
645 mlxsw_sp->bridge->ageing_time = ageing_time; in mlxsw_sp_ageing_set()
655 u32 ageing_time = jiffies_to_msecs(ageing_jiffies) / 1000; in mlxsw_sp_port_attr_br_ageing_set() local
658 if (ageing_time < MLXSW_SP_MIN_AGEING_TIME || in mlxsw_sp_port_attr_br_ageing_set()
659 ageing_time > MLXSW_SP_MAX_AGEING_TIME) in mlxsw_sp_port_attr_br_ageing_set()
665 return mlxsw_sp_ageing_set(mlxsw_sp, ageing_time); in mlxsw_sp_port_attr_br_ageing_set()
852 attr->u.ageing_time); in mlxsw_sp_port_attr_set()
/Linux-v5.4/include/net/
Dswitchdev.h55 clock_t ageing_time; /* BRIDGE_AGEING_TIME */ member
Ddsa.h189 unsigned int ageing_time; member
/Linux-v5.4/drivers/net/
Dtun.c234 unsigned long ageing_time; member
483 unsigned long delay = tun->ageing_time; in tun_flow_cleanup()
519 unsigned long delay = tun->ageing_time; in tun_flow_update()
1366 tun->ageing_time = TUN_FLOW_EXPIRE; in tun_flow_init()
1369 round_jiffies_up(jiffies + tun->ageing_time)); in tun_flow_init()
/Linux-v5.4/drivers/net/ethernet/mscc/
Docelot.c1280 u32 ageing_time = jiffies_to_msecs(ageing_jiffies) / 1000; in ocelot_port_attr_ageing_set() local
1282 ocelot_write(ocelot, ANA_AUTOAGE_AGE_PERIOD(ageing_time / 2), in ocelot_port_attr_ageing_set()
1317 ocelot_port_attr_ageing_set(ocelot_port, attr->u.ageing_time); in ocelot_port_attr_set()
/Linux-v5.4/drivers/net/dsa/sja1105/
Dsja1105_main.c1880 unsigned int ageing_time) in sja1105_set_ageing_time() argument
1890 maxage = SJA1105_AGEING_TIME_MS(ageing_time); in sja1105_set_ageing_time()

12