Home
last modified time | relevance | path

Searched refs:tp_block_size (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dpsock_tpacket.c632 ring->req.tp_block_size = getpagesize() << 2; in __v1_v2_fill()
636 ring->req.tp_frame_nr = ring->req.tp_block_size / in __v1_v2_fill()
640 ring->mm_len = ring->req.tp_block_size * ring->req.tp_block_nr; in __v1_v2_fill()
653 ring->req3.tp_block_size = getpagesize() << 2; in __v3_fill()
657 ring->req3.tp_frame_nr = ring->req3.tp_block_size / in __v3_fill()
661 ring->mm_len = ring->req3.tp_block_size * ring->req3.tp_block_nr; in __v3_fill()
664 ring->flen = ring->req3.tp_block_size; in __v3_fill()
H A Dtxring_overwrite.c105 req.tp_block_size = getpagesize(); in setup_tx()
114 *ring = mmap(0, req.tp_block_size * req.tp_block_nr, in setup_tx()
H A Dpsock_fanout.c179 .tp_block_size = getpagesize(), in sock_fanout_open_ring()
198 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dif_packet.h271 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
278 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dif_packet.h271 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
278 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dif_packet.h272 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
279 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dpacket_mmap.rst204 unsigned int tp_block_size; /* Minimal size of contiguous block */
216 region of memory and holds tp_block_size/tp_frame_size frames. The total number
219 frames_per_block = tp_block_size/tp_frame_size
227 tp_block_size= 4096
395 - tp_block_size must be a multiple of PAGE_SIZE (1)
400 Note that tp_block_size should be chosen to be a power of two or there will
413 If tp_frame_size is a divisor of tp_block_size frames will be
415 tp_block_size/tp_frame_size frames there will be a gap between
846 ring->req.tp_block_size = blocksiz;
860 ring->map = mmap(NULL, ring->req.tp_block_size * ring->req.tp_block_nr,
[all …]
/OK3568_Linux_fs/kernel/net/packet/
H A Daf_packet.c587 p1->kblk_size = req_u->req3.tp_block_size; in init_prb_bdqc()
597 req_u->req3.tp_block_size); in init_prb_bdqc()
4369 if (unlikely((int)req->tp_block_size <= 0)) in packet_set_ring()
4371 if (unlikely(!PAGE_ALIGNED(req->tp_block_size))) in packet_set_ring()
4375 req->tp_block_size < in packet_set_ring()
4383 rb->frames_per_block = req->tp_block_size / req->tp_frame_size; in packet_set_ring()
4393 order = get_order(req->tp_block_size); in packet_set_ring()
4459 rb->pg_vec_pages = req->tp_block_size/PAGE_SIZE; in packet_set_ring()