Searched refs:tp_block_nr (Results 1 – 7 of 7) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | psock_tpacket.c | 634 ring->req.tp_block_nr = blocks; in __v1_v2_fill() 638 ring->req.tp_block_nr; in __v1_v2_fill() 640 ring->mm_len = ring->req.tp_block_size * ring->req.tp_block_nr; in __v1_v2_fill() 655 ring->req3.tp_block_nr = blocks; in __v3_fill() 659 ring->req3.tp_block_nr; in __v3_fill() 661 ring->mm_len = ring->req3.tp_block_size * ring->req3.tp_block_nr; in __v3_fill() 663 ring->rd_num = ring->req3.tp_block_nr; in __v3_fill()
|
A D | txring_overwrite.c | 106 req.tp_block_nr = 1; in setup_tx() 114 *ring = mmap(0, req.tp_block_size * req.tp_block_nr, in setup_tx()
|
A D | toeplitz.c | 267 req3.tp_block_nr = 16; in setup_ring() 270 req3.tp_block_size /= req3.tp_block_nr; in setup_ring() 276 ring_block_nr = req3.tp_block_nr; in setup_ring() 278 ring = mmap(0, req3.tp_block_size * req3.tp_block_nr, in setup_ring()
|
A D | psock_fanout.c | 195 .tp_block_nr = RING_NUM_FRAMES, in sock_fanout_open_ring() 212 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | if_packet.h | 275 unsigned int tp_block_nr; /* Number of blocks */ member 282 unsigned int tp_block_nr; /* Number of blocks */ member
|
/linux-6.3-rc2/Documentation/networking/ |
A D | packet_mmap.rst | 205 unsigned int tp_block_nr; /* Number of blocks */ 217 of blocks is tp_block_nr. Note that tp_frame_nr is a redundant parameter because:: 223 frames_per_block * tp_block_nr == tp_frame_nr 229 tp_block_nr = 4 397 - tp_frame_nr must be exactly frames_per_block*tp_block_nr 847 ring->req.tp_block_nr = blocknum; 859 ring->map = mmap(NULL, ring->req.tp_block_size * ring->req.tp_block_nr, 866 ring->rd = malloc(ring->req.tp_block_nr * sizeof(*ring->rd)); 868 for (i = 0; i < ring->req.tp_block_nr; ++i) { 944 munmap(ring->map, ring->req.tp_block_size * ring->req.tp_block_nr);
|
/linux-6.3-rc2/net/packet/ |
A D | af_packet.c | 626 p1->knum_blocks = req_u->req3.tp_block_nr; in init_prb_bdqc() 4338 unsigned int block_nr = req->tp_block_nr; in alloc_pg_vec() 4386 if (req->tp_block_nr) { in packet_set_ring() 4424 if (unlikely(rb->frames_per_block > UINT_MAX / req->tp_block_nr)) in packet_set_ring() 4426 if (unlikely((rb->frames_per_block * req->tp_block_nr) != in packet_set_ring() 4495 swap(rb->pg_vec_len, req->tp_block_nr); in packet_set_ring() 4522 free_pg_vec(pg_vec, order, req->tp_block_nr); in packet_set_ring()
|
Completed in 26 milliseconds