| 641 | } |
| 642 | |
| 643 | static int |
| 644 | create_crypto_session(struct ipsec_unitest_params *ut, |
| 645 | struct rte_cryptodev_qp_conf *qp, uint8_t dev_id, uint32_t j) |
| 646 | { |
| 647 | void *s; |
| 648 | |
| 649 | s = rte_cryptodev_sym_session_create(dev_id, ut->crypto_xforms, |
| 650 | qp->mp_session); |
| 651 | if (s == NULL) |
| 652 | return -ENOMEM; |
| 653 | |
| 654 | ut->ss[j].crypto.ses = s; |
| 655 | return 0; |
| 656 | } |
| 657 | |
| 658 | static int |
| 659 | create_session(struct ipsec_unitest_params *ut, |
no test coverage detected