]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/ipsec.h
cryptodev: move IV parameters to session
[dpdk.git] / examples / ipsec-secgw / ipsec.h
index d48b299591622343cdb101c86c75591b3a97c758..97d67d0251ad80136366d56206c9579bc7583b97 100644 (file)
@@ -48,6 +48,9 @@
 
 #define MAX_DIGEST_SIZE 32 /* Bytes -- 256 bits */
 
+#define IV_OFFSET              (sizeof(struct rte_crypto_op) + \
+                               sizeof(struct rte_crypto_sym_op))
+
 #define uint32_t_to_char(ip, a, b, c, d) do {\
                *a = (uint8_t)(ip >> 24 & 0xff);\
                *b = (uint8_t)(ip >> 16 & 0xff);\