Home
last modified time | relevance | path

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

/xnu-11417.101.15/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.c520 ASSERT(pkt->pkt_headroom >= FSW_ETHER_LEN_PADDED); in fsw_ethernet_frame()
525 (uint64_t *)(void *)(pkt_buf + pkt->pkt_headroom - FSW_ETHER_LEN_PADDED)); in fsw_ethernet_frame()
527 pkt->pkt_headroom -= ETHER_HDR_LEN; in fsw_ethernet_frame()
544 METADATA_ADJUST_LEN(pkt, ETHER_HDR_LEN, pkt->pkt_headroom); in fsw_ethernet_frame()
558 baddr += pkt->pkt_headroom; in fsw_ethernet_demux()
567 if (__improbable(pkt->pkt_headroom + sizeof(*eh) > bdlim)) { in fsw_ethernet_demux()
H A Dfsw_dp.c545 dpkt->pkt_length, (uint32_t)dpkt->pkt_headroom, in copy_packet_from_dev_log()
591 dpkt->pkt_headroom = 0; in copy_packet_from_dev()
624 (spkt->pkt_headroom + spkt->pkt_l2_len), dlen, do_cksum_rx, in copy_packet_from_dev()
679 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in rx_process_ip_frag()
727 pkt->pkt_headroom = 0; in rx_prepare_packet_mbuf()
737 pkt->pkt_headroom, pkt->pkt_mbuf, 0, in rx_prepare_packet_mbuf()
1427 pkt->pkt_headroom, m, 0, len, do_cksum_rx, in convert_native_pktq_to_mbufs()
2568 dpkt->pkt_headroom = fsw->fsw_frame_headroom; in dp_copy_to_dev_mbuf()
2585 uint32_t copy_len = MIN(spkt->pkt_length, bdlim - dpkt->pkt_headroom); in dp_copy_to_dev_mbuf()
2586 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.c427 buf += (pkt->pkt_headroom + pkt->pkt_l2_len); in ipf_pkt2mbuf()
/xnu-11417.101.15/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()
667 dpkt->pkt_headroom = off; in nx_netif_pkt_to_pkt()
683 pkt->pkt_headroom, len, FALSE, 0, 0, FALSE); in nx_netif_pkt_to_pkt()
H A Dnx_netif_gso.c360 pkt->pkt_headroom = tx_headroom; in netif_gso_tcp_segment_mbuf()
429 state->hdr.ip = (struct ip *)(void *)(baddr + pkt->pkt_headroom + in netif_gso_ipv4_tcp_update()
431 state->tcp = (struct tcphdr *)(void *)(baddr + pkt->pkt_headroom + in netif_gso_ipv4_tcp_update()
501 state->hdr.ip6 = (struct ip6_hdr *)(baddr + pkt->pkt_headroom + in netif_gso_ipv6_tcp_update()
503 state->tcp = (struct tcphdr *)(void *)(baddr + pkt->pkt_headroom + in netif_gso_ipv6_tcp_update()
H A Dnx_netif_host.c669 kpkt->pkt_headroom, kpkt->pkt_l2_len, poff); in nx_netif_mbuf_to_kpkt_log()
723 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.c98 baddr += pkt->pkt_headroom; in netif_vp_dump_packet()
H A Dnx_netif_compat.c1913 nif->nif_pkt_copy_to_mbuf(NR_TX, ph, pkt->pkt_headroom, m, 0, len, in nx_netif_compat_xmit_frame()
/xnu-11417.101.15/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-11417.101.15/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()
1402 PKT_ADDR(ph)->pkt_headroom = (uint8_t)bdoff0; in __packet_finalize()
1411 if (__improbable((PKT_ADDR(ph)->pkt_headroom + in __packet_finalize()
1423 if (__improbable((PKT_ADDR(ph)->pkt_headroom != 0) || in __packet_finalize()
1511 pkt->pkt_headroom = headroom; in __packet_initialize_with_mbufchain()
1563 if (__improbable((pkt->pkt_headroom != bdoff) || in __packet_finalize_with_mbuf()
1564 (pkt->pkt_headroom >= bdlim))) { in __packet_finalize_with_mbuf()
1568 if (__improbable((pkt->pkt_headroom + in __packet_finalize_with_mbuf()
1579 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-11417.101.15/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c40 pkt_buf + pkt->pkt_headroom, __packet_get_real_data_length(pkt), \
193 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in flow_pkt_classify()
H A Dflow_agg.c521 uint16_t soff = spkt->pkt_headroom + spkt->pkt_l2_len; in copy_pkt_csum_packed()
708 uint16_t soff = pkt->pkt_headroom + pkt->pkt_l2_len; in copy_pkt_csum()
925 VERIFY(spkt->pkt_headroom == 0 && spkt->pkt_l2_len == 0); in flow_agg_init_spkt()
1330 (fa->fa_spkt->pkt_headroom == 0 && fa->fa_spkt->pkt_l2_len == 0)); in flow_agg_merge_hdr()
1511 buf += pkt->pkt_headroom + pkt->pkt_l2_len; in pkt_finalize()
1898 spkt->pkt_headroom = 0; in flow_rx_agg_channel()
2399 uint16_t llhoff = pkt->pkt_headroom; in flow_rx_agg_host()
/xnu-11417.101.15/bsd/skywalk/channel/
H A Dchannel_ring.c1818 if (__improbable(kpkt->pkt_headroom != bdoff)) { in kr_internalize_metadata()
1821 SK_KVA(kring), kpkt->pkt_headroom, bdoff); in kr_internalize_metadata()
1825 if (__improbable(kpkt->pkt_headroom + in kr_internalize_metadata()
1840 if (__improbable((kpkt->pkt_headroom != 0) || in kr_internalize_metadata()
1846 kpkt->pkt_headroom, kpkt->pkt_l2_len); in kr_internalize_metadata()
1951 upkt->pkt_headroom = 0; in kr_externalize_metadata_internal()
/xnu-11417.101.15/bsd/net/pktsched/
H A Dpktsched.c760 l3_hdr = pkt_buf + kpkt->pkt_headroom + kpkt->pkt_l2_len; in pktsched_kpkt_mark_ecn()
/xnu-11417.101.15/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c380 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in fill_inet_td()
/xnu-11417.101.15/bsd/net/
H A Ddlil.c3136 baddr += p->cp_kpkt->pkt_headroom; in ifnet_enqueue_ifclassq()