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

Function dpaa_sec_dequeue_burst

dpdk/drivers/crypto/dpaa_sec/dpaa_sec.c:2078–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2076}
2077
2078static uint16_t
2079dpaa_sec_dequeue_burst(void *qp, struct rte_crypto_op **ops,
2080 uint16_t nb_ops)
2081{
2082 uint16_t num_rx;
2083 struct dpaa_sec_qp *dpaa_qp = (struct dpaa_sec_qp *)qp;
2084
2085 if (unlikely(!DPAA_PER_LCORE_PORTAL)) {
2086 if (rte_dpaa_portal_init((void *)0)) {
2087 DPAA_SEC_ERR("Failure in affining portal");
2088 return 0;
2089 }
2090 }
2091
2092 num_rx = dpaa_sec_deq(dpaa_qp, ops, nb_ops);
2093
2094 dpaa_qp->rx_pkts += num_rx;
2095 dpaa_qp->rx_errs += nb_ops - num_rx;
2096
2097 DPAA_SEC_DP_DEBUG("SEC Received %d Packets", num_rx);
2098
2099 return num_rx;
2100}
2101
2102/** Release queue pair */
2103static int

Callers

nothing calls this directly

Calls 2

rte_dpaa_portal_initFunction · 0.85
dpaa_sec_deqFunction · 0.85

Tested by

no test coverage detected