src/dpdk/lib/librte_ipsec/esp_inb.c
static inline void
inb_pkt_xprepare(const struct rte_ipsec_sa *sa, rte_be64_t sqc,
	const union sym_op_data *icv)
{
	struct aead_gcm_aad *aad;

	/* insert SQN.hi between ESP trailer and ICV */
	if (sa->sqh_len != 0)
		insert_sqh(sqn_hi32(sqc), icv->va, sa->icv_len);

	/*
	 * fill AAD fields, if any (aad fields are placed after icv),
	 * right now we support only one AEAD algorithm: AES-GCM.
	 */
	if (sa->aad_len != 0) {
		aad = (struct aead_gcm_aad *)(icv->va + sa->icv_len);
		aead_gcm_aad_fill(aad, sa->spi, sqc, IS_ESN(sa));
	}
}
/*
 * for pure cryptodev (lookaside none) depending on SA settings,
 * we might have to write some extra data to the packet.
 */
for pure cryptodev (lookaside none) depending on SA settings,
we might have to write some extra data to the packet.
for pure cryptodev ( lookaside none ) depending on SA settings we might have to write some extra data to the packet .
static inline void
inb_pkt_xprepare(const struct rte_ipsec_sa *sa, rte_be64_t sqc,
	const union sym_op_data *icv)
{
	struct aead_gcm_aad *aad;
	if (sa->sqh_len != 0)
		insert_sqh(sqn_hi32(sqc), icv->va, sa->icv_len);
	if (sa->aad_len != 0) {
		aad = (struct aead_gcm_aad *)(icv->va + sa->icv_len);
		aead_gcm_aad_fill(aad, sa->spi, sqc, IS_ESN(sa));
	}
}
static inline void inb_pkt_xprepare ( const struct rte_ipsec_sa * sa , rte_be64_t sqc , const union sym_op_data * icv ) { struct aead_gcm_aad * aad ; if ( sa -> sqh_len != 0 ) insert_sqh ( sqn_hi32 ( sqc ) , icv -> va , sa -> icv_len ) ; if ( sa -> aad_len != 0 ) { aad = ( struct aead_gcm_aad * ) ( icv -> va + sa -> icv_len ) ; aead_gcm_aad_fill ( aad , sa -> spi , sqc , IS_ESN ( sa ) ) ; } }
for pure cryptodev (lookaside none) depending on SA settings,
 we might have to write some extra data to the packet.
for pure cryptodev ( lookaside none ) depending on SA settings we might have to write some extra data to the packet .
/* insert SQN.hi between ESP trailer and ICV */ /*
	 * fill AAD fields, if any (aad fields are placed after icv),
	 * right now we support only one AEAD algorithm: AES-GCM.
	 */