Home
last modified time | relevance | path

Searched refs:pkt_headroom (Results 1 – 22 of 22) sorted by relevance

/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/
H A Dfsw_cellular.c58 baddr += pkt->pkt_headroom; in fsw_cellular_demux()
63 (pkt->pkt_headroom + sizeof(*iph)) <= bdlim && in fsw_cellular_demux()
67 (pkt->pkt_headroom + sizeof(*ip6h) <= bdlim) && in fsw_cellular_demux()
71 SK_ERR("unrecognized pkt, hr %u len %u", pkt->pkt_headroom, in fsw_cellular_demux()
H A Dfsw_ip.c57 baddr += pkt->pkt_headroom; in fsw_ip_demux()
62 (pkt->pkt_headroom + sizeof(*iph)) <= bdlim && in fsw_ip_demux()
66 (pkt->pkt_headroom + sizeof(*ip6h) <= bdlim) && in fsw_ip_demux()
70 SK_ERR("unrecognized pkt, hr %u len %u", pkt->pkt_headroom, in fsw_ip_demux()
H A Dfsw_ethernet.c504 ASSERT(pkt->pkt_headroom >= FSW_ETHER_LEN_PADDED); in fsw_ethernet_frame()
509 (uint64_t *)(void *)(pkt_buf + pkt->pkt_headroom - FSW_ETHER_LEN_PADDED)); in fsw_ethernet_frame()
511 pkt->pkt_headroom -= ETHER_HDR_LEN; in fsw_ethernet_frame()
527 METADATA_ADJUST_LEN(pkt, ETHER_HDR_LEN, pkt->pkt_headroom); in fsw_ethernet_frame()
541 baddr += pkt->pkt_headroom; in fsw_ethernet_demux()
550 if (__improbable(pkt->pkt_headroom + sizeof(*eh) > bdlim)) { in fsw_ethernet_demux()
H A Dfsw_dp.c486 dpkt->pkt_length, (uint32_t)dpkt->pkt_headroom, in copy_packet_from_dev_log()
532 dpkt->pkt_headroom = 0; in copy_packet_from_dev()
565 (spkt->pkt_headroom + spkt->pkt_l2_len), dlen, do_cksum_rx, in copy_packet_from_dev()
620 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in rx_process_ip_frag()
666 pkt->pkt_headroom = 0; in rx_prepare_packet_mbuf()
676 pkt->pkt_headroom, pkt->pkt_mbuf, 0, in rx_prepare_packet_mbuf()
1337 pkt->pkt_headroom, m, 0, len, do_cksum_rx, in convert_native_pktq_to_mbufs()
2416 dpkt->pkt_headroom = fsw->fsw_frame_headroom; in dp_copy_to_dev_mbuf()
2433 uint32_t copy_len = MIN(spkt->pkt_length, bdlim - dpkt->pkt_headroom); in dp_copy_to_dev_mbuf()
2434 fsw->fsw_pkt_copy_from_pkt(NR_TX, dph, dpkt->pkt_headroom, in dp_copy_to_dev_mbuf()
[all …]
H A Dfsw_classq.c83 METADATA_TYPE(pkt), METADATA_SUBTYPE(pkt)), pkt->pkt_headroom, in fsw_classq_kpkt_to_mbuf()
H A Dfsw_ip_frag.c414 buf += (pkt->pkt_headroom + pkt->pkt_l2_len); in ipf_pkt2mbuf()
/xnu-10063.141.1/bsd/skywalk/nexus/netif/
H A Dnx_netif_util.c87 buf += fpkt->pkt_headroom; in fill_vlan_info()
388 fpkt->pkt_headroom = off; in nx_netif_pkt_to_filter_pkt()
423 pkt->pkt_headroom, plen, FALSE, 0, 0, FALSE); in nx_netif_pkt_to_filter_pkt()
564 nif->nif_pkt_copy_to_mbuf(type, ph, pkt->pkt_headroom, in nx_netif_pkt_to_mbuf()
662 dpkt->pkt_headroom = off; in nx_netif_pkt_to_pkt()
678 pkt->pkt_headroom, len, FALSE, 0, 0, FALSE); in nx_netif_pkt_to_pkt()
H A Dnx_netif_gso.c353 pkt->pkt_headroom = tx_headroom; in netif_gso_tcp_segment_mbuf()
421 state->hdr.ip = (struct ip *)(void *)(baddr + pkt->pkt_headroom + in netif_gso_ipv4_tcp_update()
488 state->hdr.ip6 = (struct ip6_hdr *)(baddr + pkt->pkt_headroom + in netif_gso_ipv6_tcp_update()
H A Dnx_netif_host.c570 kpkt->pkt_headroom, kpkt->pkt_l2_len, poff); in nx_netif_mbuf_to_kpkt_log()
624 kpkt->pkt_headroom = (uint8_t)poff; in nx_netif_mbuf_to_kpkt()
H A Dnx_netif_filter_vp.c67 baddr += pkt->pkt_headroom; in netif_filter_dump_packet()
H A Dnx_netif_flow.c86 baddr += pkt->pkt_headroom; in netif_flow_get_buf_pkt()
H A Dnx_netif_vp.c94 baddr += pkt->pkt_headroom; in netif_vp_dump_packet()
H A Dnx_netif_compat.c1909 nif->nif_pkt_copy_to_mbuf(NR_TX, ph, pkt->pkt_headroom, m, 0, len, in nx_netif_compat_xmit_frame()
/xnu-10063.141.1/bsd/skywalk/mem/
H A Dskmem_test.c939 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 1; in skmem_packet_tests()
954 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 1; in skmem_packet_tests()
969 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 0; in skmem_packet_tests()
984 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 1; in skmem_packet_tests()
998 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 1; in skmem_packet_tests()
1012 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 0; in skmem_packet_tests()
1029 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 0; in skmem_packet_tests()
1126 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 0; in skmem_packet_tests()
1143 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 1; in skmem_packet_tests()
1160 SK_PTR_ADDR_KPKT(ph_mb)->pkt_headroom = 1; in skmem_packet_tests()
[all …]
/xnu-10063.141.1/bsd/skywalk/packet/
H A Dpacket_common.h146 PKT_ADDR(ph)->pkt_headroom = headroom; in __packet_set_headroom()
157 return PKT_ADDR(ph)->pkt_headroom; in __packet_get_headroom()
1348 PKT_ADDR(ph)->pkt_headroom = (uint8_t)bdoff0; in __packet_finalize()
1357 if (__improbable((PKT_ADDR(ph)->pkt_headroom + in __packet_finalize()
1369 if (__improbable((PKT_ADDR(ph)->pkt_headroom != 0) || in __packet_finalize()
1457 pkt->pkt_headroom = headroom; in __packet_initialize_with_mbufchain()
1509 if (__improbable((pkt->pkt_headroom != bdoff) || in __packet_finalize_with_mbuf()
1510 (pkt->pkt_headroom >= bdlim))) { in __packet_finalize_with_mbuf()
1514 if (__improbable((pkt->pkt_headroom + in __packet_finalize_with_mbuf()
1525 if (__improbable((pkt->pkt_headroom != 0) || (bdoff != 0) || in __packet_finalize_with_mbuf()
H A Dos_packet_private.h673 #define pkt_headroom pkt_com.__p_headroom macro
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c40 pkt_buf + pkt->pkt_headroom, pkt->pkt_length, \
189 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in flow_pkt_classify()
H A Dflow_agg.c510 uint16_t soff = spkt->pkt_headroom + spkt->pkt_l2_len; in copy_pkt_csum_packed()
696 uint16_t soff = pkt->pkt_headroom + pkt->pkt_l2_len; in copy_pkt_csum()
912 VERIFY(spkt->pkt_headroom == 0 && spkt->pkt_l2_len == 0); in flow_agg_init_spkt()
1294 (fa->fa_spkt->pkt_headroom == 0 && fa->fa_spkt->pkt_l2_len == 0)); in flow_agg_merge_hdr()
1463 buf += pkt->pkt_headroom + pkt->pkt_l2_len; in pkt_finalize()
1837 spkt->pkt_headroom = 0; in flow_rx_agg_channel()
2332 uint16_t llhoff = pkt->pkt_headroom; in flow_rx_agg_host()
/xnu-10063.141.1/bsd/skywalk/channel/
H A Dchannel_ring.c1809 if (__improbable(kpkt->pkt_headroom != bdoff)) { in kr_internalize_metadata()
1812 SK_KVA(kring), kpkt->pkt_headroom, bdoff); in kr_internalize_metadata()
1816 if (__improbable(kpkt->pkt_headroom + in kr_internalize_metadata()
1831 if (__improbable((kpkt->pkt_headroom != 0) || in kr_internalize_metadata()
1837 kpkt->pkt_headroom, kpkt->pkt_l2_len); in kr_internalize_metadata()
1942 upkt->pkt_headroom = 0; in kr_externalize_metadata_internal()
/xnu-10063.141.1/bsd/net/pktsched/
H A Dpktsched.c706 l3_hdr = pkt_buf + kpkt->pkt_headroom + kpkt->pkt_l2_len; in pktsched_kpkt_mark_ecn()
/xnu-10063.141.1/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c375 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in fill_inet_td()
/xnu-10063.141.1/bsd/net/
H A Ddlil.c5505 baddr += p->cp_kpkt->pkt_headroom; in ifnet_enqueue_ifclassq()