Home
last modified time | relevance | path

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

/xnu-12377.41.6/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.c521 ASSERT(pkt->pkt_headroom >= FSW_ETHER_LEN_PADDED); in fsw_ethernet_frame()
526 (uint64_t *)(void *)(pkt_buf + pkt->pkt_headroom - FSW_ETHER_LEN_PADDED)); in fsw_ethernet_frame()
528 pkt->pkt_headroom -= ETHER_HDR_LEN; in fsw_ethernet_frame()
545 METADATA_ADJUST_LEN(pkt, ETHER_HDR_LEN, pkt->pkt_headroom); in fsw_ethernet_frame()
559 baddr += pkt->pkt_headroom; in fsw_ethernet_demux()
568 if (__improbable(pkt->pkt_headroom + sizeof(*eh) > bdlim)) { in fsw_ethernet_demux()
H A Dfsw_dp.c559 dpkt->pkt_length, (uint32_t)dpkt->pkt_headroom, in copy_packet_from_dev_log()
605 dpkt->pkt_headroom = 0; in copy_packet_from_dev()
638 (spkt->pkt_headroom + spkt->pkt_l2_len), dlen, do_cksum_rx, in copy_packet_from_dev()
693 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in rx_process_ip_frag()
741 pkt->pkt_headroom = 0; in rx_prepare_packet_mbuf()
751 pkt->pkt_headroom, pkt->pkt_mbuf, 0, in rx_prepare_packet_mbuf()
1446 pkt->pkt_headroom, m, 0, len, do_cksum_rx, in convert_native_pktq_to_mbufs()
2647 dpkt->pkt_headroom = fsw->fsw_frame_headroom; in dp_copy_to_dev_mbuf()
2664 uint32_t copy_len = MIN(spkt->pkt_length, bdlim - dpkt->pkt_headroom); in dp_copy_to_dev_mbuf()
2665 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.c451 buf += (pkt->pkt_headroom + pkt->pkt_l2_len); in ipf_pkt2mbuf()
/xnu-12377.41.6/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-12377.41.6/bsd/skywalk/nexus/netif/
H A Dnx_netif_util.c364 fpkt->pkt_headroom = off; in nx_netif_pkt_to_filter_pkt()
399 pkt->pkt_headroom, plen, FALSE, 0, 0, FALSE); in nx_netif_pkt_to_filter_pkt()
540 nif->nif_pkt_copy_to_mbuf(type, ph, pkt->pkt_headroom, in nx_netif_pkt_to_mbuf()
643 dpkt->pkt_headroom = off; in nx_netif_pkt_to_pkt()
659 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()
428 state->hdr.ip = (struct ip *)(void *)(baddr + pkt->pkt_headroom + in netif_gso_ipv4_tcp_update()
430 state->tcp = (struct tcphdr *)(void *)(baddr + pkt->pkt_headroom + in netif_gso_ipv4_tcp_update()
500 state->hdr.ip6 = (struct ip6_hdr *)(baddr + pkt->pkt_headroom + in netif_gso_ipv6_tcp_update()
502 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.c1912 nif->nif_pkt_copy_to_mbuf(NR_TX, ph, pkt->pkt_headroom, m, 0, len, in nx_netif_compat_xmit_frame()
/xnu-12377.41.6/bsd/skywalk/packet/
H A Dpacket_common.h127 PKT_ADDR(ph)->pkt_headroom = headroom; in __packet_set_headroom()
138 return PKT_ADDR(ph)->pkt_headroom; in __packet_get_headroom()
1366 PKT_ADDR(ph)->pkt_headroom = (uint8_t)bdoff0; in __packet_finalize()
1373 if (__improbable((PKT_ADDR(ph)->pkt_headroom + in __packet_finalize()
1447 pkt->pkt_headroom = headroom; in __packet_initialize_with_mbufchain()
1497 if (__improbable((pkt->pkt_headroom != bdoff) || in __packet_finalize_with_mbuf()
1498 (pkt->pkt_headroom >= bdlim))) { in __packet_finalize_with_mbuf()
1502 if (__improbable((pkt->pkt_headroom + in __packet_finalize_with_mbuf()
H A Dos_packet_private.h673 #define pkt_headroom pkt_com.__p_headroom macro
/xnu-12377.41.6/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()
2400 uint16_t llhoff = pkt->pkt_headroom; in flow_rx_agg_host()
/xnu-12377.41.6/bsd/skywalk/channel/
H A Dchannel_ring.c1789 if (__improbable(kpkt->pkt_headroom != bdoff)) { in kr_internalize_metadata()
1792 SK_KVA(kring), kpkt->pkt_headroom, bdoff); in kr_internalize_metadata()
1796 if (__improbable(kpkt->pkt_headroom + in kr_internalize_metadata()
/xnu-12377.41.6/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_eth.c150 l2_hdr = pkt_buf + pkt->pkt_headroom; in parse_eth_hdr()
H A Dnexus_traffic_rule_inet.c198 l3_hdr = pkt_buf + pkt->pkt_headroom + pkt->pkt_l2_len; in fill_inet_td()
/xnu-12377.41.6/bsd/net/pktsched/
H A Dpktsched.c816 l3_hdr = pkt_buf + kpkt->pkt_headroom + kpkt->pkt_l2_len; in pktsched_kpkt_mark_ecn()
/xnu-12377.41.6/bsd/net/
H A Ddlil.c3114 baddr += p->cp_kpkt->pkt_headroom; in ifnet_enqueue_single()