Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 6 of 6) sorted by relevance

/net/xdp/
Dxdp_umem.c156 u32 chunk_size = mr->chunk_size, headroom = mr->headroom; in xdp_umem_reg() local
162 if (chunk_size < XDP_UMEM_MIN_CHUNK_SIZE || chunk_size > PAGE_SIZE) { in xdp_umem_reg()
175 if (!unaligned_chunks && !is_power_of_2(chunk_size)) in xdp_umem_reg()
194 chunks = div_u64_rem(size, chunk_size, &chunks_rem); in xdp_umem_reg()
201 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg()
206 umem->chunk_size = chunk_size; in xdp_umem_reg()
Dxsk_buff_pool.c75 pool->chunk_mask = ~((u64)umem->chunk_size - 1); in xp_create_and_assign_umem()
80 pool->chunk_size = umem->chunk_size; in xp_create_and_assign_umem()
82 pool->frame_len = umem->chunk_size - umem->headroom - in xp_create_and_assign_umem()
98 xskb->xdp.frame_sz = umem->chunk_size - umem->headroom; in xp_create_and_assign_umem()
440 return xp_desc_crosses_non_contig_pg(pool, addr, pool->chunk_size); in xp_addr_crosses_non_contig_pg()
447 *addr + pool->chunk_size > pool->addrs_cnt || in xp_check_unaligned()
Dxsk_diag.c60 du.chunk_size = umem->chunk_size; in xsk_diag_put_umem()
Dxsk_queue.h156 if (desc->len > pool->chunk_size) in xp_unaligned_validate_desc()
Dxsk.c459 ts = pool->unaligned ? len : pool->chunk_size; in xsk_build_skb_zerocopy()
1061 __u32 chunk_size; member
/net/core/
Ddevlink.c5661 u8 *chunk, u32 chunk_size, in devlink_nl_cmd_region_read_chunk_fill() argument
5671 err = nla_put(msg, DEVLINK_ATTR_REGION_CHUNK_DATA, chunk_size, chunk); in devlink_nl_cmd_region_read_chunk_fill()