test/telemetry: fix typo at beginning of line
[dpdk.git] / lib / librte_ipsec / misc.h
index 53c0457..79b9a20 100644 (file)
@@ -106,12 +106,15 @@ mbuf_cut_seg_ofs(struct rte_mbuf *mb, struct rte_mbuf *ms, uint32_t ofs,
 }
 
 /*
- * process packets using sync crypto engine
+ * process packets using sync crypto engine.
+ * expects *num* to be greater than zero.
  */
 static inline void
 cpu_crypto_bulk(const struct rte_ipsec_session *ss,
        union rte_crypto_sym_ofs ofs, struct rte_mbuf *mb[],
-       void *iv[], void *aad[], void *dgst[], uint32_t l4ofs[],
+       struct rte_crypto_va_iova_ptr iv[],
+       struct rte_crypto_va_iova_ptr aad[],
+       struct rte_crypto_va_iova_ptr dgst[], uint32_t l4ofs[],
        uint32_t clen[], uint32_t num)
 {
        uint32_t i, j, n;
@@ -135,8 +138,8 @@ cpu_crypto_bulk(const struct rte_ipsec_session *ss,
                        /* fill the request structure */
                        symvec.sgl = &vecpkt[j];
                        symvec.iv = &iv[j];
-                       symvec.aad = &aad[j];
                        symvec.digest = &dgst[j];
+                       symvec.aad = &aad[j];
                        symvec.status = &st[j];
                        symvec.num = i - j;