Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 184) sorted by relevance

12345678

/net/core/
A Dpktgen.c521 size_t max; in pgctrl_write() local
852 size_t i = 0, max; in get_imix_entries() local
914 size_t i = 0, max; in get_labels() local
988 size_t i, max; in pktgen_if_write() local
1002 max = count; in pktgen_if_write()
1021 max = count - i; in pktgen_if_write()
1096 max = count - i; in pktgen_if_write()
1685 max = count - i; in pktgen_if_write()
1919 size_t i, max; in pktgen_thread_write() local
1929 max = count; in pktgen_thread_write()
[all …]
A Dnetdev-genl-gen.c17 .max = U32_MAX,
22 .max = S32_MAX,
26 .max = S32_MAX,
/net/ipv4/
A Dtcp_cdg.c66 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 …]
A Dtcp_yeah.c147 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()
A Dtcp_dctcp.c124 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh()
161 delivered_ce /= max(1U, delivered); in dctcp_update_alpha()
180 tp->snd_ssthresh = max(tcp_snd_cwnd(tp) >> 1U, 2U); in dctcp_react_to_loss()
248 return max(tcp_snd_cwnd(tp), ca->loss_cwnd); in dctcp_cwnd_undo()
A Dtcp_nv.c203 cnt = max(4U, tcp_snd_cwnd(tp) >> ca->cwnd_growth_factor); in tcpnv_cong_avoid()
212 return max((tcp_snd_cwnd(tp) * nv_loss_dec_factor) >> 10, 2U); in tcpnv_recalc_ssthresh()
333 ca->nv_min_cwnd = max(ca->nv_min_cwnd / 2, NV_MIN_CWND); in tcpnv_acked()
405 dec = max(2U, ((tcp_snd_cwnd(tp) - max_win) * in tcpnv_acked()
/net/xdp/
A Dxsk_queue.h238 u32 max) in xskq_cons_read_desc_batch() argument
247 while (cached_cons != q->cached_prod && nb_entries < max) { in xskq_cons_read_desc_batch()
296 static inline u32 xskq_cons_nb_entries(struct xsk_queue *q, u32 max) in xskq_cons_nb_entries() argument
300 if (entries >= max) in xskq_cons_nb_entries()
301 return max; in xskq_cons_nb_entries()
306 return entries >= max ? max : entries; in xskq_cons_nb_entries()
347 static inline u32 xskq_prod_nb_free(struct xsk_queue *q, u32 max) in xskq_prod_nb_free() argument
351 if (free_entries >= max) in xskq_prod_nb_free()
352 return max; in xskq_prod_nb_free()
358 return free_entries >= max ? max : free_entries; in xskq_prod_nb_free()
A Dxsk_buff_pool.c590 if (max > pool->free_heads_cnt) in xp_alloc_new_from_fq()
591 max = pool->free_heads_cnt; in xp_alloc_new_from_fq()
592 max = xskq_cons_nb_entries(pool->fq, max); in xp_alloc_new_from_fq()
595 nb_entries = max; in xp_alloc_new_from_fq()
596 i = max; in xp_alloc_new_from_fq()
618 xskq_cons_release_n(pool->fq, max); in xp_alloc_new_from_fq()
643 u32 max) in xp_alloc_slow() argument
647 for (i = 0; i < max; i++) { in xp_alloc_slow()
657 return max; in xp_alloc_slow()
669 if (nb_entries1 == max) in xp_alloc_batch()
[all …]
/net/rxrpc/
A Dcall_accept.c43 int max, tmp; in rxrpc_service_prealloc_one() local
47 max = rx->sk.sk_max_ack_backlog; in rxrpc_service_prealloc_one()
49 if (tmp >= max) { in rxrpc_service_prealloc_one()
50 _leave(" = -ENOBUFS [full %u]", max); in rxrpc_service_prealloc_one()
53 max -= tmp; in rxrpc_service_prealloc_one()
62 if (tmp >= max) { in rxrpc_service_prealloc_one()
66 max = tmp + 1; in rxrpc_service_prealloc_one()
70 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/
A Dflow_table.c199 for (i = 0; i < ma->max; i++) { in tbl_mask_array_reset_counters()
222 size = max(MASK_ARRAY_SIZE_MIN, size); in tbl_mask_array_alloc()
240 new->max = size; in tbl_mask_array_alloc()
258 for (i = 0; i < old->max; i++) { in tbl_mask_array_realloc()
276 if (ma_count >= ma->max) { in tbl_mask_array_add_mask()
323 ma_count <= (ma->max / 3)) in tbl_mask_array_del_mask()
740 if (likely(*index < ma->max)) { in flow_lookup()
754 for (i = 0; i < ma->max; i++) { in flow_lookup()
874 for (i = 0; i < ma->max; i++) { in ovs_flow_tbl_lookup_exact()
994 for (i = 0; i < ma->max; i++) { in flow_mask_find()
[all …]
/net/phonet/
A Dsysctl.c38 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/
A 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/netfilter/
A 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()
A 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()
A Dnf_nat_core.c418 const union nf_conntrack_man_proto *max) in l4proto_in_range() argument
438 ntohs(port) <= ntohs(max->all); in l4proto_in_range()
517 unsigned int i, max; in find_best_ips_proto() local
538 max = sizeof(var_ipp->ip) / sizeof(u32) - 1; in find_best_ips_proto()
540 max = sizeof(var_ipp->ip6) / sizeof(u32) - 1; in find_best_ips_proto()
554 for (i = 0; i <= max; i++) { in find_best_ips_proto()
587 unsigned int range_size, min, max, i, attempts; in nf_nat_l4proto_unique_tuple() local
661 max = ntohs(range->max_proto.all); in nf_nat_l4proto_unique_tuple()
662 if (unlikely(max < min)) in nf_nat_l4proto_unique_tuple()
663 swap(max, min); in nf_nat_l4proto_unique_tuple()
[all …]
A Dxt_hashlimit.c147 to->max = cfg->max; in cfg_copy()
159 to->max = cfg->max; in cfg_copy()
240 if (ht->cfg.max && ht->count >= ht->cfg.max) { in dsthash_alloc_init()
242 net_err_ratelimited("max count of %u reached\n", ht->cfg.max); in dsthash_alloc_init()
309 if (hinfo->cfg.max == 0) in htable_create()
310 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create()
311 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create()
312 hinfo->cfg.max = hinfo->cfg.size; in htable_create()
854 if (cfg->max > HASHLIMIT_MAX_SIZE) { in hashlimit_mt_check_common()
855 cfg->max = HASHLIMIT_MAX_SIZE; in hashlimit_mt_check_common()
[all …]
A Dxt_length.c26 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt()
35 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt6()
/net/ipv6/netfilter/
A 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()
A 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()
A 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()
/net/sched/
A Dsch_sfb.c58 u32 max; member
349 if (unlikely(minqlen >= q->max)) { in sfb_enqueue()
484 .max = 25,
536 q->max = ctl->max; in sfb_change()
577 .max = q->max, in sfb_dump()
/net/wireless/
A Dwext-priv.c68 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/sctp/
A Dsysctl.c438 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_min() local
452 if (new_value > max || new_value < min) in proc_sctp_do_rto_min()
466 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_max() local
480 if (new_value > max || new_value < min) in proc_sctp_do_rto_max()
535 unsigned int max = *(unsigned int *)ctl->extra2; in proc_sctp_do_udp_port() local
551 if (new_value > max || new_value < min) in proc_sctp_do_udp_port()
/net/ieee802154/
A Dpan.c98 unsigned int max) in cfg802154_set_max_associations() argument
105 wpan_dev->max_associations = max; in cfg802154_set_max_associations()
/net/netlink/
A Dpolicy.c323 range.max, NL_POLICY_TYPE_ATTR_PAD)) in __netlink_policy_dump_write_attr()
353 range.max, NL_POLICY_TYPE_ATTR_PAD)) in __netlink_policy_dump_write_attr()
384 if (range.max < U16_MAX && in __netlink_policy_dump_write_attr()
386 range.max)) in __netlink_policy_dump_write_attr()

Completed in 739 milliseconds

12345678