Searched refs:tp_block_nr (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/tools/testing/selftests/net/ |
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()
|
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()
|
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()
|
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.12.1/include/uapi/linux/ |
D | if_packet.h | 277 unsigned int tp_block_nr; /* Number of blocks */ member 284 unsigned int tp_block_nr; /* Number of blocks */ member
|
/linux-6.12.1/Documentation/networking/ |
D | packet_mmap.rst | 206 unsigned int tp_block_nr; /* Number of blocks */ 218 of blocks is tp_block_nr. Note that tp_frame_nr is a redundant parameter because:: 224 frames_per_block * tp_block_nr == tp_frame_nr 230 tp_block_nr = 4 398 - tp_frame_nr must be exactly frames_per_block*tp_block_nr 848 ring->req.tp_block_nr = blocknum; 860 ring->map = mmap(NULL, ring->req.tp_block_size * ring->req.tp_block_nr, 867 ring->rd = malloc(ring->req.tp_block_nr * sizeof(*ring->rd)); 869 for (i = 0; i < ring->req.tp_block_nr; ++i) { 945 munmap(ring->map, ring->req.tp_block_size * ring->req.tp_block_nr);
|
/linux-6.12.1/net/packet/ |
D | af_packet.c | 683 p1->knum_blocks = req_u->req3.tp_block_nr; in init_prb_bdqc() 4445 unsigned int block_nr = req->tp_block_nr; in alloc_pg_vec() 4493 if (req->tp_block_nr) { in packet_set_ring() 4531 if (unlikely(rb->frames_per_block > UINT_MAX / req->tp_block_nr)) in packet_set_ring() 4533 if (unlikely((rb->frames_per_block * req->tp_block_nr) != in packet_set_ring() 4602 swap(rb->pg_vec_len, req->tp_block_nr); in packet_set_ring() 4629 free_pg_vec(pg_vec, order, req->tp_block_nr); in packet_set_ring()
|