/net/ipv4/ |
D | tcp_cdg.c | 66 s32 max; member 156 u32 base_owd = max(ca->delay_min / 2U, 125U); in tcp_cdg_hystart_update() 175 s32 thresh = max(ca->delay_min + ca->delay_min / 8U, in tcp_cdg_hystart_update() 193 s32 gmax = ca->rtt.max - ca->rtt_prev.max; in tcp_cdg_grad() 198 ca->gsum.max += gmax - ca->gradients[ca->tail].max; in tcp_cdg_grad() 200 ca->gradients[ca->tail].max = gmax; in tcp_cdg_grad() 203 gmax = ca->gsum.max; in tcp_cdg_grad() 255 ca->shadow_wnd = max(ca->shadow_wnd, tcp_snd_cwnd(tp)); in tcp_cdg_backoff() 296 ca->shadow_wnd = max(ca->shadow_wnd, ca->shadow_wnd + incr); in tcp_cdg_cong_avoid() 325 ca->rtt.max = max(ca->rtt.max, sample->rtt_us); in tcp_cdg_acked() [all …]
|
D | tcp_yeah.c | 147 tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp), in tcp_yeah_cong_avoid() 154 yeah->reno_count = max(tcp_snd_cwnd(tp)>>1, 2U); in tcp_yeah_cong_avoid() 196 reduction = min(reduction, max(tcp_snd_cwnd(tp)>>1, 2U)); in tcp_yeah_ssthresh() 198 reduction = max(reduction, tcp_snd_cwnd(tp) >> TCP_YEAH_DELTA); in tcp_yeah_ssthresh() 200 reduction = max(tcp_snd_cwnd(tp)>>1, 2U); in tcp_yeah_ssthresh() 203 yeah->reno_count = max(yeah->reno_count>>1, 2U); in tcp_yeah_ssthresh()
|
D | tcp_dctcp.c | 108 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh() 131 delivered_ce /= max(1U, delivered); in dctcp_update_alpha() 150 tp->snd_ssthresh = max(tcp_snd_cwnd(tp) >> 1U, 2U); in dctcp_react_to_loss() 214 return max(tcp_snd_cwnd(tp), ca->loss_cwnd); in dctcp_cwnd_undo()
|
D | tcp_nv.c | 204 cnt = max(4U, tcp_snd_cwnd(tp) >> ca->cwnd_growth_factor); in tcpnv_cong_avoid() 213 return max((tcp_snd_cwnd(tp) * nv_loss_dec_factor) >> 10, 2U); in tcpnv_recalc_ssthresh() 334 ca->nv_min_cwnd = max(ca->nv_min_cwnd / 2, NV_MIN_CWND); in tcpnv_acked() 406 dec = max(2U, ((tcp_snd_cwnd(tp) - max_win) * in tcpnv_acked()
|
D | tcp_bbr.c | 235 return max(bbr->extra_acked[0], bbr->extra_acked[1]); in bbr_extra_acked() 272 rtt_us = max(tp->srtt_us >> 3, 1U); in bbr_init_pacing_rate_from_rtt() 326 bbr->prior_cwnd = max(bbr->prior_cwnd, tcp_snd_cwnd(tp)); in bbr_save_cwnd() 442 edt_ns = max(tp->tcp_wstamp_ns, now_ns); in bbr_packets_in_net_at_edt() 500 cwnd = max(cwnd, bbr->prior_cwnd); in bbr_set_cwnd_to_recover_or_restore() 506 *new_cwnd = max(cwnd, tcp_packets_in_flight(tp) + acked); in bbr_set_cwnd_to_recover_or_restore() 542 cwnd = max(cwnd, bbr_cwnd_min_target); in bbr_set_cwnd() 915 tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp), bbr->prior_cwnd)); in bbr_check_probe_rtt_done()
|
/net/xdp/ |
D | xsk_queue.h | 211 u32 max) in xskq_cons_read_desc_batch() argument 216 while (cached_cons != q->cached_prod && nb_entries < max) { in xskq_cons_read_desc_batch() 255 static inline u32 xskq_cons_nb_entries(struct xsk_queue *q, u32 max) in xskq_cons_nb_entries() argument 259 if (entries >= max) in xskq_cons_nb_entries() 260 return max; in xskq_cons_nb_entries() 265 return entries >= max ? max : entries; in xskq_cons_nb_entries() 313 static inline u32 xskq_prod_nb_free(struct xsk_queue *q, u32 max) in xskq_prod_nb_free() argument 317 if (free_entries >= max) in xskq_prod_nb_free() 318 return max; in xskq_prod_nb_free() 324 return free_entries >= max ? max : free_entries; in xskq_prod_nb_free()
|
/net/rxrpc/ |
D | call_accept.c | 45 int max, tmp; in rxrpc_service_prealloc_one() local 49 max = rx->sk.sk_max_ack_backlog; in rxrpc_service_prealloc_one() 51 if (tmp >= max) { in rxrpc_service_prealloc_one() 52 _leave(" = -ENOBUFS [full %u]", max); in rxrpc_service_prealloc_one() 55 max -= tmp; in rxrpc_service_prealloc_one() 64 if (tmp >= max) { in rxrpc_service_prealloc_one() 68 max = tmp + 1; in rxrpc_service_prealloc_one() 72 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one() 83 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one()
|
/net/openvswitch/ |
D | flow_table.c | 198 for (i = 0; i < ma->max; i++) { in tbl_mask_array_reset_counters() 221 size = max(MASK_ARRAY_SIZE_MIN, size); in tbl_mask_array_alloc() 242 new->max = size; in tbl_mask_array_alloc() 260 for (i = 0; i < old->max; i++) { in tbl_mask_array_realloc() 278 if (ma_count >= ma->max) { in tbl_mask_array_add_mask() 279 err = tbl_mask_array_realloc(tbl, ma->max + in tbl_mask_array_add_mask() 324 if (ma->max >= (MASK_ARRAY_SIZE_MIN * 2) && in tbl_mask_array_del_mask() 325 ma_count <= (ma->max / 3)) in tbl_mask_array_del_mask() 326 tbl_mask_array_realloc(tbl, ma->max / 2); in tbl_mask_array_del_mask() 742 if (likely(*index < ma->max)) { in flow_lookup() [all …]
|
/net/phonet/ |
D | sysctl.c | 38 void phonet_get_local_port_range(int *min, int *max) in phonet_get_local_port_range() argument 46 if (max) in phonet_get_local_port_range() 47 *max = local_port_range[1]; 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/netfilter/ |
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 | nf_nat_core.c | 215 const union nf_conntrack_man_proto *max) in l4proto_in_range() argument 223 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in l4proto_in_range() 236 ntohs(port) <= ntohs(max->all); in l4proto_in_range() 315 unsigned int i, max; in find_best_ips_proto() local 336 max = sizeof(var_ipp->ip) / sizeof(u32) - 1; in find_best_ips_proto() 338 max = sizeof(var_ipp->ip6) / sizeof(u32) - 1; in find_best_ips_proto() 349 0 : (__force u32)tuple->dst.u3.all[max] ^ zone->id); in find_best_ips_proto() 352 for (i = 0; i <= max; i++) { in find_best_ips_proto() 385 unsigned int range_size, min, max, i, attempts; in nf_nat_l4proto_unique_tuple() local 461 max = ntohs(range->max_proto.all); in nf_nat_l4proto_unique_tuple() [all …]
|
D | xt_hashlimit.c | 148 to->max = cfg->max; in cfg_copy() 160 to->max = cfg->max; in cfg_copy() 241 if (ht->cfg.max && ht->count >= ht->cfg.max) { in dsthash_alloc_init() 243 net_err_ratelimited("max count of %u reached\n", ht->cfg.max); in dsthash_alloc_init() 311 if (hinfo->cfg.max == 0) in htable_create() 312 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create() 313 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create() 314 hinfo->cfg.max = hinfo->cfg.size; in htable_create() 852 if (cfg->max > HASHLIMIT_MAX_SIZE) { in hashlimit_mt_check_common() 853 cfg->max = HASHLIMIT_MAX_SIZE; in hashlimit_mt_check_common() [all …]
|
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()
|
/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()
|
/net/dccp/ccids/ |
D | ccid3.c | 129 min_rate = max(min_rate, 2 * hc->tx_x_recv); in ccid3_hc_tx_update_x() 135 hc->tx_x = max(hc->tx_x, (((__u64)hc->tx_s) << 6) / TFRC_T_MBI); in ccid3_hc_tx_update_x() 140 hc->tx_x = max(hc->tx_x, in ccid3_hc_tx_update_x() 220 hc->tx_x = max(hc->tx_x / 2, in ccid3_hc_tx_no_feedback_timer() 236 max(hc->tx_x_recv / 2, in ccid3_hc_tx_no_feedback_timer() 254 t_nfb = max(hc->tx_t_rto, 2 * hc->tx_t_ipi); in ccid3_hc_tx_no_feedback_timer() 447 t_nfb = max(hc->tx_t_rto, 2 * hc->tx_t_ipi); in ccid3_hc_tx_packet_recv()
|
D | ccid2.c | 203 win_used = max(hc->tx_cwnd_used, init_win); in ccid2_cwnd_application_limited() 206 hc->tx_ssthresh = max(hc->tx_ssthresh, in ccid2_cwnd_application_limited() 224 hc->tx_ssthresh = max(hc->tx_ssthresh, (cwnd >> 1) + (cwnd >> 2)); in ccid2_cwnd_restart() 231 hc->tx_cwnd = max(cwnd, restart_cwnd); in ccid2_cwnd_restart() 374 hc->tx_mdev_max = max(hc->tx_mdev, tcp_rto_min(sk)); in ccid2_rtt_estimator() 492 hc->tx_ssthresh = max(hc->tx_cwnd, 2U); in ccid2_congestion_event()
|
/net/sched/ |
D | sch_sfb.c | 58 u32 max; member 348 if (unlikely(minqlen >= q->max)) { in sfb_enqueue() 482 .max = 25, 534 q->max = ctl->max; in sfb_change() 575 .max = q->max, in sfb_dump()
|
/net/netlink/ |
D | policy.c | 315 range.max, NL_POLICY_TYPE_ATTR_PAD)) in __netlink_policy_dump_write_attr() 339 range.max, NL_POLICY_TYPE_ATTR_PAD)) in __netlink_policy_dump_write_attr() 370 if (range.max < U16_MAX && in __netlink_policy_dump_write_attr() 372 range.max)) in __netlink_policy_dump_write_attr()
|
/net/sctp/ |
D | sysctl.c | 430 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_min() local 444 if (new_value > max || new_value < min) in proc_sctp_do_rto_min() 458 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_max() local 472 if (new_value > max || new_value < min) in proc_sctp_do_rto_max() 525 unsigned int max = *(unsigned int *)ctl->extra2; in proc_sctp_do_udp_port() local 541 if (new_value > max || new_value < min) in proc_sctp_do_udp_port()
|
/net/wireless/ |
D | wext-priv.c | 68 int max = args & IW_PRIV_SIZE_MASK; in adjust_priv_size() local 72 if (max < num) in adjust_priv_size() 73 num = max; in adjust_priv_size()
|
/net/tipc/ |
D | name_table.c | 66 u32 max; member 93 struct service_range, tree_node, u32, max, in RB_DECLARE_CALLBACKS_MAX() argument 135 if (!n || service_range_entry(n)->max < start) 140 if (l && service_range_entry(l)->max >= start) { 159 r && service_range_entry(r)->max >= start) { 186 if (r && service_range_entry(r)->max >= start) in service_range_match_next() 310 if (sr->max < upper) in tipc_service_create_range() 311 sr->max = upper; in tipc_service_create_range() 322 sr->max = upper; in tipc_service_create_range()
|