MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dpaa_rx_cb_prepare

Function dpaa_rx_cb_prepare

dpdk/drivers/net/dpaa/dpaa_rxtx.c:600–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600void dpaa_rx_cb_prepare(struct qm_dqrr_entry *dq, void **bufs)
601{
602 struct dpaa_bp_info *bp_info = DPAA_BPID_TO_POOL_INFO(dq->fd.bpid);
603 void *ptr = rte_dpaa_mem_ptov(qm_fd_addr(&dq->fd));
604
605 /* In case of LS1046, annotation stashing is disabled due to L2 cache
606 * being bottleneck in case of multicore scenario for this platform.
607 * So we prefetch the annotation beforehand, so that it is available
608 * in cache when accessed.
609 */
610 rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF));
611
612 *bufs = (struct rte_mbuf *)((char *)ptr - bp_info->meta_data_size);
613}
614
615static uint16_t
616dpaa_eth_queue_portal_rx(struct qman_fq *fq,

Callers

nothing calls this directly

Calls 3

rte_dpaa_mem_ptovFunction · 0.85
qm_fd_addrFunction · 0.85
rte_prefetch0Function · 0.50

Tested by

no test coverage detected