Lines Matching refs:throughput

337 			   "Sending own OGM2 packet (originator %pM, seqno %u, throughput %u, TTL %d) on interface %s [%pM]\n",
339 ntohl(ogm_packet->throughput), ogm_packet->ttl,
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)
485 throughput = throughput * (hop_penalty_max - if_hop_penalty) /
490 return throughput;
492 /* Forwarding on the same WiFi interface cuts the throughput in half
494 * Very low throughput values are the exception.
496 if (throughput > 10 &&
499 return throughput / 2;
502 return throughput * (hop_penalty_max - hop_penalty) / hop_penalty_max;
515 * Forward an OGM to an interface after having altered the throughput metric and
577 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput);
581 "Forwarding OGM2 packet on %s: throughput %u, ttl %u, received via %s\n",
582 if_outgoing->net_dev->name, ntohl(ogm_forward->throughput),
660 ntohl(ogm2->throughput));
661 neigh_ifinfo->bat_v.throughput = path_throughput;
737 /* don't consider neighbours with worse throughput.
752 router_throughput = router_ifinfo->bat_v.throughput;
753 neigh_throughput = neigh_ifinfo->bat_v.throughput;
868 ogm_throughput = ntohl(ogm_packet->throughput);
871 "Received OGM2 packet via NB: %pM, IF: %s [%pM] (from OG: %pM, seqno %u, throughput %u, TTL %u, V %u, tvlv_len %u)\n",
883 /* If the throughput metric is 0, immediately drop the packet. No need
888 "Drop packet: originator packet with throughput metric of 0\n");
909 /* Update the received throughput metric to match the link
912 * neighbor) the path throughput metric equals the link throughput.
913 * - For OGMs traversing more than hop the path throughput metric is
914 * the smaller of the path throughput and the link throughput.
916 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput);
918 ogm_packet->throughput = htonl(path_throughput);
1060 ogm_packet->throughput = htonl(BATADV_THROUGHPUT_MAX_VALUE);