Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 17 of 17) sorted by relevance

/net/sched/
Dsch_tbf.c99 u32 max_size; member
186 if (qdisc_pkt_len(skb) > q->max_size) { in tbf_enqueue()
188 skb_gso_validate_mac_len(skb, q->max_size)) in tbf_enqueue()
303 u64 max_size; in tbf_change() local
335 max_size = nla_get_u32(tb[TCA_TBF_BURST]); in tbf_change()
336 buffer = psched_l2t_ns(&rate, max_size); in tbf_change()
338 max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U); in tbf_change()
354 max_size = min_t(u32, max_size, pburst); in tbf_change()
357 max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); in tbf_change()
363 if (max_size < psched_mtu(qdisc_dev(sch))) in tbf_change()
[all …]
/net/netfilter/ipvs/
Dip_vs_lblc.c107 int max_size; /* maximum size of entries */ member
311 if (atomic_read(&tbl->entries) <= tbl->max_size) { in ip_vs_lblc_check_expire()
316 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
317 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
318 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
365 tbl->max_size = IP_VS_LBLC_TAB_SIZE*16; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c275 int max_size; /* maximum size of entries */ member
475 if (atomic_read(&tbl->entries) <= tbl->max_size) { in ip_vs_lblcr_check_expire()
480 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire()
481 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire()
482 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire()
528 tbl->max_size = IP_VS_LBLCR_TAB_SIZE*16; in ip_vs_lblcr_init_svc()
/net/bpf/
Dtest_run.c129 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() argument
140 data = kzalloc(max_size, GFP_USER); in bpf_ctx_init()
145 err = bpf_check_uarg_tail_zero(data_in, max_size, size); in bpf_ctx_init()
151 size = min_t(u32, max_size, size); in bpf_ctx_init()
/net/ipv6/netfilter/
Dnf_conntrack_reasm.c272 if (payload_len > fq->q.max_size) in nf_ct_frag6_queue()
273 fq->q.max_size = payload_len; in nf_ct_frag6_queue()
357 IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
/net/ipv4/
Dip_fragment.c360 if (fragsize > qp->q.max_size) in ip_frag_queue()
361 qp->q.max_size = fragsize; in ip_frag_queue()
434 IPCB(skb)->frag_max_size = max(qp->max_df_size, qp->q.max_size); in ip_frag_reasm()
448 if (qp->max_df_size == qp->q.max_size) { in ip_frag_reasm()
/net/ipv6/
Dreassembly.c202 if (fragsize > fq->q.max_size) in ip6_frag_queue()
203 fq->q.max_size = fragsize; in ip6_frag_queue()
294 IP6CB(skb)->frag_max_size = fq->q.max_size; in ip6_frag_reasm()
/net/sctp/
Doutput.c89 packet->max_size = tp->pathmtu; in sctp_packet_config()
136 packet->max_size = sk_can_gso(sk) ? tp->dst->dev->gso_max_size in sctp_packet_config()
819 if (psize + chunk_len > packet->max_size) in sctp_packet_will_fit()
/net/rds/
Dbind.c49 .max_size = 16384,
/net/core/
Dxdp.c60 .max_size = MEM_ID_MAX,
Drtnetlink.c2572 u32 max_size = nla_get_u32(tb[IFLA_GSO_MAX_SIZE]); in do_setlink() local
2574 if (max_size > GSO_MAX_SIZE) { in do_setlink()
2579 if (dev->gso_max_size ^ max_size) { in do_setlink()
2580 netif_set_gso_max_size(dev, max_size); in do_setlink()
/net/ipv6/ila/
Dila_xlat.c90 .max_size = 1048576,
/net/ceph/crush/
Dmapper.c51 map->rules[i]->mask.max_size >= size) in crush_find_rule()
/net/9p/
Dclient.c268 p9_tag_alloc(struct p9_client *c, int8_t type, unsigned int max_size) in p9_tag_alloc() argument
271 int alloc_msize = min(c->msize, max_size); in p9_tag_alloc()
/net/bridge/
Dbr_vlan.c27 .max_size = VLAN_N_VID,
/net/mac80211/
Dsta_info.c73 .max_size = CONFIG_MAC80211_STA_HASH_MAX_SIZE,
/net/tipc/
Dsocket.c2896 .max_size = 1048576,