Home
last modified time | relevance | path

Searched refs:spkt (Results 1 – 5 of 5) sorted by relevance

/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c435 _copy_data_sum_dbuf(struct __kern_packet *spkt, uint16_t soff, uint16_t plen, in _copy_data_sum_dbuf() argument
466 if (PKT_IS_TRUNC_MBUF(spkt)) { in _copy_data_sum_dbuf()
468 *partial_sum = m_copydata_sum(spkt->pkt_mbuf, in _copy_data_sum_dbuf()
472 m_copydata(spkt->pkt_mbuf, soff, tmplen, in _copy_data_sum_dbuf()
476 *partial_sum = pkt_copyaddr_sum(SK_PKT2PH(spkt), in _copy_data_sum_dbuf()
508 copy_pkt_csum_packed(struct __kern_packet *spkt, uint32_t plen, in copy_pkt_csum_packed() argument
521 uint16_t soff = spkt->pkt_headroom + spkt->pkt_l2_len; in copy_pkt_csum_packed()
552 len = spkt->pkt_flow_ip_hlen; in copy_pkt_csum_packed()
553 verify_l3 = (verify_l3 && !PACKET_HAS_VALID_IP_CSUM(spkt)); in copy_pkt_csum_packed()
555 if (PKT_IS_TRUNC_MBUF(spkt)) { in copy_pkt_csum_packed()
[all …]
/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c506 validate_pkt_len(struct __kern_packet *spkt, kern_packet_t dph, in validate_pkt_len() argument
511 uint32_t splen = spkt->pkt_length - skip_l2hlen; in validate_pkt_len()
516 } else if ((spkt->pkt_link_flags & PKT_LINKF_ETHFCS) != 0) { in validate_pkt_len()
532 copy_packet_from_dev_log(struct __kern_packet *spkt, in copy_packet_from_dev_log() argument
536 ((spkt->pkt_pflags & PKT_F_MBUF_DATA) ? in copy_packet_from_dev_log()
544 sk_proc_name_address(p), sk_proc_pid(p), spkt->pkt_length, in copy_packet_from_dev_log()
556 copy_packet_from_dev(struct nx_flowswitch *fsw, struct __kern_packet *spkt, in copy_packet_from_dev() argument
568 kern_packet_t sph = SK_PTR_ENCODE(spkt, METADATA_TYPE(spkt), in copy_packet_from_dev()
569 METADATA_SUBTYPE(spkt)); in copy_packet_from_dev()
571 uint16_t skip_l2h_len = spkt->pkt_l2_len; in copy_packet_from_dev()
[all …]
/xnu-11417.121.6/bsd/skywalk/packet/
H A Dpacket_copy.c98 struct __kern_packet *spkt = SK_PTR_ADDR_KPKT(sph); in pkt_copy_from_pkt() local
102 boolean_t do_sum = copysum && !PACKET_HAS_FULL_CHECKSUM_FLAGS(spkt); in pkt_copy_from_pkt()
107 MD_BUFLET_ADDR_ABS(spkt, sbaddr); in pkt_copy_from_pkt()
135 dpkt->pkt_csum_rx_start_off = spkt->pkt_csum_rx_start_off; in pkt_copy_from_pkt()
136 dpkt->pkt_csum_rx_value = spkt->pkt_csum_rx_value; in pkt_copy_from_pkt()
137 dpkt->pkt_csum_flags |= spkt->pkt_csum_flags & PACKET_CSUM_RX_FLAGS; in pkt_copy_from_pkt()
182 dpkt->pkt_csum_flags = spkt->pkt_csum_flags & in pkt_copy_from_pkt()
224 struct __kern_packet *spkt = SK_PTR_ADDR_KPKT(sph); in _pkt_copyaddr_sum() local
235 PKT_GET_NEXT_BUFLET(spkt, 1, sbufp, sbuf); in _pkt_copyaddr_sum()
256 PKT_GET_NEXT_BUFLET(spkt, sbcnt, sbufp, sbuf); in _pkt_copyaddr_sum()
[all …]
/xnu-11417.121.6/bsd/net/
H A Dif_redirect.c326 struct __kern_packet *spkt, *pkt; in redirect_tx_submit() local
354 KPKTQ_DEQUEUE(spktq, spkt); in redirect_tx_submit()
355 ASSERT(spkt != NULL); in redirect_tx_submit()
359 pkt = nx_netif_pkt_to_pkt(dev_nifna, spkt, NETIF_CONVERT_TX); in redirect_tx_submit()
373 m = nx_netif_pkt_to_mbuf(dev_nifna, spkt, NETIF_CONVERT_TX); in redirect_tx_submit()
748 struct __kern_packet *spkt, *pkt; in redirect_rx_cb() local
771 KPKTQ_DEQUEUE(spktq, spkt); in redirect_rx_cb()
772 if (pkt_is_for_delegate(rd, spkt)) { in redirect_rx_cb()
773 KPKTQ_ENQUEUE(&rpktq, spkt); in redirect_rx_cb()
779 struct __kern_packet *, spkt); in redirect_rx_cb()
[all …]
/xnu-11417.121.6/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c1242 struct __kern_packet *spkt, *dpkt; in nx_mon_parent_sync() local
1251 spkt = src_sd->sd_pkt; in nx_mon_parent_sync()
1252 sph = SK_PTR_ENCODE(spkt, METADATA_TYPE(spkt), in nx_mon_parent_sync()
1253 METADATA_SUBTYPE(spkt)); in nx_mon_parent_sync()
1258 ASSERT(METADATA_TYPE(spkt) == METADATA_TYPE(dpkt)); in nx_mon_parent_sync()
1260 ASSERT(spkt->pkt_qum.qum_len <= (UINT32_MAX - 63)); in nx_mon_parent_sync()
1261 copy_len = spkt->pkt_qum.qum_len; in nx_mon_parent_sync()
1279 _QUM_COPY(&(spkt)->pkt_qum, &(dpkt)->pkt_qum); in nx_mon_parent_sync()
1281 _PKT_COPY(spkt, dpkt); in nx_mon_parent_sync()