Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 158) sorted by relevance

1234567

/net/ipv4/
Dtcp_cdg.c65 s32 min; member
145 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update()
178 if (ca->rtt.min > thresh) { in tcp_cdg_hystart_update()
192 s32 gmin = ca->rtt.min - ca->rtt_prev.min; in tcp_cdg_grad()
197 ca->gsum.min += gmin - ca->gradients[ca->tail].min; in tcp_cdg_grad()
199 ca->gradients[ca->tail].min = gmin; in tcp_cdg_grad()
202 gmin = ca->gsum.min; in tcp_cdg_grad()
288 ca->shadow_wnd = min(ca->shadow_wnd, tp->snd_cwnd); in tcp_cdg_cong_avoid()
316 ca->rtt.min = min(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked()
324 ca->rtt.min = min_not_zero(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked()
[all …]
Dtcp_yeah.c87 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid()
161 u32 reduction = min(queue / TCP_YEAH_GAMMA , in tcp_yeah_cong_avoid()
177 yeah->doing_reno_now = min(yeah->doing_reno_now + 1, in tcp_yeah_cong_avoid()
215 reduction = min(reduction, max(tp->snd_cwnd>>1, 2U)); in tcp_yeah_ssthresh()
Dtcp_vegas.c129 vegas->minRTT = min(vegas->minRTT, vrtt); in tcp_vegas_pkts_acked()
162 return min(tp->snd_ssthresh, tp->snd_cwnd); in tcp_vegas_ssthresh()
241 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid()
Dtcp_hybla.c131 increment = ((1 << min(ca->rho, 16U)) * in hybla_cong_avoid()
162 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); in hybla_cong_avoid()
Dtcp_bbr.c314 return min(segs, 0x7FU); in bbr_tso_segs_goal()
463 aggr_cwnd = min(aggr_cwnd, max_aggr_cwnd); in bbr_ack_aggregation_cwnd()
539 cwnd = min(cwnd + acked, target_cwnd); in bbr_set_cwnd()
545 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); /* apply global cap */ in bbr_set_cwnd()
547 tp->snd_cwnd = min(tp->snd_cwnd, bbr_cwnd_min_target); in bbr_set_cwnd()
826 bbr->extra_acked_win_rtts = min(0x1F, in bbr_update_ack_aggregation()
857 extra_acked = min(extra_acked, tp->snd_cwnd); in bbr_update_ack_aggregation()
Dtcp_cong.c396 u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh); in tcp_slow_start()
399 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start()
423 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_cwnd_clamp); in tcp_cong_avoid_ai()
Dtcp_dctcp.c86 ca->dctcp_alpha = min(dctcp_alpha_on_init, DCTCP_MAX_ALPHA); in dctcp_init()
133 alpha = min(alpha + delivered_ce, DCTCP_MAX_ALPHA); in dctcp_update_alpha()
Dtcp_timer.c156 mss = min(net->ipv4.sysctl_tcp_base_mss, mss); in tcp_mtu_probing()
290 icsk->icsk_ack.ato = min(icsk->icsk_ack.ato << 1, icsk->icsk_rto); in tcp_delack_timer_handler()
558 icsk->icsk_rto = min(__tcp_set_rto(tp), TCP_RTO_MAX); in tcp_retransmit_timer()
561 icsk->icsk_rto = min(icsk->icsk_rto << 1, TCP_RTO_MAX); in tcp_retransmit_timer()
/net/netfilter/
Dnf_nat_core.c234 const union nf_conntrack_man_proto *min, in l4proto_in_range() argument
242 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range()
255 return ntohs(port) >= ntohs(min->all) && in l4proto_in_range()
405 unsigned int range_size, min, max, i, attempts; in nf_nat_l4proto_unique_tuple() local
416 min = 0; in nf_nat_l4proto_unique_tuple()
419 min = ntohs(range->min_proto.icmp.id); in nf_nat_l4proto_unique_tuple()
437 min = 1; in nf_nat_l4proto_unique_tuple()
440 min = ntohs(range->min_proto.gre.key); in nf_nat_l4proto_unique_tuple()
441 range_size = ntohs(range->max_proto.gre.key) - min + 1; in nf_nat_l4proto_unique_tuple()
469 min = 1; in nf_nat_l4proto_unique_tuple()
[all …]
Dxt_ipcomp.c30 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument
34 invert ? '!' : ' ', min, spi, max); in spi_match()
35 r = (spi >= min && spi <= max) ^ invert; in spi_match()
Dxt_esp.c26 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument
30 invert ? '!' : ' ', min, spi, max); in spi_match()
31 r = (spi >= min && spi <= max) ^ invert; in spi_match()
Dxt_length.c26 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt()
36 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt6()
Dxt_TCPMSS.c105 unsigned int min_mtu = min(dst_mtu(skb_dst(skb)), in_mtu); in tcpmss_mangle_packet()
172 newmss = min(newmss, (u16)536); in tcpmss_mangle_packet()
174 newmss = min(newmss, (u16)1220); in tcpmss_mangle_packet()
Dxt_tcpudp.c26 port_match(u_int16_t min, u_int16_t max, u_int16_t port, bool invert) in port_match() argument
28 return (port >= min && port <= max) ^ invert; in port_match()
/net/phonet/
Dsysctl.c38 void phonet_get_local_port_range(int *min, int *max) in phonet_get_local_port_range() argument
44 if (min) in phonet_get_local_port_range()
45 *min = local_port_range[0]; in phonet_get_local_port_range()
/net/ipv4/netfilter/
Dipt_ah.c20 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument
24 invert ? '!' : ' ', min, spi, max); in spi_match()
25 r = (spi >= min && spi <= max) ^ invert; in spi_match()
/net/ipv6/netfilter/
Dip6t_ah.c25 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument
30 invert ? '!' : ' ', min, spi, max); in spi_match()
31 r = (spi >= min && spi <= max) ^ invert; in spi_match()
Dip6t_frag.c24 id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in id_match() argument
28 min, id, max); in id_match()
29 r = (id >= min && id <= max) ^ invert; in id_match()
Dip6t_mh.c26 type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert) in type_match() argument
28 return (type >= min && type <= max) ^ invert; in type_match()
Dip6t_rt.c26 segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in segsleft_match() argument
30 invert ? '!' : ' ', min, id, max); in segsleft_match()
31 r = (id >= min && id <= max) ^ invert; in segsleft_match()
/net/decnet/
Ddn_neigh.c483 unsigned char *min = NULL; in dn_find_slot() local
488 if (!min || (*base < *min)) in dn_find_slot()
489 min = base; in dn_find_slot()
493 if (!min) in dn_find_slot()
496 return (*min < priority) ? (min - 6) : NULL; in dn_find_slot()
/net/dccp/
Dtimer.c109 min(icsk->icsk_rto, in dccp_retransmit_timer()
117 icsk->icsk_rto = min(icsk->icsk_rto << 1, DCCP_RTO_MAX); in dccp_retransmit_timer()
200 icsk->icsk_ack.ato = min(icsk->icsk_ack.ato << 1, in dccp_delack_timer()
/net/tipc/
Dcore.h189 static inline int in_range(u16 val, u16 min, u16 max) in in_range() argument
191 return !less(val, min) && !more(val, max); in in_range()
/net/sctp/
Dsysctl.c376 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min() local
391 if (new_value > max || new_value < min) in proc_sctp_do_rto_min()
405 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_max() local
420 if (new_value > max || new_value < min) in proc_sctp_do_rto_max()
/net/rds/
Dtcp_recv.c77 to_copy = min(to_copy, skb->len - skb_off); in rds_tcp_inc_copy_to_user()
194 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
216 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()

1234567