Home
last modified time | relevance | path

Searched refs:pkt_pflags (Results 1 – 25 of 25) sorted by relevance

/xnu-11215.81.4/bsd/skywalk/packet/
H A Dpacket_common.h64 ((PKT_ADDR(_ph)->pkt_pflags & PKT_F_MBUF_DATA) != 0)
236 PKT_ADDR(ph)->pkt_pflags |= PKT_F_BACKGROUND; in __packet_set_transport_traffic_background()
245 return (PKT_ADDR(ph)->pkt_pflags & PKT_F_BACKGROUND) != 0; in __packet_get_transport_traffic_background()
253 PKT_ADDR(ph)->pkt_pflags |= PKT_F_REALTIME; in __packet_set_transport_traffic_realtime()
262 return (PKT_ADDR(ph)->pkt_pflags & PKT_F_REALTIME) != 0; in __packet_get_transport_traffic_realtime()
270 PKT_ADDR(ph)->pkt_pflags |= PKT_F_REXMT; in __packet_set_transport_retransmit()
279 return (PKT_ADDR(ph)->pkt_pflags & PKT_F_REXMT) != 0; in __packet_get_transport_retransmit()
287 PKT_ADDR(ph)->pkt_pflags |= PKT_F_LAST_PKT; in __packet_set_transport_last_packet()
296 PKT_ADDR(ph)->pkt_pflags |= PKT_F_OPT_GROUP_START; in __packet_set_group_start()
305 return (PKT_ADDR(ph)->pkt_pflags & PKT_F_OPT_GROUP_START) != 0; in __packet_get_group_start()
[all …]
H A Dpacket_var.h482 (_p)->pkt_pflags = (__pflags); \
498 (_pk)->pkt_pflags &= ~(PKT_F_MBUF_MASK|PKT_F_PKT_MASK); \
504 (_pk)->pkt_pflags &= ~PKT_F_MBUF_MASK; \
509 (_pk)->pkt_pflags &= ~PKT_F_PKT_MASK; \
562 _PKT_COM_INIT(_pk, (_pk)->pkt_pflags); \
568 if (((_p)->pkt_pflags & PKT_F_TX_COMPL_DATA) == 0) { \
569 ASSERT((_p)->pkt_pflags & PKT_F_TX_COMPL_ALLOC); \
570 (_p)->pkt_pflags |= PKT_F_TX_COMPL_DATA; \
585 if (__improbable(((_skp)->pkt_pflags & PKT_F_OPT_DATA) != 0)) { \
587 ASSERT((_skp)->pkt_pflags & PKT_F_OPT_ALLOC); \
[all …]
H A Dpbufpool.c566 ASSERT((kpkt->pkt_pflags & PKT_F_OPT_ALLOC) && in pp_metadata_construct()
569 ASSERT((kpkt->pkt_pflags & PKT_F_FLOW_ALLOC) && in pp_metadata_construct()
572 ASSERT((kpkt->pkt_pflags & PKT_F_TX_COMPL_ALLOC) && in pp_metadata_construct()
575 pflags = kpkt->pkt_pflags; in pp_metadata_construct()
900 !(kpkt->pkt_pflags & PKT_F_OPT_ALLOC)); in pp_metadata_destruct_common()
902 ASSERT(kpkt->pkt_pflags & PKT_F_OPT_ALLOC); in pp_metadata_destruct_common()
908 !(kpkt->pkt_pflags & PKT_F_FLOW_ALLOC)); in pp_metadata_destruct_common()
910 ASSERT(kpkt->pkt_pflags & PKT_F_FLOW_ALLOC); in pp_metadata_destruct_common()
915 !(kpkt->pkt_pflags & PKT_F_TX_COMPL_ALLOC)); in pp_metadata_destruct_common()
917 ASSERT(kpkt->pkt_pflags & PKT_F_TX_COMPL_ALLOC); in pp_metadata_destruct_common()
[all …]
H A Dpacket_copy.c939 pkt->pkt_pflags &= ~PKT_F_COMMON_MASK; in pkt_copy_from_mbuf()
940 pkt->pkt_pflags |= (m->m_pkthdr.pkt_flags & PKT_F_COMMON_MASK); in pkt_copy_from_mbuf()
945 pkt->pkt_pflags |= PKT_F_L4S; in pkt_copy_from_mbuf()
1328 pkt->pkt_pflags &= ~PKT_F_COMMON_MASK; in pkt_copy_multi_buflet_from_mbuf()
1329 pkt->pkt_pflags |= (m->m_pkthdr.pkt_flags & PKT_F_COMMON_MASK); in pkt_copy_multi_buflet_from_mbuf()
1334 pkt->pkt_pflags |= PKT_F_L4S; in pkt_copy_multi_buflet_from_mbuf()
1520 ((pkt->pkt_pflags & PKT_F_TS_VALID) != 0)); in pkt_copy_to_mbuf()
1594 ((pkt->pkt_pflags & PKT_F_TS_VALID) != 0)); in pkt_copy_to_mbuf()
1596 m->m_pkthdr.pkt_flags |= (pkt->pkt_pflags & PKT_F_COMMON_MASK); in pkt_copy_to_mbuf()
1597 if ((pkt->pkt_pflags & PKT_F_START_SEQ) != 0) { in pkt_copy_to_mbuf()
[all …]
H A Dpacket_kern.c402 if ((kpkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) { in kern_packet_get_mbuf()
429 if ((kpkt->pkt_pflags & PKT_F_TX_COMPL_TS_REQ) != 0) { in kern_packet_tx_completion()
714 p2->pkt_pflags = p1->pkt_pflags; in kern_packet_clone_internal()
715 if (p1->pkt_pflags & PKT_F_MBUF_DATA) { in kern_packet_clone_internal()
H A Dos_packet_private.h691 #define pkt_pflags pkt_com.__p_flags macro
/xnu-11215.81.4/bsd/skywalk/nexus/netif/
H A Dnx_netif_util.c101 VERIFY((fpkt->pkt_pflags & PKT_F_MBUF_DATA) != 0 || in fill_vlan_info()
102 (fpkt->pkt_pflags & PKT_F_PKT_DATA) != 0); in fill_vlan_info()
104 if ((fpkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) { in fill_vlan_info()
111 } else if ((fpkt->pkt_pflags & PKT_F_PKT_DATA) != 0) { in fill_vlan_info()
119 if ((pkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) { in fill_vlan_info()
134 VERIFY((pkt->pkt_pflags & PKT_F_PKT_DATA) == 0); in fill_vlan_info()
143 "pkt_pflags 0x%llx\n", fpkt->pkt_pflags); in fill_vlan_info()
244 VERIFY((fpkt->pkt_pflags & PKT_F_TRUNCATED) != 0); in nx_netif_mbuf_to_filter_pkt()
246 VERIFY((fpkt->pkt_pflags & PKT_F_TRUNCATED) == 0); in nx_netif_mbuf_to_filter_pkt()
253 (fpkt->pkt_pflags & PKT_F_MBUF_DATA) == 0); in nx_netif_mbuf_to_filter_pkt()
[all …]
H A Dnx_netif_flow.c115 ASSERT((pkt->pkt_pflags & PKT_F_PKT_DATA) == 0); in netif_flow_get_buf()
116 if ((pkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) { in netif_flow_get_buf()
158 if ((pkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) { in netif_flow_ethertype_info()
587 ASSERT((pkt->pkt_pflags & PKT_F_PKT_DATA) == 0); in nx_netif_demux()
588 plen = ((pkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) ? in nx_netif_demux()
H A Dnx_netif_gso.c371 pkt->pkt_pflags |= pflags; in netif_gso_tcp_segment_mbuf()
H A Dnx_netif_llink.c596 ASSERT((pkt->pkt_pflags & PKT_F_MBUF_DATA) == 0); in netif_qset_enqueue_single()
H A Dnx_netif.c3526 byte_cnt += ((pkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) ?
/xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c185 if (pkt->pkt_pflags & PKT_F_MBUF_DATA) { in fsw_ethernet_resolve()
188 pkt_mflags_restore = (pkt->pkt_pflags & PKT_F_MBUF_MASK); in fsw_ethernet_resolve()
469 pkt->pkt_pflags |= pkt_mflags_restore; in fsw_ethernet_resolve()
530 if ((pkt->pkt_pflags & PKT_F_MBUF_DATA) != 0) { in fsw_ethernet_frame()
576 if (pkt->pkt_pflags & PKT_F_MBUF_DATA) { in fsw_ethernet_demux()
592 pkt->pkt_pflags |= PKT_F_PROMISC; in fsw_ethernet_demux()
H A Dfsw_dp.c449 if (pkt->pkt_pflags & PKT_F_MBUF_DATA) { in _fsw_error35_handler()
451 pkt->pkt_pflags &= ~PKT_F_MBUF_DATA; in _fsw_error35_handler()
536 ((spkt->pkt_pflags & PKT_F_MBUF_DATA) ? in copy_packet_from_dev_log()
604 if ((spkt->pkt_pflags & PKT_F_MBUF_DATA) && in copy_packet_from_dev()
605 (spkt->pkt_pflags & PKT_F_TRUNCATED)) { in copy_packet_from_dev()
641 if (spkt->pkt_pflags & PKT_F_MBUF_DATA) { in copy_packet_from_dev()
712 ASSERT(pkt->pkt_pflags & PKT_F_MBUF_DATA); in rx_prepare_packet_mbuf()
750 if (__improbable(pkt->pkt_pflags & PKT_F_MBUF_DATA)) { in rx_prepare_packet()
1446 if (__improbable(pkt->pkt_pflags & PKT_F_WAKE_PKT)) { in convert_native_pktq_to_mbufs()
1592 compat = ((KPKTQ_FIRST(pktq)->pkt_pflags & PKT_F_MBUF_DATA) != 0); in fsw_host_rx()
[all …]
H A Dfsw_qos.c80 if (pkt->pkt_pflags & PKT_F_MBUF_DATA) { in fsw_qos_set_pkt_dscp()
H A Dfsw_ip_frag.c416 if (pkt->pkt_pflags & PKT_F_MBUF_DATA) { in ipf_pkt2mbuf()
/xnu-11215.81.4/bsd/net/pktsched/
H A Dpktsched.c311 if (p->pkt_pflags & PKT_F_MBUF_DATA) { in pktsched_corrupt_packet()
595 ASSERT(kp->pkt_pflags & PKT_F_FLOW_ADV); in pktsched_alloc_fcentry()
848 return (kp->pkt_pflags & PKT_F_L4S) != 0; in pktsched_is_pkt_l4s()
H A Dpktsched_fq_codel.c264 pkt.pktsched_pkt_kpkt->pkt_pflags |= PKT_F_NEW_FLOW; in fq_getq_flow_kpkt()
/xnu-11215.81.4/bsd/skywalk/mem/
H A Dskmem_test.c442 VERIFY(!(kpkt2->pkt_pflags & PKT_F_MBUF_MASK)); in skmem_buflet_tests()
514 kpkt->pkt_pflags |= PKT_F_MBUF_DATA; in skmem_buflet_tests()
548 VERIFY(kpkt->pkt_pflags & PKT_F_MBUF_DATA); in skmem_buflet_tests()
549 VERIFY(kpkt2->pkt_pflags & PKT_F_MBUF_DATA); in skmem_buflet_tests()
600 kpkt->pkt_pflags |= PKT_F_PKT_DATA; in skmem_buflet_tests()
635 kpkt->pkt_pflags |= PKT_F_PKT_DATA; in skmem_buflet_tests()
/xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c44 #define PKT_IS_MBUF(_pkt) (_pkt->pkt_pflags & PKT_F_MBUF_DATA)
46 (_pkt->pkt_pflags & PKT_F_TRUNCATED))
50 (_pkt->pkt_pflags & PKT_F_WAKE_PKT)))
1734 pkt->pkt_pflags |= PKT_F_WAKE_PKT; in flow_rx_agg_channel()
2177 if ((pkt->pkt_pflags & PKT_F_WAKE_PKT)) { in flow_rx_agg_host()
H A Dflow_classifier.c407 pkt->pkt_pflags |= PKT_F_START_SEQ; in flow_pkt_classify()
H A Dflow_manager.c1271 if (pkt->pkt_pflags & PKT_F_MBUF_DATA) { in rx_flow_demux_match()
/xnu-11215.81.4/bsd/net/
H A Dif_redirect.c364 pkt->pkt_pflags |= PKT_F_FLOW_ID; in redirect_tx_submit()
365 pkt->pkt_pflags &= ~PKT_F_FLOW_ADV; in redirect_tx_submit()
H A Dif_ports_used.c1876 if ((pkt->pkt_pflags & PKT_F_WAKE_PKT) == 0) { in if_ports_used_match_pkt()
H A Ddlil.c5067 if (!(p->cp_kpkt->pkt_pflags & PKT_F_TS_VALID) || in ifnet_enqueue_ifclassq()
5073 p->cp_kpkt->pkt_pflags &= ~PKT_F_TS_VALID; in ifnet_enqueue_ifclassq()
5080 if (!(p->cp_kpkt->pkt_pflags & PKT_F_BACKGROUND)) { in ifnet_enqueue_ifclassq()
5086 if (p->cp_kpkt->pkt_pflags & PKT_F_REALTIME) { in ifnet_enqueue_ifclassq()
H A Dbpf.c3520 if (PKT_ADDR(pkt)->pkt_pflags & PKT_F_TRUNCATED) { in bpf_tap_packet()