Home
last modified time | relevance | path

Searched refs:TPACKET_ALIGN (Results 1 – 4 of 4) sorted by relevance

/linux-6.3-rc2/include/uapi/linux/
A Dif_packet.h145 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro
146 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
251 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
252 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/linux-6.3-rc2/tools/testing/selftests/net/
A Dpsock_tpacket.c60 # define __align_tpacket(x) __attribute__((aligned(TPACKET_ALIGN(x))))
/linux-6.3-rc2/Documentation/networking/
A Dpacket_mmap.rst178 frame base + TPACKET_ALIGN(sizeof(struct tpacket_hdr))
576 use ``(void *)hdr + TPACKET_ALIGN(hdrlen)`` instead of
577 ``(void *)hdr + TPACKET_ALIGN(sizeof(struct tpacket_hdr))``
/linux-6.3-rc2/net/packet/
A Daf_packet.c2259 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32); in tpacket_rcv()
2260 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h3)) != 48); in tpacket_rcv()
2304 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2308 netoff = TPACKET_ALIGN(po->tp_hdrlen + in tpacket_rcv()
2457 sll = h.raw + TPACKET_ALIGN(hdrlen); in tpacket_rcv()

Completed in 14 milliseconds