Home
last modified time | relevance | path

Searched refs:hop_penalty (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/net/batman-adv/
Dbat_v_ogm.c479 int if_hop_penalty = atomic_read(&if_incoming->hop_penalty); in batadv_v_forward_penalty()
480 int hop_penalty = atomic_read(&bat_priv->hop_penalty); in batadv_v_forward_penalty() local
501 return throughput * (hop_penalty_max - hop_penalty) / hop_penalty_max; in batadv_v_forward_penalty()
Dnetlink.c333 atomic_read(&bat_priv->hop_penalty))) in batadv_netlink_mesh_fill()
569 atomic_set(&bat_priv->hop_penalty, nla_get_u8(attr)); in batadv_netlink_set_mesh()
833 atomic_read(&hard_iface->hop_penalty))) in batadv_netlink_hardif_fill()
935 atomic_set(&hard_iface->hop_penalty, nla_get_u8(attr)); in batadv_netlink_set_hardif()
Dtypes.h211 atomic_t hop_penalty; member
1619 atomic_t hop_penalty; member
Dbat_iv_ogm.c297 int hop_penalty = atomic_read(&bat_priv->hop_penalty); in batadv_hop_penalty() local
300 new_tq = tq * (BATADV_TQ_MAX_VALUE - hop_penalty); in batadv_hop_penalty()
1156 tq_iface_hop_penalty -= atomic_read(&if_incoming->hop_penalty); in batadv_iv_ogm_calc_tq()
Dhard-interface.c884 atomic_set(&hard_iface->hop_penalty, 0); in batadv_hardif_add_interface()
Dsoft-interface.c769 atomic_set(&bat_priv->hop_penalty, 30); in batadv_softif_init_late()