| 2076 | } |
| 2077 | |
| 2078 | static uint16_t |
| 2079 | dpaa_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 */ |
| 2103 | static int |
nothing calls this directly
no test coverage detected