| 651 | } |
| 652 | |
| 653 | static uint16_t |
| 654 | nitrox_sym_dev_enq_burst(void *queue_pair, struct rte_crypto_op **ops, |
| 655 | uint16_t nb_ops) |
| 656 | { |
| 657 | struct nitrox_qp *qp = queue_pair; |
| 658 | uint16_t free_slots = 0; |
| 659 | uint16_t cnt = 0; |
| 660 | bool err = false; |
| 661 | |
| 662 | free_slots = nitrox_qp_free_count(qp); |
| 663 | if (nb_ops > free_slots) |
| 664 | nb_ops = free_slots; |
| 665 | |
| 666 | for (cnt = 0; cnt < nb_ops; cnt++) { |
| 667 | if (unlikely(nitrox_enq_single_op(qp, ops[cnt]))) { |
| 668 | err = true; |
| 669 | break; |
| 670 | } |
| 671 | } |
| 672 | |
| 673 | nitrox_ring_dbell(qp, cnt); |
| 674 | qp->stats.enqueued_count += cnt; |
| 675 | if (unlikely(err)) |
| 676 | qp->stats.enqueue_err_count++; |
| 677 | |
| 678 | return cnt; |
| 679 | } |
| 680 | |
| 681 | static int |
| 682 | nitrox_deq_single_op(struct nitrox_qp *qp, struct rte_crypto_op **op_ptr) |
nothing calls this directly
no test coverage detected