src/dpdk/lib/librte_ipsec/esp_inb.c
static inline void
sop_aead_prepare(struct rte_crypto_sym_op *sop,
	const struct rte_ipsec_sa *sa, const union sym_op_data *icv,
	uint32_t pofs, uint32_t plen)
{
	sop->aead.data.offset = pofs + sa->ctp.cipher.offset;
	sop->aead.data.length = plen - sa->ctp.cipher.length;
	sop->aead.digest.data = icv->va;
	sop->aead.digest.phys_addr = icv->pa;
	sop->aead.aad.data = icv->va + sa->icv_len;
	sop->aead.aad.phys_addr = icv->pa + sa->icv_len;
}
/*
 * helper function to fill crypto_sym op for aead algorithms
 * used by inb_cop_prepare(), see below.
 */
helper function to fill crypto_sym op for aead algorithms
used by inb_cop_prepare(), see below.
helper function to fill crypto_sym op for aead algorithms used by inb_cop_prepare () see below .
static inline void
sop_aead_prepare(struct rte_crypto_sym_op *sop,
	const struct rte_ipsec_sa *sa, const union sym_op_data *icv,
	uint32_t pofs, uint32_t plen)
{
	sop->aead.data.offset = pofs + sa->ctp.cipher.offset;
	sop->aead.data.length = plen - sa->ctp.cipher.length;
	sop->aead.digest.data = icv->va;
	sop->aead.digest.phys_addr = icv->pa;
	sop->aead.aad.data = icv->va + sa->icv_len;
	sop->aead.aad.phys_addr = icv->pa + sa->icv_len;
}
static inline void sop_aead_prepare ( struct rte_crypto_sym_op * sop , const struct rte_ipsec_sa * sa , const union sym_op_data * icv , uint32_t pofs , uint32_t plen ) { sop -> aead . data . offset = pofs + sa -> ctp . cipher . offset ; sop -> aead . data . length = plen - sa -> ctp . cipher . length ; sop -> aead . digest . data = icv -> va ; sop -> aead . digest . phys_addr = icv -> pa ; sop -> aead . aad . data = icv -> va + sa -> icv_len ; sop -> aead . aad . phys_addr = icv -> pa + sa -> icv_len ; }
helper function to fill crypto_sym op for aead algorithms
 used by inb_cop_prepare(), see below.
helper function to fill crypto_sym op for aead algorithms used by inb_cop_prepare () see below .