* helper function to fill crypto_sym op for cipher+auth algorithms. * used by outb_cop_prepare(), see below. */
| 41 | * used by outb_cop_prepare(), see below. |
| 42 | */ |
| 43 | static inline void |
| 44 | sop_aead_prepare(struct rte_crypto_sym_op *sop, |
| 45 | const struct rte_ipsec_sa *sa, const union sym_op_data *icv, |
| 46 | uint32_t pofs, uint32_t plen) |
| 47 | { |
| 48 | sop->aead.data.offset = sa->ctp.cipher.offset + pofs; |
| 49 | sop->aead.data.length = sa->ctp.cipher.length + plen; |
| 50 | sop->aead.digest.data = icv->va; |
| 51 | sop->aead.digest.phys_addr = icv->pa; |
| 52 | sop->aead.aad.data = icv->va + sa->icv_len; |
| 53 | sop->aead.aad.phys_addr = icv->pa + sa->icv_len; |
| 54 | } |
| 55 | |
| 56 | /* |
| 57 | * setup crypto op and crypto sym op for ESP outbound packet. |