examples/ipsec-secgw: implement inbound SAD
[dpdk.git] / examples / ipsec-secgw / ipsec.h
index 8e07521..9ddb5d9 100644 (file)
@@ -53,6 +53,13 @@ struct ipsec_xform;
 struct rte_mbuf;
 
 struct ipsec_sa;
+/*
+ * Keeps number of configured SA's for each address family:
+ */
+struct ipsec_sa_cnt {
+       uint32_t        nb_v4;
+       uint32_t        nb_v6;
+};
 
 typedef int32_t (*ipsec_xform_fn)(struct rte_mbuf *m, struct ipsec_sa *sa,
                struct rte_crypto_op *cop);