Lines Matching refs:gw_node
513 * @gw_node: the GW to retrieve the metric for
520 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw)
527 orig_node = gw_node->orig_node;
542 *bw = min_t(u32, *bw, gw_node->bandwidth_down);
561 struct batadv_gw_node *gw_node, *curr_gw = NULL;
565 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) {
566 if (!kref_get_unless_zero(&gw_node->refcount))
569 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0)
577 curr_gw = gw_node;
582 batadv_gw_node_put(gw_node);
649 * @gw_node: Gateway to be dumped
656 struct batadv_gw_node *gw_node)
664 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT);
686 if (curr_gw == gw_node) {
694 gw_node->orig_node->orig)) {
723 gw_node->bandwidth_down)) {
728 if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, gw_node->bandwidth_up)) {
753 struct batadv_gw_node *gw_node;
760 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) {
765 gw_node)) {