Searched refs:TPACKET_ALIGN (Results 1 - 3 of 3) sorted by relevance

/linux-master/include/uapi/linux/
H A Dif_packet.h146 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro
147 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
252 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
253 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/linux-master/net/packet/
H A Daf_packet.c2258 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32);
2259 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h3)) != 48);
2303 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 +
2307 netoff = TPACKET_ALIGN(po->tp_hdrlen +
2456 sll = h.raw + TPACKET_ALIGN(hdrlen);
/linux-master/tools/testing/selftests/net/
H A Dpsock_tpacket.c60 # define __align_tpacket(x) __attribute__((aligned(TPACKET_ALIGN(x))))

Completed in 122 milliseconds