Lines Matching full:throughput
333 …"Sending own OGM2 packet (originator %pM, seqno %u, throughput %u, TTL %d) on interface %s [%pM]\n… in batadv_v_ogm_send_meshif()
335 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_meshif()
449 * batadv_v_forward_penalty() - apply a penalty to the throughput metric
454 * @throughput: the current throughput
456 * Apply a penalty on the current throughput metric value based on the
459 * Initially the per hardif hop penalty is applied to the throughput. After
461 * - throughput * 50% if the incoming and outgoing interface are the
462 * same WiFi interface and the throughput is above
464 * - throughput if the outgoing interface is the default
467 * - throughput * node hop penalty otherwise
469 * Return: the penalised throughput metric.
474 u32 throughput) in batadv_v_forward_penalty() argument
481 throughput = throughput * (hop_penalty_max - if_hop_penalty) / in batadv_v_forward_penalty()
486 return throughput; in batadv_v_forward_penalty()
488 /* Forwarding on the same WiFi interface cuts the throughput in half in batadv_v_forward_penalty()
490 * Very low throughput values are the exception. in batadv_v_forward_penalty()
492 if (throughput > 10 && in batadv_v_forward_penalty()
495 return throughput / 2; in batadv_v_forward_penalty()
498 return throughput * (hop_penalty_max - hop_penalty) / hop_penalty_max; in batadv_v_forward_penalty()
511 * Forward an OGM to an interface after having altered the throughput metric and
573 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput); in batadv_v_ogm_forward()
577 "Forwarding OGM2 packet on %s: throughput %u, ttl %u, received via %s\n", in batadv_v_ogm_forward()
578 if_outgoing->net_dev->name, ntohl(ogm_forward->throughput), in batadv_v_ogm_forward()
656 ntohl(ogm2->throughput)); in batadv_v_ogm_metric_update()
657 neigh_ifinfo->bat_v.throughput = path_throughput; in batadv_v_ogm_metric_update()
733 /* don't consider neighbours with worse throughput. in batadv_v_ogm_route_update()
748 router_throughput = router_ifinfo->bat_v.throughput; in batadv_v_ogm_route_update()
749 neigh_throughput = neigh_ifinfo->bat_v.throughput; in batadv_v_ogm_route_update()
864 ogm_throughput = ntohl(ogm_packet->throughput); in batadv_v_ogm_process()
867 …"Received OGM2 packet via NB: %pM, IF: %s [%pM] (from OG: %pM, seqno %u, throughput %u, TTL %u, V … in batadv_v_ogm_process()
879 /* If the throughput metric is 0, immediately drop the packet. No need in batadv_v_ogm_process()
884 "Drop packet: originator packet with throughput metric of 0\n"); in batadv_v_ogm_process()
905 /* Update the received throughput metric to match the link in batadv_v_ogm_process()
908 * neighbor) the path throughput metric equals the link throughput. in batadv_v_ogm_process()
909 * - For OGMs traversing more than hop the path throughput metric is in batadv_v_ogm_process()
910 * the smaller of the path throughput and the link throughput. in batadv_v_ogm_process()
912 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process()
914 ogm_packet->throughput = htonl(path_throughput); in batadv_v_ogm_process()
1053 ogm_packet->throughput = htonl(BATADV_THROUGHPUT_MAX_VALUE); in batadv_v_ogm_init()