Home
last modified time | relevance | path

Searched refs:tp_status (Results 1 – 7 of 7) sorted by relevance

/linux-6.15/include/uapi/linux/
H A Dif_packet.h100 __u32 tp_status; member
136 unsigned long tp_status; member
150 __u32 tp_status; member
175 __u32 tp_status; member
/linux-6.15/tools/testing/selftests/net/
H A Dpsock_tpacket.c175 return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER); in __v1_rx_kernel_ready()
180 hdr->tp_status = TP_STATUS_KERNEL; in __v1_rx_user_ready()
186 return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER); in __v2_rx_kernel_ready()
191 hdr->tp_status = TP_STATUS_KERNEL; in __v2_rx_user_ready()
281 return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING)); in __v1_tx_kernel_ready()
286 hdr->tp_status = TP_STATUS_SEND_REQUEST; in __v1_tx_user_ready()
292 return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING)); in __v2_tx_kernel_ready()
297 hdr->tp_status = TP_STATUS_SEND_REQUEST; in __v2_tx_user_ready()
303 return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING)); in __v3_tx_kernel_ready()
308 hdr->tp_status = TP_STATUS_SEND_REQUEST; in __v3_tx_user_ready()
H A Dtxring_overwrite.c127 while (header->tp_status != TP_STATUS_AVAILABLE) in send_pkt()
133 header->tp_status = TP_STATUS_SEND_REQUEST; in send_pkt()
H A Dpsock_fanout.c255 while (count < RING_NUM_FRAMES && header->tp_status & TP_STATUS_USER) { in sock_fanout_read_ring()
/linux-6.15/tools/testing/selftests/net/lib/
H A Dcsum.c719 return aux->tp_status; in recv_get_packet_csum_status()
729 uint32_t tp_status; in recv_packet() local
751 tp_status = recv_get_packet_csum_status(&msg); in recv_packet()
757 if (tp_status & TP_STATUS_CSUMNOTREADY) { in recv_packet()
778 if (tp_status & TP_STATUS_CSUM_VALID && cfg_bad_csum) { in recv_packet()
/linux-6.15/net/packet/
H A Daf_packet.c409 WRITE_ONCE(h.h1->tp_status, status); in __packet_set_status()
413 WRITE_ONCE(h.h2->tp_status, status); in __packet_set_status()
417 WRITE_ONCE(h.h3->tp_status, status); in __packet_set_status()
440 return READ_ONCE(h.h1->tp_status); in __packet_get_status()
443 return READ_ONCE(h.h2->tp_status); in __packet_get_status()
446 return READ_ONCE(h.h3->tp_status); in __packet_get_status()
1064 ppd->tp_status = TP_STATUS_AVAILABLE; in prb_fill_vlan_info()
2493 h.h3->tp_status |= status; in tpacket_rcv()
3577 aux.tp_status = TP_STATUS_USER; in packet_recvmsg()
3582 aux.tp_status |= TP_STATUS_CSUM_VALID; in packet_recvmsg()
[all …]
/linux-6.15/Documentation/networking/
H A Dpacket_mmap.rst526 header->tp_status = TP_STATUS_SEND_REQUEST;
566 - TP_STATUS_VLAN_VALID bit being set into the tp_status field indicates
568 - TP_STATUS_VLAN_TPID_VALID bit being set into the tp_status field
1042 To determine what kind of timestamp has been reported, the tp_status field
1062 application (e.g. !(tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING))
1064 one can extract the type of timestamp in a second step from tp_status)!