Home
last modified time | relevance | path

Searched refs:curr_gw (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/net/batman-adv/
Dgateway_client.c85 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node()
138 curr_gw_node = rcu_replace_pointer(bat_priv->gw.curr_gw, new_gw_node, in batadv_gw_select()
172 struct batadv_gw_node *curr_gw; in batadv_gw_check_client_stop() local
177 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_check_client_stop()
178 if (!curr_gw) in batadv_gw_check_client_stop()
191 batadv_gw_node_put(curr_gw); in batadv_gw_check_client_stop()
200 struct batadv_gw_node *curr_gw = NULL; in batadv_gw_election() local
212 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_election()
214 if (!batadv_atomic_dec_not_zero(&bat_priv->gw.reselect) && curr_gw) in batadv_gw_election()
223 if (curr_gw == next_gw) in batadv_gw_election()
[all …]
Dbat_v.c584 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local
595 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()
598 batadv_gw_node_put(curr_gw); in batadv_v_gw_get_best_gw_node()
600 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()
601 kref_get(&curr_gw->refcount); in batadv_v_gw_get_best_gw_node()
609 return curr_gw; in batadv_v_gw_get_best_gw_node()
624 struct batadv_gw_node *curr_gw, *orig_gw = NULL; in batadv_v_gw_is_eligible() local
630 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig); in batadv_v_gw_is_eligible()
631 if (!curr_gw) { in batadv_v_gw_is_eligible()
636 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) { in batadv_v_gw_is_eligible()
[all …]
Dbat_iv_ogm.c2253 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_iv_gw_get_best_gw_node() local
2287 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()
2288 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()
2289 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()
2301 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()
2302 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()
2303 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()
2322 return curr_gw; in batadv_iv_gw_get_best_gw_node()
2407 struct batadv_gw_node *curr_gw = NULL; in batadv_iv_gw_dump_entry() local
2419 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_iv_gw_dump_entry()
[all …]
Dtypes.h1113 struct batadv_gw_node __rcu *curr_gw; member