/net/ipv4/ |
D | tcp_cdg.c | 65 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, tcp_snd_cwnd(tp)); 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 …]
|
D | tcp_yeah.c | 74 tcp_cong_avoid_ai(tp, min(tcp_snd_cwnd(tp), TCP_SCALABLE_AI_CNT), in tcp_yeah_cong_avoid() 142 u32 reduction = min(queue / TCP_YEAH_GAMMA , in tcp_yeah_cong_avoid() 158 yeah->doing_reno_now = min(yeah->doing_reno_now + 1, in tcp_yeah_cong_avoid() 196 reduction = min(reduction, max(tcp_snd_cwnd(tp)>>1, 2U)); in tcp_yeah_ssthresh()
|
D | tcp_hybla.c | 131 increment = ((1 << min(ca->rho, 16U)) * in hybla_cong_avoid() 162 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_ssthresh)); in hybla_cong_avoid() 164 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_cwnd_clamp)); in hybla_cong_avoid()
|
D | tcp_vegas.c | 129 vegas->minRTT = min(vegas->minRTT, vrtt); in tcp_vegas_pkts_acked() 162 return min(tp->snd_ssthresh, tcp_snd_cwnd(tp)); in tcp_vegas_ssthresh() 241 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), in tcp_vegas_cong_avoid()
|
D | tcp_bbr.c | 314 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 tcp_snd_cwnd_set(tp, min(cwnd, tp->snd_cwnd_clamp)); /* apply global cap */ in bbr_set_cwnd() 547 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), 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, tcp_snd_cwnd(tp)); in bbr_update_ack_aggregation()
|
D | tcp_cong.c | 398 u32 cwnd = min(tcp_snd_cwnd(tp) + acked, tp->snd_ssthresh); in tcp_slow_start() 401 tcp_snd_cwnd_set(tp, min(cwnd, tp->snd_cwnd_clamp)); in tcp_slow_start() 425 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_cwnd_clamp)); in tcp_cong_avoid_ai()
|
/net/netfilter/ |
D | nf_nat_core.c | 214 const union nf_conntrack_man_proto *min, in l4proto_in_range() argument 222 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range() 235 return ntohs(port) >= ntohs(min->all) && in l4proto_in_range() 385 unsigned int range_size, min, max, i, attempts; in nf_nat_l4proto_unique_tuple() local 396 min = 0; in nf_nat_l4proto_unique_tuple() 399 min = ntohs(range->min_proto.icmp.id); in nf_nat_l4proto_unique_tuple() 417 min = 1; in nf_nat_l4proto_unique_tuple() 420 min = ntohs(range->min_proto.gre.key); in nf_nat_l4proto_unique_tuple() 421 range_size = ntohs(range->max_proto.gre.key) - min + 1; in nf_nat_l4proto_unique_tuple() 449 min = 1; in nf_nat_l4proto_unique_tuple() [all …]
|
D | xt_ipcomp.c | 30 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()
|
D | xt_esp.c | 26 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()
|
D | xt_length.c | 26 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()
|
D | xt_TCPMSS.c | 105 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()
|
D | xt_tcpudp.c | 26 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/ |
D | sysctl.c | 38 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/ |
D | ipt_ah.c | 20 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/ |
D | ip6t_ah.c | 25 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()
|
D | ip6t_frag.c | 24 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()
|
D | ip6t_mh.c | 26 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()
|
D | ip6t_rt.c | 26 segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in segsleft_match() argument 28 return (id >= min && id <= max) ^ invert; in segsleft_match()
|
/net/dccp/ |
D | timer.c | 109 min(icsk->icsk_rto, in dccp_retransmit_timer() 117 icsk->icsk_rto = min(icsk->icsk_rto << 1, DCCP_RTO_MAX); in dccp_retransmit_timer() 199 icsk->icsk_ack.ato = min(icsk->icsk_ack.ato << 1, in dccp_delack_timer()
|
/net/netlink/ |
D | policy.c | 313 range.min, NL_POLICY_TYPE_ATTR_PAD) || in __netlink_policy_dump_write_attr() 337 range.min, NL_POLICY_TYPE_ATTR_PAD) || in __netlink_policy_dump_write_attr() 365 if (range.min && in __netlink_policy_dump_write_attr() 367 range.min)) in __netlink_policy_dump_write_attr()
|
/net/sctp/ |
D | sysctl.c | 429 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min() local 444 if (new_value > max || new_value < min) in proc_sctp_do_rto_min() 457 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_max() local 472 if (new_value > max || new_value < min) in proc_sctp_do_rto_max() 524 unsigned int min = *(unsigned int *)ctl->extra1; in proc_sctp_do_udp_port() local 541 if (new_value > max || new_value < min) in proc_sctp_do_udp_port()
|
/net/mctp/ |
D | route.c | 534 rt->min <= eid && rt->max >= eid; in mctp_rt_match_eid() 543 rt1->min == rt2->min && in mctp_rt_compare_exact() 623 size = min(mtu - hlen, skb->len - pos); in mctp_do_fragment_route() 774 rt->min = daddr_start; in mctp_route_add() 814 rt->min == daddr_start && rt->max == daddr_end && in mctp_route_remove() 1039 hdr->rtm_dst_len = rt->max - rt->min; in mctp_fill_rtinfo() 1047 if (nla_put_u8(skb, RTA_DST, rt->min)) in mctp_fill_rtinfo()
|
/net/tipc/ |
D | core.h | 200 static inline int in_range(u16 val, u16 min, u16 max) in in_range() argument 202 return !less(val, min) && !more(val, max); in in_range()
|
/net/rds/ |
D | tcp_recv.c | 77 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()
|
/net/xfrm/ |
D | xfrm_compat.c | 57 __u32 min, max; member 210 dst_usi->min = src_usi->min; in xfrm_nlmsg_put_compat() 537 dst_usi->min = src_usi->min; in xfrm_xlate32()
|