Home
last modified time | relevance | path

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

/Linux-v5.4/include/uapi/linux/
Dif_packet.h273 unsigned int tp_frame_size; /* Size of frame */ member
280 unsigned int tp_frame_size; /* Size of frame */ member
/Linux-v5.4/tools/testing/selftests/net/
Dpsock_tpacket.c363 return f0 + (n * ring->req3.tp_frame_size); in get_next_frame()
633 ring->req.tp_frame_size = TPACKET_ALIGNMENT << 7; in __v1_v2_fill()
637 ring->req.tp_frame_size * in __v1_v2_fill()
643 ring->flen = ring->req.tp_frame_size; in __v1_v2_fill()
654 ring->req3.tp_frame_size = TPACKET_ALIGNMENT << 7; in __v3_fill()
658 ring->req3.tp_frame_size * in __v3_fill()
Dtxring_overwrite.c107 req.tp_frame_size = getpagesize(); in setup_tx()
Dpsock_fanout.c180 .tp_frame_size = getpagesize(), in sock_fanout_open_ring()
/Linux-v5.4/Documentation/networking/
Dpacket_mmap.txt198 unsigned int tp_frame_size; /* Size of frame */
208 region of memory and holds tp_block_size/tp_frame_size frames. The total number
211 frames_per_block = tp_block_size/tp_frame_size
220 tp_frame_size= 2048
386 tp_frame_size must be greater than TPACKET_HDRLEN (obvious)
387 tp_frame_size must be a multiple of TPACKET_ALIGNMENT
404 If tp_frame_size is a divisor of tp_block_size frames will be
405 contiguously spaced by tp_frame_size bytes. If not, each
406 tp_block_size/tp_frame_size frames there will be a gap between
438 larger than tp_frame_size. This packet can be
[all …]
/Linux-v5.4/net/packet/
Daf_packet.c4320 if (unlikely(req->tp_frame_size < min_frame_size)) in packet_set_ring()
4322 if (unlikely(req->tp_frame_size & (TPACKET_ALIGNMENT - 1))) in packet_set_ring()
4325 rb->frames_per_block = req->tp_block_size / req->tp_frame_size; in packet_set_ring()
4387 rb->frame_size = req->tp_frame_size; in packet_set_ring()