examples/ipsec-secgw: rework processing loop
[dpdk.git] / examples / ipsec-secgw / ipsec.h
index 50037e2..74ef6fc 100644 (file)
 #define MAX_PKT_BURST 32
 #define MAX_QP_PER_LCORE 256
 
-#ifdef IPSEC_DEBUG
-#define IPSEC_ASSERT(exp)                                            \
-if (!(exp)) {                                                        \
-       rte_panic("line%d\tassert \"" #exp "\" failed\n", __LINE__); \
-}
-#else
-#define IPSEC_ASSERT(exp) do {} while (0)
-#endif /* IPSEC_DEBUG */
-
 #define MAX_DIGEST_SIZE 32 /* Bytes -- 256 bits */
 
 #define uint32_t_to_char(ip, a, b, c, d) do {\
@@ -95,8 +86,6 @@ struct ipsec_sa {
        uint32_t dst;
        struct rte_cryptodev_sym_session *crypto_session;
        struct rte_crypto_sym_xform *xforms;
-       ipsec_xform_fn pre_crypto;
-       ipsec_xform_fn post_crypto;
        enum rte_crypto_cipher_algorithm cipher_algo;
        enum rte_crypto_auth_algorithm auth_algo;
        uint16_t digest_len;