Lines Matching full:throughput
337 …"Sending own OGM2 packet (originator %pM, seqno %u, throughput %u, TTL %d) on interface %s [%pM]\n… in batadv_v_ogm_send_softif()
339 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_softif()
453 * batadv_v_forward_penalty() - apply a penalty to the throughput metric
458 * @throughput: the current throughput
460 * Apply a penalty on the current throughput metric value based on the
463 * Initially the per hardif hop penalty is applied to the throughput. After
465 * - throughput * 50% if the incoming and outgoing interface are the
466 * same WiFi interface and the throughput is above
468 * - throughput if the outgoing interface is the default
471 * - throughput * node hop penalty otherwise
473 * Return: the penalised throughput metric.
478 u32 throughput) in batadv_v_forward_penalty() argument
485 throughput = throughput * (hop_penalty_max - if_hop_penalty) / in batadv_v_forward_penalty()
490 return throughput; in batadv_v_forward_penalty()
492 /* Forwarding on the same WiFi interface cuts the throughput in half in batadv_v_forward_penalty()
494 * Very low throughput values are the exception. in batadv_v_forward_penalty()
496 if (throughput > 10 && in batadv_v_forward_penalty()
499 return throughput / 2; in batadv_v_forward_penalty()
502 return throughput * (hop_penalty_max - hop_penalty) / hop_penalty_max; in batadv_v_forward_penalty()
515 * Forward an OGM to an interface after having altered the throughput metric and
577 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput); in batadv_v_ogm_forward()
581 "Forwarding OGM2 packet on %s: throughput %u, ttl %u, received via %s\n", in batadv_v_ogm_forward()
582 if_outgoing->net_dev->name, ntohl(ogm_forward->throughput), in batadv_v_ogm_forward()
660 ntohl(ogm2->throughput)); in batadv_v_ogm_metric_update()
661 neigh_ifinfo->bat_v.throughput = path_throughput; in batadv_v_ogm_metric_update()
737 /* don't consider neighbours with worse throughput. in batadv_v_ogm_route_update()
752 router_throughput = router_ifinfo->bat_v.throughput; in batadv_v_ogm_route_update()
753 neigh_throughput = neigh_ifinfo->bat_v.throughput; in batadv_v_ogm_route_update()
868 ogm_throughput = ntohl(ogm_packet->throughput); in batadv_v_ogm_process()
871 …"Received OGM2 packet via NB: %pM, IF: %s [%pM] (from OG: %pM, seqno %u, throughput %u, TTL %u, V … in batadv_v_ogm_process()
883 /* If the throughput metric is 0, immediately drop the packet. No need in batadv_v_ogm_process()
888 "Drop packet: originator packet with throughput metric of 0\n"); in batadv_v_ogm_process()
909 /* Update the received throughput metric to match the link in batadv_v_ogm_process()
912 * neighbor) the path throughput metric equals the link throughput. in batadv_v_ogm_process()
913 * - For OGMs traversing more than hop the path throughput metric is in batadv_v_ogm_process()
914 * the smaller of the path throughput and the link throughput. in batadv_v_ogm_process()
916 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process()
918 ogm_packet->throughput = htonl(path_throughput); in batadv_v_ogm_process()
1060 ogm_packet->throughput = htonl(BATADV_THROUGHPUT_MAX_VALUE); in batadv_v_ogm_init()