Home
last modified time | relevance | path

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

/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c591 ring->req.tp_block_size = getpagesize() << 2; in __v1_v2_fill()
595 ring->req.tp_frame_nr = ring->req.tp_block_size / in __v1_v2_fill()
599 ring->mm_len = ring->req.tp_block_size * ring->req.tp_block_nr; in __v1_v2_fill()
611 ring->req3.tp_block_size = getpagesize() << 2; in __v3_fill()
615 ring->req3.tp_frame_nr = ring->req3.tp_block_size / in __v3_fill()
619 ring->mm_len = ring->req3.tp_block_size * ring->req3.tp_block_nr; in __v3_fill()
622 ring->flen = ring->req3.tp_block_size; in __v3_fill()
Dpsock_fanout.c146 .tp_block_size = getpagesize(), in sock_fanout_open_ring()
165 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
/linux-4.4.14/include/uapi/linux/
Dif_packet.h268 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
275 unsigned int tp_block_size; /* Minimal size of contiguous block */ member
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt208 unsigned int tp_block_size; /* Minimal size of contiguous block */
220 region of memory and holds tp_block_size/tp_frame_size frames. The total number
223 frames_per_block = tp_block_size/tp_frame_size
231 tp_block_size= 4096
397 tp_block_size must be a multiple of PAGE_SIZE (1)
402 Note that tp_block_size should be chosen to be a power of two or there will
416 If tp_frame_size is a divisor of tp_block_size frames will be
418 tp_block_size/tp_frame_size frames there will be a gap between
827 ring->req.tp_block_size = blocksiz;
841 ring->map = mmap(NULL, ring->req.tp_block_size * ring->req.tp_block_nr,
[all …]
/linux-4.4.14/net/packet/
Daf_packet.c618 p1->kblk_size = req_u->req3.tp_block_size; in init_prb_bdqc()
628 req_u->req3.tp_block_size); in init_prb_bdqc()
4106 if (unlikely((int)req->tp_block_size <= 0)) in packet_set_ring()
4108 if (unlikely(!PAGE_ALIGNED(req->tp_block_size))) in packet_set_ring()
4111 (int)(req->tp_block_size - in packet_set_ring()
4120 rb->frames_per_block = req->tp_block_size / req->tp_frame_size; in packet_set_ring()
4128 order = get_order(req->tp_block_size); in packet_set_ring()
4179 rb->pg_vec_pages = req->tp_block_size/PAGE_SIZE; in packet_set_ring()