| /xnu-8796.141.3/bsd/skywalk/nexus/ |
| H A D | nexus_pktq.h | 79 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-8796.141.3/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_util.c | 34 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() 82 DTRACE_SKYWALK2(bad__len, struct __kern_packet *, fpkt, in fill_vlan_info() 95 struct __kern_packet *pkt; in fill_vlan_info() 151 static struct __kern_packet * 155 struct __kern_packet *fpkt = NULL; in nx_netif_mbuf_to_filter_pkt() 261 struct __kern_packet * 266 struct __kern_packet *pkt_head = NULL, *pkt; in nx_netif_mbuf_to_filter_pkt_chain() [all …]
|
| H A D | nx_netif.h | 49 struct __kern_packet *, uint32_t); 86 struct __kern_packet *, uint32_t, struct netif_flow **); 89 typedef int netif_flow_info_t(struct __kern_packet *, 571 struct netif_filter *, struct __kern_packet *, uint32_t); 573 errno_t (*)(void *, struct __kern_packet *, uint32_t), 586 struct __kern_packet *, uint32_t); 588 struct __kern_packet *, uint32_t); 599 kern_packet_svc_class_t, struct __kern_packet *); 639 struct __kern_packet *, struct __kern_packet **, uint32_t); 648 extern void nx_netif_snoop(struct nx_netif *, struct __kern_packet *, [all …]
|
| H A D | nx_netif_flow.c | 77 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 D | nx_netif_filter_native.c | 34 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, *p_head = NULL, **p_tailp = &p_head; in nx_netif_filter_tx_processed_pkt_dequeue() 113 nifna, uint32_t, cnt, uint32_t, bytes, struct __kern_packet *, in nx_netif_filter_tx_processed_pkt_dequeue() 120 kern_packet_svc_class_t sc, struct __kern_packet *p_chain) in nx_netif_filter_tx_processed_pkt_enqueue() 124 struct __kern_packet *p_tail = NULL; in nx_netif_filter_tx_processed_pkt_enqueue() 144 struct __kern_packet *, p_chain); in nx_netif_filter_tx_processed_pkt_enqueue() [all …]
|
| H A D | nx_netif_vp.c | 88 netif_vp_dump_packet(struct __kern_packet *pkt) in netif_vp_dump_packet() 96 DTRACE_SKYWALK2(dump__packet, struct __kern_packet *, in netif_vp_dump_packet() 102 kern_channel_slot_t slot, struct __kern_packet *pkt) in netif_copy_or_attach_pkt() 105 struct __kern_packet *dpkt; in netif_copy_or_attach_pkt() 110 struct __kern_packet *, pkt); in netif_copy_or_attach_pkt() 116 struct __kern_packet *, pkt); in netif_copy_or_attach_pkt() 131 netif_deliver_pkt(struct nexus_adapter *na, struct __kern_packet *pkt_chain, in netif_deliver_pkt() 136 struct __kern_packet *pkt = pkt_chain, *next; in netif_deliver_pkt() 179 struct __kern_channel_ring *, ring, struct __kern_packet *, pkt, in netif_deliver_pkt() 209 uint32_t flags, struct __kern_packet **chain) in netif_hwna_rx_get_pkts() [all …]
|
| H A D | nx_netif_filter_vp.c | 61 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() 365 struct __kern_packet *fp_head; 366 struct __kern_packet **fp_tailp; [all …]
|
| H A D | nx_netif_gso.c | 107 struct __kern_packet *pkt, uint8_t *baddr); 186 netif_gso_send(struct ifnet *ifp, struct __kern_packet *head, in netif_gso_send() 187 struct __kern_packet *tail, uint32_t count, uint32_t bytes) in netif_gso_send() 218 struct __kern_packet *pkt = head, *next; in netif_gso_send() 278 struct __kern_packet *pkt_chain_head, *pkt_chain_tail; in netif_gso_tcp_segment_mbuf() 316 struct __kern_packet *pkt; in netif_gso_tcp_segment_mbuf() 411 struct __kern_packet *pkt, uint8_t *baddr) in netif_gso_ipv4_tcp_update() 458 struct __kern_packet *pkt, uint8_t *baddr) in netif_gso_ipv6_tcp_update()
|
| H A D | nx_netif.c | 3400 struct __kern_packet *pkt) 3413 struct __kern_packet *pkt_chain, struct __kern_packet **fpkt_chain, 3414 struct __kern_packet **passthrough_chain) 3418 struct __kern_packet *pkt = pkt_chain, *next, *fpkt; 3419 struct __kern_packet *fpkt_head = NULL, *passthrough_head = NULL; 3420 struct __kern_packet **fpkt_tailp = &fpkt_head; 3421 struct __kern_packet **passthrough_tailp = &passthrough_head; 3454 int, fcnt, int, pcnt, int, dcnt, struct __kern_packet *, 3455 fpkt_head, struct __kern_packet *, passthrough_head); 3465 struct __kern_packet *pkt_chain, struct nexus_pkt_stats *stats) [all …]
|
| /xnu-8796.141.3/bsd/skywalk/packet/ |
| H A D | packet_queue.h | 40 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 ((struct __kern_packet *)(void *)((char *)(head)->kq_last - \ 153 (size_t)(&KPKTQ_NEXT((struct __kern_packet *)0)))))
|
| H A D | packet_var.h | 386 struct __kern_packet { struct 405 struct __kern_packet *pkt_nextpkt; argument 414 struct __kern_packet *pkt_pkt; argument 505 #define _KERN_PACKET_SIZE(n) sizeof(struct __kern_packet) argument 529 _CASSERT(offsetof(struct __kern_packet, pkt_mbuf) == \ 530 offsetof(struct __kern_packet, pkt_pkt)); \ 713 #define SK_PTR_ADDR_KPKT(_ph) ((struct __kern_packet *)SK_PTR_ADDR(_ph)) 714 #define SK_PTR_KPKT(_pa) ((struct __kern_packet *)(void *)(_pa)) 732 struct __kern_packet *_p = \ 733 (struct __kern_packet *)(void *)(_md); \ [all …]
|
| H A D | pbufpool_var.h | 36 struct __kern_packet; 255 extern void pp_free_packet_single(struct __kern_packet *); 256 extern void pp_free_packet_chain(struct __kern_packet *, int *);
|
| H A D | packet_kern.c | 382 struct __kern_packet *kpkt = SK_PTR_ADDR_KPKT(pkt); in kern_packet_get_mbuf() 400 struct __kern_packet *kpkt = SK_PTR_ADDR_KPKT(ph); in kern_packet_tx_completion() 566 struct __kern_packet *p1 = SK_PTR_ADDR_KPKT(ph1); in kern_packet_clone_internal() 567 struct __kern_packet *p2 = NULL; in kern_packet_clone_internal() 781 struct __kern_packet *p, *next; in kern_packet_get_next() 791 struct __kern_packet *p1, *p2; in kern_packet_set_next() 803 struct __kern_packet *p; in kern_packet_set_chain_counts() 814 struct __kern_packet *p; in kern_packet_get_chain_counts()
|
| /xnu-8796.141.3/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_var.h | 138 struct __kern_packet *pkt); 142 struct __kern_packet *pkt); 185 struct __kern_packet *pkt); 211 struct __kern_packet *pkt); 214 struct __kern_packet *pkt); 215 extern sa_family_t fsw_ip_demux(struct nx_flowswitch *, struct __kern_packet *); 222 struct __kern_packet **pkt, struct ip *ip4, uint16_t *nfrags, 225 struct __kern_packet **pkt, struct ip6_hdr *ip6, struct ip6_frag *ip6f,
|
| H A D | fsw_dp.c | 240 static int copy_packet_from_dev(struct nx_flowswitch *, struct __kern_packet *, 241 struct __kern_packet *); 308 struct __kern_packet *pkt; in fsw_snoop() 361 _fsw_error35_handler(int step, struct flow_route *fr, struct __kern_packet *pkt, in _fsw_error35_handler() 436 validate_pkt_len(struct __kern_packet *spkt, kern_packet_t dph, in validate_pkt_len() 462 copy_packet_from_dev_log(struct __kern_packet *spkt, in copy_packet_from_dev_log() 463 struct __kern_packet *dpkt, struct proc *p) in copy_packet_from_dev_log() 483 copy_packet_from_dev(struct nx_flowswitch *fsw, struct __kern_packet *spkt, in copy_packet_from_dev() 484 struct __kern_packet *dpkt) in copy_packet_from_dev() 584 static struct __kern_packet * [all …]
|
| H A D | fsw_ip_frag.c | 105 struct __kern_packet *ipf_pkt; 158 static int ipf_process(struct fsw_ip_frag_mgr *, struct __kern_packet **, 182 void ipf_icmp_param_err(struct fsw_ip_frag_mgr *, struct __kern_packet *pkt, 281 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() 340 fsw_ip_frag_reass_v6(struct fsw_ip_frag_mgr *mgr, struct __kern_packet **pkt, in fsw_ip_frag_reass_v6() 385 struct __kern_packet *p = *pkt; in fsw_ip_frag_reass_v6() 395 ipf_pkt2mbuf(struct fsw_ip_frag_mgr *mgr, struct __kern_packet *pkt) in ipf_pkt2mbuf() 461 ipf_icmp_param_err(struct fsw_ip_frag_mgr *mgr, struct __kern_packet *pkt, in ipf_icmp_param_err() 482 struct __kern_packet *pkt = f->ipf_pkt; in ipf_icmp_timeout_err() [all …]
|
| H A D | nx_flowswitch.h | 238 struct __kern_packet *); 240 struct __kern_packet *); 242 struct __kern_packet *); 356 extern void fsw_devna_rx(struct nexus_adapter *, struct __kern_packet *,
|
| H A D | fsw_cellular.c | 34 struct __kern_packet *); 48 fsw_cellular_demux(struct nx_flowswitch *fsw, struct __kern_packet *pkt) in fsw_cellular_demux()
|
| H A D | fsw_ip.c | 33 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 D | fsw_ethernet.c | 46 struct __kern_packet *); 48 struct __kern_packet *); 50 struct __kern_packet *); 100 struct __kern_packet *pkt) in fsw_ethernet_resolve() 480 struct __kern_packet *pkt) in fsw_ethernet_frame() 536 fsw_ethernet_demux(struct nx_flowswitch *fsw, struct __kern_packet *pkt) in fsw_ethernet_demux()
|
| H A D | fsw_qos.c | 64 fsw_qos_set_pkt_dscp(struct __kern_packet *pkt, uint8_t dscp) in fsw_qos_set_pkt_dscp() 93 struct __kern_packet *pkt) in fsw_qos_mark()
|
| /xnu-8796.141.3/bsd/net/pktsched/ |
| H A D | pktsched.c | 237 struct __kern_packet *p1; in pktsched_clone_pkt() 263 p1 = (struct __kern_packet *)pkt1->pktsched_pkt_kpkt; in pktsched_clone_pkt() 297 struct __kern_packet *p = NULL; in pktsched_corrupt_packet() 352 struct __kern_packet *kpkt; in pktsched_free_pkt() 446 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_get_pkt_vars() 516 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_alloc_fcentry() 567 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_get_pkt_sfb_vars() 680 pktsched_kpkt_mark_ecn(struct __kern_packet *kpkt) in pktsched_kpkt_mark_ecn() 780 struct __kern_packet *kp = pkt->pktsched_pkt_kpkt; in pktsched_is_pkt_l4s()
|
| /xnu-8796.141.3/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_agg.c | 70 struct __kern_packet *_fa_spkt; /* super pkt */ 207 _pkt_agg_log(struct __kern_packet *pkt, struct proc *p, bool is_input) in _pkt_agg_log() 308 mbuf_csum(struct __kern_packet *pkt, struct mbuf *m, bool verify_l3, in mbuf_csum() 426 _copy_data_sum_dbuf(struct __kern_packet *spkt, uint16_t soff, uint16_t plen, in _copy_data_sum_dbuf() 500 copy_pkt_csum_packed(struct __kern_packet *spkt, uint32_t plen, in copy_pkt_csum_packed() 683 copy_pkt_csum(struct __kern_packet *pkt, uint32_t plen, _dbuf_array_t *dbuf, in copy_pkt_csum() 851 struct __kern_packet *pkt) in flow_agg_init_common() 889 struct mbuf *smbuf, struct __kern_packet *pkt) in flow_agg_init_smbuf() 908 struct __kern_packet *spkt, struct __kern_packet *pkt) in flow_agg_init_spkt() 943 can_agg_fastpath(struct flow_agg *fa, struct __kern_packet *pkt, in can_agg_fastpath() [all …]
|
| H A D | flow_track.c | 51 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() 97 struct flow_track *dst, struct __kern_packet *pkt) in flow_track_tcp_init() 244 struct flow_track *dst, struct __kern_packet *pkt, bool input) in flow_track_tcp() 603 struct flow_track *dst, struct __kern_packet *pkt) in flow_track_udp_init() 622 struct flow_track *dst, struct __kern_packet *pkt, bool input) in flow_track_udp() 661 flow_pkt_track(struct flow_entry *fe, struct __kern_packet *pkt, bool in) in flow_pkt_track() 736 flow_track_abort_tcp(struct flow_entry *fe, struct __kern_packet *in_pkt, in flow_track_abort_tcp() 737 struct __kern_packet *rst_pkt) in flow_track_abort_tcp()
|
| H A D | flow_var.h | 753 flow_pkt2key(struct __kern_packet *pkt, boolean_t input, in flow_pkt2key() 899 struct __kern_packet *); 974 extern bool rx_flow_demux_match(struct nx_flowswitch *, struct flow_entry *, struct __kern_packet *… 976 struct flow_entry *, struct __kern_packet *); 984 extern int flow_pkt_classify(struct __kern_packet *pkt, struct ifnet *ifp, 989 extern int flow_pkt_track(struct flow_entry *, struct __kern_packet *, bool); 992 struct __kern_packet *in_pkt, struct __kern_packet *rst_pkt);
|