• Home
  • Raw
  • Download

Lines Matching full:gw

660  * batadv_v_init_sel_class() - initialize GW selection class
666 atomic_set(&bat_priv->gw.sel_class, 50); in batadv_v_init_sel_class()
675 "B.A.T.M.A.N. V GW selection class", in batadv_v_store_sel_class()
679 old_class = atomic_read(&bat_priv->gw.sel_class); in batadv_v_store_sel_class()
680 atomic_set(&bat_priv->gw.sel_class, class); in batadv_v_store_sel_class()
690 u32 class = atomic_read(&bat_priv->gw.sel_class); in batadv_v_show_sel_class()
696 * batadv_v_gw_throughput_get() - retrieve the GW-bandwidth for a given GW
697 * @gw_node: the GW to retrieve the metric for
699 * the minimum between the GW advertised throughput and the path throughput to
720 /* the GW metric is computed as the minimum between the path throughput in batadv_v_gw_throughput_get()
721 * to reach the GW itself and the advertised bandwidth. in batadv_v_gw_throughput_get()
723 * client can expect via this particular GW node in batadv_v_gw_throughput_get()
739 * batadv_v_gw_get_best_gw_node() - retrieve the best GW node
742 * Return: the GW node having the best GW-metric, NULL if no GW is known
751 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_get_best_gw_node()
777 * batadv_v_gw_is_eligible() - check if a originator would be selected as GW
779 * @curr_gw_orig: originator representing the currently selected GW
782 * Return: true if orig_node can be selected as current GW, false otherwise
792 threshold = atomic_read(&bat_priv->gw.sel_class); in batadv_v_gw_is_eligible()
890 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_print()
1015 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_v_gw_dump()
1016 cb->seq = bat_priv->gw.generation << 1 | 1; in batadv_v_gw_dump()
1018 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_dump()
1031 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_v_gw_dump()
1060 .gw = {