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