Lines Matching defs:hcml
440 struct hc_metrics_lite hcml = { .hc_mtu = mtu };
442 return (tcp_hc_update(inc, &hcml));
450 tcp_hc_update(const struct in_conninfo *inc, struct hc_metrics_lite *hcml)
547 if (hcml->hc_mtu != 0) {
548 atomic_store_32(&hc_entry->hc_mtu, hcml->hc_mtu);
550 if (hcml->hc_rtt != 0) {
552 v = hcml->hc_rtt;
555 (uint64_t)hcml->hc_rtt) / 2;
559 if (hcml->hc_rttvar != 0) {
561 v = hcml->hc_rttvar;
564 (uint64_t)hcml->hc_rttvar) / 2;
568 if (hcml->hc_ssthresh != 0) {
570 v = hcml->hc_ssthresh;
572 v = (hc_entry->hc_ssthresh + hcml->hc_ssthresh) / 2;
576 if (hcml->hc_cwnd != 0) {
578 v = hcml->hc_cwnd;
581 (uint64_t)hcml->hc_cwnd) / 2;
585 if (hcml->hc_sendpipe != 0) {
587 v = hcml->hc_sendpipe;
590 (uint64_t)hcml->hc_sendpipe) /2;
594 if (hcml->hc_recvpipe != 0) {
596 v = hcml->hc_recvpipe;
599 (uint64_t)hcml->hc_recvpipe) /2;