Lines Matching refs:gw_node
517 * @gw_node: the GW to retrieve the metric for
524 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw)
531 orig_node = gw_node->orig_node;
546 *bw = min_t(u32, *bw, gw_node->bandwidth_down);
565 struct batadv_gw_node *gw_node, *curr_gw = NULL;
569 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) {
570 if (!kref_get_unless_zero(&gw_node->refcount))
573 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0)
581 curr_gw = gw_node;
586 batadv_gw_node_put(gw_node);
653 * @gw_node: Gateway to be dumped
660 struct batadv_gw_node *gw_node)
668 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT);
690 if (curr_gw == gw_node) {
698 gw_node->orig_node->orig)) {
727 gw_node->bandwidth_down)) {
732 if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, gw_node->bandwidth_up)) {
757 struct batadv_gw_node *gw_node;
764 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) {
769 gw_node)) {