doc: update softnic guide for flow and QoS support
[dpdk.git] / examples / ipsec-secgw / ipsec.h
index c1450f6..c998c80 100644 (file)
@@ -17,6 +17,7 @@
 #define RTE_LOGTYPE_IPSEC_IPIP  RTE_LOGTYPE_USER3
 
 #define MAX_PKT_BURST 32
+#define MAX_INFLIGHT 128
 #define MAX_QP_PER_LCORE 256
 
 #define MAX_DIGEST_SIZE 32 /* Bytes -- 256 bits */
@@ -190,7 +191,7 @@ ipsec_metadata_size(void)
 static inline struct ipsec_mbuf_metadata *
 get_priv(struct rte_mbuf *m)
 {
-       return RTE_PTR_ADD(m, sizeof(struct rte_mbuf));
+       return rte_mbuf_to_priv(m);
 }
 
 static inline void *