Home
last modified time | relevance | path

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

123

/xnu-12377.1.9/bsd/skywalk/nexus/
H A Dnexus_pktq.h79 static inline struct __kern_packet *
110 __nx_pktq_enq(struct nx_pktq *q, struct __kern_packet *p) in __nx_pktq_enq()
120 nx_pktq_safe_enq(struct nx_pktq *q, struct __kern_packet *p) in nx_pktq_safe_enq()
129 nx_pktq_enq(struct nx_pktq *q, struct __kern_packet *p) in nx_pktq_enq()
136 __nx_pktq_enq_multi(struct nx_pktq *q, struct __kern_packet *p_head, in __nx_pktq_enq_multi()
137 struct __kern_packet *p_tail, in __nx_pktq_enq_multi()
149 nx_pktq_safe_enq_multi(struct nx_pktq *q, struct __kern_packet *p_head, in nx_pktq_safe_enq_multi()
150 struct __kern_packet *p_tail, uint32_t cnt, uint32_t size) in nx_pktq_safe_enq_multi()
159 nx_pktq_enq_multi(struct nx_pktq *q, struct __kern_packet *p_head, in nx_pktq_enq_multi()
160 struct __kern_packet *p_tail, uint32_t cnt, uint32_t size) in nx_pktq_enq_multi()
[all …]
/xnu-12377.1.9/bsd/skywalk/nexus/netif/
H A Dnx_netif_util.c34 struct __kern_packet *
52 nx_netif_free_packet(struct __kern_packet *pkt) in nx_netif_free_packet()
59 nx_netif_free_packet_chain(struct __kern_packet *pkt_chain, int *cnt) in nx_netif_free_packet_chain()
74 fill_vlan_info(struct __kern_packet *fpkt) in fill_vlan_info()
77 struct __kern_packet *pkt; in fill_vlan_info()
127 static struct __kern_packet *
131 struct __kern_packet *fpkt = NULL; in nx_netif_mbuf_to_filter_pkt()
237 struct __kern_packet *
242 struct __kern_packet *__single pkt_head = NULL, *pkt; in nx_netif_mbuf_to_filter_pkt_chain()
243 struct __kern_packet **pkt_tailp = &pkt_head; in nx_netif_mbuf_to_filter_pkt_chain()
[all …]
H A Dnx_netif.h49 struct __kern_packet *, uint32_t);
86 struct __kern_packet *, uint32_t, struct netif_flow **);
89 typedef int netif_flow_info_t(struct __kern_packet *,
581 struct netif_filter *, struct __kern_packet *, uint32_t);
583 errno_t (*)(void *, struct __kern_packet *, uint32_t),
596 struct __kern_packet *, uint32_t);
598 struct __kern_packet *, uint32_t);
609 kern_packet_svc_class_t, struct __kern_packet *);
649 struct __kern_packet *, struct __kern_packet **, struct nexus_pkt_stats *,
659 extern void nx_netif_snoop(struct nx_netif *, struct __kern_packet *,
[all …]
H A Dnx_netif_filter_native.c34 struct __kern_packet *pkt_chain) in nx_netif_filter_tx_pkt_enqueue()
36 struct __kern_packet *fpkt_chain; in nx_netif_filter_tx_pkt_enqueue()
60 static struct __kern_packet *
64 struct __kern_packet *p = NULL; in get_next_pkt()
76 static struct __kern_packet *
83 struct __kern_packet *p, *__single p_head = NULL; in nx_netif_filter_tx_processed_pkt_dequeue()
84 struct __kern_packet **p_tailp = &p_head; in nx_netif_filter_tx_processed_pkt_dequeue()
114 nifna, uint32_t, cnt, uint32_t, bytes, struct __kern_packet *, in nx_netif_filter_tx_processed_pkt_dequeue()
121 kern_packet_svc_class_t sc, struct __kern_packet *p_chain) in nx_netif_filter_tx_processed_pkt_enqueue()
125 struct __kern_packet *__single p_tail = NULL; in nx_netif_filter_tx_processed_pkt_enqueue()
[all …]
H A Dnx_netif_flow.c77 netif_flow_get_buf_pkt(struct __kern_packet *pkt, size_t minlen, in netif_flow_get_buf_pkt()
112 netif_flow_get_buf(struct __kern_packet *pkt, size_t minlen, in netif_flow_get_buf()
124 netif_flow_ethertype_info(struct __kern_packet *pkt, in netif_flow_ethertype_info()
138 DTRACE_SKYWALK2(get__buf__failed, struct __kern_packet *, in netif_flow_ethertype_info()
151 DTRACE_SKYWALK2(hw__vlan, struct __kern_packet *, pkt, in netif_flow_ethertype_info()
156 DTRACE_SKYWALK2(encap__vlan, struct __kern_packet *, pkt, in netif_flow_ethertype_info()
169 struct __kern_packet *, pkt, in netif_flow_ethertype_info()
190 struct __kern_packet *, pkt, uint16_t, tag); in netif_flow_ethertype_info()
193 DTRACE_SKYWALK4(extracted__info, struct __kern_packet *, pkt, in netif_flow_ethertype_info()
207 netif_flow_ipv6_ula_info(struct __kern_packet *pkt, in netif_flow_ipv6_ula_info()
[all …]
H A Dnx_netif_vp.c92 netif_vp_dump_packet(struct __kern_packet *pkt) in netif_vp_dump_packet()
100 DTRACE_SKYWALK2(dump__packet, struct __kern_packet *, in netif_vp_dump_packet()
106 kern_channel_slot_t slot, struct __kern_packet *pkt) in netif_copy_or_attach_pkt()
109 struct __kern_packet *dpkt; in netif_copy_or_attach_pkt()
114 struct __kern_packet *, pkt); in netif_copy_or_attach_pkt()
120 struct __kern_packet *, pkt); in netif_copy_or_attach_pkt()
135 netif_deliver_pkt(struct nexus_adapter *na, struct __kern_packet *pkt_chain, in netif_deliver_pkt()
140 struct __kern_packet *pkt = pkt_chain, *next; in netif_deliver_pkt()
183 struct __kern_channel_ring *, ring, struct __kern_packet *, pkt, in netif_deliver_pkt()
213 uint32_t flags, struct __kern_packet **chain) in netif_hwna_rx_get_pkts()
[all …]
H A Dnx_netif_filter_vp.c61 netif_filter_dump_packet(struct __kern_packet *pkt) in netif_filter_dump_packet()
69 DTRACE_SKYWALK2(dump__packet, struct __kern_packet *, in netif_filter_dump_packet()
76 struct __kern_packet *pkt_chain, uint32_t flags) in netif_filter_deliver()
79 struct __kern_packet *pkt = pkt_chain, *next; in netif_filter_deliver()
125 struct __kern_channel_ring *, ring, struct __kern_packet *, pkt, in netif_filter_deliver()
147 netif_filter_rx_cb(void *arg, struct __kern_packet *pkt_chain, uint32_t flags) in netif_filter_rx_cb()
156 netif_filter_tx_cb(void *arg, struct __kern_packet *pkt_chain, uint32_t flags) in netif_filter_tx_cb()
165 netif_filter_cb(void *arg, struct __kern_packet *pkt_chain, uint32_t flags) in netif_filter_cb()
366 struct __kern_packet *fp_head;
367 struct __kern_packet **fp_tailp;
[all …]
H A Dnx_netif.c3508 struct __kern_packet *pkt)
3521 struct __kern_packet *pkt_chain, struct __kern_packet **fpkt_chain,
3522 struct __kern_packet **passthrough_chain)
3526 struct __kern_packet *pkt = pkt_chain, *next, *fpkt;
3527 struct __kern_packet *__single fpkt_head = NULL;
3528 struct __kern_packet *__single passthrough_head = NULL;
3529 struct __kern_packet **fpkt_tailp = &fpkt_head;
3530 struct __kern_packet **passthrough_tailp = &passthrough_head;
3563 int, fcnt, int, pcnt, int, dcnt, struct __kern_packet *,
3564 fpkt_head, struct __kern_packet *, passthrough_head);
[all …]
H A Dnx_netif_gso.c107 struct __kern_packet *pkt, uint8_t *__bidi_indexable baddr);
187 netif_gso_send(struct ifnet *ifp, struct __kern_packet *head, in netif_gso_send()
188 struct __kern_packet *tail, uint32_t count, uint32_t bytes) in netif_gso_send()
212 struct __kern_packet *pkt = head, *next; in netif_gso_send()
273 struct __kern_packet *pkt_chain_head, *pkt_chain_tail; in netif_gso_tcp_segment_mbuf()
319 struct __kern_packet *pkt; in netif_gso_tcp_segment_mbuf()
426 struct __kern_packet *pkt, uint8_t *__bidi_indexable baddr) in netif_gso_ipv4_tcp_update()
498 struct __kern_packet *pkt, uint8_t *__bidi_indexable baddr) in netif_gso_ipv6_tcp_update()
H A Dnx_netif_host.c41 static inline struct __kern_packet*
443 struct __kern_packet *pkt_chain_head, *pkt_chain_tail; in nx_netif_host_output()
466 struct __kern_packet *kpkt; in nx_netif_host_output()
659 nx_netif_mbuf_to_kpkt_log(struct __kern_packet *kpkt, uint32_t len, in nx_netif_mbuf_to_kpkt_log()
675 static inline struct __kern_packet *
684 struct __kern_packet *kpkt; in nx_netif_mbuf_to_kpkt()
/xnu-12377.1.9/bsd/skywalk/packet/
H A Dpacket_queue.h40 struct __kern_packet *kq_first; /* first packet */ \
41 struct __kern_packet **kq_last; /* addr of last next packet */ \
93 struct __kern_packet *_n = (p); \
117 struct __kern_packet *_p = KPKTQ_FIRST(q); \
152 __container_of((head)->kq_last, struct __kern_packet, pkt_nextpkt))
H A Dpacket_var.h352 struct __kern_packet { struct
371 struct __kern_packet *pkt_nextpkt; argument
380 struct __kern_packet *pkt_pkt; argument
472 #define _KERN_PACKET_SIZE(n) sizeof(struct __kern_packet) argument
496 …static_assert(offsetof(struct __kern_packet, pkt_mbuf) == offsetof(struct __kern_packet, pkt_pkt))…
679 #define SK_PTR_ADDR_KPKT(_ph) __unsafe_forge_single(struct __kern_packet *, (_ph))
680 #define SK_PTR_KPKT(_pa) ((struct __kern_packet *)(void *)(_pa))
695 struct __kern_packet *_p = \
696 (struct __kern_packet *)(void *)(_md); \
704 struct __kern_packet *_p = \
[all …]
H A Dpbufpool_var.h37 struct __kern_packet;
252 extern void pp_free_packet_single(struct __kern_packet *);
253 extern void pp_drop_packet_single(struct __kern_packet *, struct ifnet *, uint16_t,
255 extern void pp_free_packet_chain(struct __kern_packet *, int *);
H A Dpacket_kern.c361 struct __kern_packet *kpkt = SK_PTR_ADDR_KPKT(pkt); in kern_packet_get_mbuf()
379 struct __kern_packet *kpkt = SK_PTR_ADDR_KPKT(ph); in kern_packet_tx_completion()
561 struct __kern_packet *p1 = SK_PTR_ADDR_KPKT(ph1); in kern_packet_clone_internal()
562 struct __kern_packet *p2 = NULL; in kern_packet_clone_internal()
782 struct __kern_packet *p, *next; in kern_packet_get_next()
792 struct __kern_packet *p1, *p2; in kern_packet_set_next()
804 struct __kern_packet *p; in kern_packet_set_chain_counts()
815 struct __kern_packet *p; in kern_packet_get_chain_counts()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw_var.h136 struct __kern_packet *pkt);
140 struct __kern_packet *pkt);
187 struct __kern_packet *pkt);
213 struct __kern_packet *pkt);
216 struct __kern_packet *pkt);
217 extern sa_family_t fsw_ip_demux(struct nx_flowswitch *, struct __kern_packet *);
224 struct __kern_packet **pkt, struct ip *ip4, uint16_t *nfrags,
227 struct __kern_packet **pkt, struct ip6_hdr *ip6, struct ip6_frag *ip6f,
H A Dfsw_dp.c267 static int copy_packet_from_dev(struct nx_flowswitch *, struct __kern_packet *,
268 struct __kern_packet *);
326 struct __kern_packet *kpkt = KPKTQ_FIRST(pktq); \
327 struct __kern_packet *next_pkt; \
370 struct __kern_packet *next_pkt; \
394 struct __kern_packet *pkt; in fsw_snoop()
445 _fsw_error35_handler(int step, struct flow_route *fr, struct __kern_packet *pkt, in _fsw_error35_handler()
520 validate_pkt_len(struct __kern_packet *spkt, kern_packet_t dph, in validate_pkt_len()
546 copy_packet_from_dev_log(struct __kern_packet *spkt, in copy_packet_from_dev_log()
547 struct __kern_packet *dpkt, struct proc *p) in copy_packet_from_dev_log()
[all …]
H A Dfsw_ip_frag.c106 struct __kern_packet *ipf_pkt;
159 static int ipf_process(struct fsw_ip_frag_mgr *, struct __kern_packet **,
183 static struct mbuf *ipf_pkt2mbuf(struct fsw_ip_frag_mgr *, struct __kern_packet *);
185 void ipf_icmp_param_err(struct fsw_ip_frag_mgr *, struct __kern_packet *pkt,
278 fsw_ip_frag_reass_v4(struct fsw_ip_frag_mgr *mgr, struct __kern_packet **pkt, in fsw_ip_frag_reass_v4()
307 struct __kern_packet *p = *pkt; in fsw_ip_frag_reass_v4()
341 fsw_ip_frag_reass_v6(struct fsw_ip_frag_mgr *mgr, struct __kern_packet **pkt, in fsw_ip_frag_reass_v6()
390 struct __kern_packet *p = *pkt; in fsw_ip_frag_reass_v6()
410 struct __kern_packet *p = *pkt; in fsw_ip_frag_reass_v6()
421 ipf_pkt2mbuf(struct fsw_ip_frag_mgr *mgr, struct __kern_packet *pkt) in ipf_pkt2mbuf()
[all …]
H A Dnx_flowswitch.h245 struct __kern_packet *);
247 struct __kern_packet *);
249 struct __kern_packet *);
372 extern void fsw_devna_rx(struct nexus_adapter *, struct __kern_packet *,
H A Dfsw_ip.c33 sa_family_t fsw_ip_demux(struct nx_flowswitch *, struct __kern_packet *);
47 fsw_ip_demux(struct nx_flowswitch *fsw, struct __kern_packet *pkt) in fsw_ip_demux()
H A Dfsw_cellular.c34 struct __kern_packet *);
48 fsw_cellular_demux(struct nx_flowswitch *fsw, struct __kern_packet *pkt) in fsw_cellular_demux()
H A Dfsw_ethernet.c48 struct __kern_packet *);
50 struct __kern_packet *);
52 struct __kern_packet *);
102 struct __kern_packet *pkt) in fsw_ethernet_resolve()
493 struct __kern_packet *pkt) in fsw_ethernet_frame()
550 fsw_ethernet_demux(struct nx_flowswitch *fsw, struct __kern_packet *pkt) in fsw_ethernet_demux()
H A Dfsw_qos.c64 fsw_qos_set_pkt_dscp(struct __kern_packet *pkt, uint8_t dscp) in fsw_qos_set_pkt_dscp()
95 struct __kern_packet *pkt) in fsw_qos_mark()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c70 struct __kern_packet *_fa_spkt; /* super pkt */
216 _pkt_agg_log(struct __kern_packet *pkt, struct proc *p, bool is_input) in _pkt_agg_log()
317 mbuf_csum(struct __kern_packet *pkt, struct mbuf *m, bool verify_l3, in mbuf_csum()
435 _copy_data_sum_dbuf(struct __kern_packet *spkt, uint16_t soff, uint16_t plen, in _copy_data_sum_dbuf()
508 copy_pkt_csum_packed(struct __kern_packet *spkt, uint32_t plen, in copy_pkt_csum_packed()
692 copy_pkt_csum(struct __kern_packet *pkt, uint32_t plen, _dbuf_array_t *dbuf, in copy_pkt_csum()
861 struct __kern_packet *pkt) in flow_agg_init_common()
899 struct mbuf *smbuf, struct __kern_packet *pkt) in flow_agg_init_smbuf()
918 struct __kern_packet *spkt, struct __kern_packet *pkt) in flow_agg_init_spkt()
962 can_agg_fastpath(struct flow_agg *fa, struct __kern_packet *pkt, in can_agg_fastpath()
[all …]
H A Dflow_track.c51 struct flow_track *, struct __kern_packet *, bool);
53 struct flow_track *, struct __kern_packet *, bool);
56 flow_track_tcp_get_wscale(struct flow_track *s, struct __kern_packet *pkt) in flow_track_tcp_get_wscale()
98 struct flow_track *dst, struct __kern_packet *pkt) in flow_track_tcp_init()
245 struct flow_track *dst, struct __kern_packet *pkt, bool input) in flow_track_tcp()
623 struct flow_track *dst, struct __kern_packet *pkt) in flow_track_udp_init()
642 struct flow_track *dst, struct __kern_packet *pkt, bool input) in flow_track_udp()
681 flow_pkt_track(struct flow_entry *fe, struct __kern_packet *pkt, bool in) in flow_pkt_track()
756 flow_track_abort_tcp(struct flow_entry *fe, struct __kern_packet *in_pkt, in flow_track_abort_tcp()
757 struct __kern_packet *rst_pkt) in flow_track_abort_tcp()
/xnu-12377.1.9/bsd/net/pktsched/
H A Dpktsched.c339 struct __kern_packet *p1; in pktsched_clone_pkt()
365 p1 = (struct __kern_packet *)pkt1->pktsched_pkt_kpkt; in pktsched_clone_pkt()
399 struct __kern_packet *p = NULL; in pktsched_corrupt_packet()
454 struct __kern_packet *kpkt; in pktsched_free_pkt()
507 struct __kern_packet *kpkt; in pktsched_drop_pkt()
607 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_get_pkt_vars()
677 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_alloc_fcentry()
801 pktsched_kpkt_mark_ecn(struct __kern_packet *kpkt) in pktsched_kpkt_mark_ecn()
903 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_is_pkt_l4s()

123