| /net/sched/ |
| A D | sch_tbf.c | 101 u32 max_size; member 155 qopt.replace_params.max_size = q->max_size; in tbf_offload_change() 252 if (qdisc_pkt_len(skb) > q->max_size) { in tbf_enqueue() 367 u64 max_size; in tbf_change() local 400 buffer = psched_l2t_ns(&rate, max_size); in tbf_change() 418 max_size = min_t(u32, max_size, pburst); in tbf_change() 421 max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); in tbf_change() 427 if (max_size < psched_mtu(qdisc_dev(sch))) in tbf_change() 429 max_size, qdisc_dev(sch)->name, in tbf_change() 432 if (!max_size) { in tbf_change() [all …]
|
| /net/core/ |
| A D | selftests.c | 27 int max_size; member 73 if (attr->max_size && attr->max_size > size) in net_test_get_skb() 74 size = attr->max_size; in net_test_get_skb() 112 if (attr->max_size) in net_test_get_skb() 113 uhdr->len = htons(attr->max_size - in net_test_get_skb() 131 if (attr->max_size) in net_test_get_skb() 132 iplen = attr->max_size - sizeof(*ehdr); in net_test_get_skb() 154 if (attr->max_size && attr->max_size > skb->len) { in net_test_get_skb() 155 size_t pad_len = attr->max_size - skb->len; in net_test_get_skb() 359 attr.max_size = ndev->mtu; in net_test_phy_loopback_udp_mtu()
|
| A D | page_pool.c | 1019 unsigned int max_size = PAGE_SIZE << pool->p.order; in page_pool_alloc_frag_netmem() local 1022 if (WARN_ON(size > max_size)) in page_pool_alloc_frag_netmem() 1028 if (netmem && *offset + size > max_size) { in page_pool_alloc_frag_netmem()
|
| A D | sock.c | 2590 u32 max_size; in sk_dst_gso_max_size() local 2597 max_size = is_ipv6 ? READ_ONCE(dst_dev(dst)->gso_max_size) : in sk_dst_gso_max_size() 2599 if (max_size > GSO_LEGACY_MAX_SIZE && !sk_is_tcp(sk)) in sk_dst_gso_max_size() 2600 max_size = GSO_LEGACY_MAX_SIZE; in sk_dst_gso_max_size() 2602 return max_size - (MAX_TCP_HEADER + 1); in sk_dst_gso_max_size()
|
| A D | xdp.c | 66 .max_size = MEM_ID_MAX,
|
| A D | rtnetlink.c | 3173 u32 max_size = nla_get_u32(tb[IFLA_GSO_MAX_SIZE]); in do_setlink() local 3175 if (dev->gso_max_size ^ max_size) { in do_setlink() 3176 netif_set_gso_max_size(dev, max_size); in do_setlink() 3200 u32 max_size = nla_get_u32(tb[IFLA_GSO_IPV4_MAX_SIZE]); in do_setlink() local 3202 if (dev->gso_ipv4_max_size ^ max_size) { in do_setlink() 3203 netif_set_gso_ipv4_max_size(dev, max_size); in do_setlink()
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_lblc.c | 107 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()
|
| A D | ip_vs_lblcr.c | 275 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/ipv4/ |
| A D | ip_fragment.c | 359 if (fragsize > qp->q.max_size) in ip_frag_queue() 360 qp->q.max_size = fragsize; in ip_frag_queue() 436 IPCB(skb)->frag_max_size = max(qp->max_df_size, qp->q.max_size); in ip_frag_reasm() 450 if (qp->max_df_size == qp->q.max_size) { in ip_frag_reasm()
|
| /net/ipv6/netfilter/ |
| A D | nf_conntrack_reasm.c | 275 if (payload_len > fq->q.max_size) in nf_ct_frag6_queue() 276 fq->q.max_size = payload_len; in nf_ct_frag6_queue() 362 IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
|
| /net/ipv6/ |
| A D | reassembly.c | 208 if (fragsize > fq->q.max_size) in ip6_frag_queue() 209 fq->q.max_size = fragsize; in ip6_frag_queue() 302 IP6CB(skb)->frag_max_size = fq->q.max_size; in ip6_frag_reasm()
|
| /net/rfkill/ |
| A D | core.c | 82 u8 max_size; member 1172 data->max_size = RFKILL_EVENT_SIZE_V1; in rfkill_fop_open() 1256 sz = min_t(unsigned long, sz, data->max_size); in rfkill_fop_read() 1286 count = min_t(size_t, count, data->max_size); in rfkill_fop_write() 1377 data->max_size = size; in rfkill_fop_ioctl()
|
| /net/sctp/ |
| A D | output.c | 89 packet->max_size = tp->pathmtu; in sctp_packet_config() 137 packet->max_size = sk_can_gso(sk) ? min(READ_ONCE(tp->dst->dev->gso_max_size), in sctp_packet_config() 843 if (psize + chunk_len > packet->max_size) in sctp_packet_will_fit()
|
| /net/rds/ |
| A D | bind.c | 49 .max_size = 16384,
|
| /net/bpf/ |
| A D | test_run.c | 814 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() argument 825 data = kzalloc(max_size, GFP_USER); in bpf_ctx_init() 830 err = bpf_check_uarg_tail_zero(USER_BPFPTR(data_in), max_size, size); in bpf_ctx_init() 836 size = min_t(u32, max_size, size); in bpf_ctx_init()
|
| /net/ipv6/ila/ |
| A D | ila_xlat.c | 89 .max_size = 1048576,
|
| /net/ceph/crush/ |
| A D | mapper.c | 51 map->rules[i]->mask.max_size >= size) in crush_find_rule()
|
| /net/mac80211/ |
| A D | sta_info.c | 78 .max_size = CONFIG_MAC80211_STA_HASH_MAX_SIZE, 87 .max_size = CONFIG_MAC80211_STA_HASH_MAX_SIZE,
|
| /net/bridge/ |
| A D | br_vlan.c | 27 .max_size = VLAN_N_VID,
|
| /net/tipc/ |
| A D | socket.c | 3045 .max_size = 1048576,
|