| 2623 | } |
| 2624 | |
| 2625 | static inline int |
| 2626 | ccp_crypto_aead(struct rte_crypto_op *op, |
| 2627 | struct ccp_queue *cmd_q, |
| 2628 | struct ccp_batch_info *b_info) |
| 2629 | { |
| 2630 | int result = 0; |
| 2631 | struct ccp_session *session; |
| 2632 | |
| 2633 | session = CRYPTODEV_GET_SYM_SESS_PRIV(op->sym->session); |
| 2634 | |
| 2635 | switch (session->auth.algo) { |
| 2636 | case CCP_AUTH_ALGO_AES_GCM: |
| 2637 | if (session->cipher.algo != CCP_CIPHER_ALGO_AES_GCM) { |
| 2638 | CCP_LOG_ERR("Incorrect chain order"); |
| 2639 | return -1; |
| 2640 | } |
| 2641 | result = ccp_perform_aes_gcm(op, cmd_q); |
| 2642 | b_info->desccnt += 5; |
| 2643 | break; |
| 2644 | default: |
| 2645 | CCP_LOG_ERR("Unsupported aead algo %d", |
| 2646 | session->aead_algo); |
| 2647 | return -ENOTSUP; |
| 2648 | } |
| 2649 | return result; |
| 2650 | } |
| 2651 | |
| 2652 | int |
| 2653 | process_ops_to_enqueue(struct ccp_qp *qp, |
no test coverage detected