#ifndef _CPT_COMMON_H_
#define _CPT_COMMON_H_
+#include <rte_mempool.h>
+
/*
* This file defines common macros and structs
*/
#define CPT_COUNT_THOLD 32
#define CPT_TIMER_THOLD 0x3F
-#define AE_TYPE 1
-#define SE_TYPE 2
-
#ifndef ROUNDUP4
#define ROUNDUP4(val) (((val) + 3) & 0xfffffffc)
#endif
#define ROUNDUP16(val) (((val) + 15) & 0xfffffff0)
#endif
-#ifndef __hot
-#define __hot __attribute__((hot))
-#endif
-
#define MOD_INC(i, l) ((i) == (l - 1) ? (i) = 0 : (i)++)
-struct cptvf_meta_info {
- void *cptvf_meta_pool;
- int cptvf_op_mlen;
- int cptvf_op_sb_mlen;
+struct cpt_qp_meta_info {
+ struct rte_mempool *pool;
+ int sg_mlen;
+ int lb_mlen;
};
struct rid {
uint64_t ei2;
uint64_t ei3;
} ist;
+ uint8_t *rptr;
/** Control path fields */
uint64_t time_out;
uint8_t extra_time;
-} __rte_cache_aligned;
+} __rte_aligned(8);
#endif /* _CPT_COMMON_H_ */