X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fcpt%2Fcpt_common.h;h=dff45f0fe9ae7a99f2912f4a5723a68183a46b2b;hb=aa2cbd32e9695c0f552ee26653b7867cade5ffb3;hp=8568d5b016a434dc29263ee473e775ad5c581c68;hpb=a03a7bfb90066bd02a941b318f533cba720620bc;p=dpdk.git diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.h index 8568d5b016..dff45f0fe9 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -5,15 +5,11 @@ #ifndef _CPT_COMMON_H_ #define _CPT_COMMON_H_ -/* - * This file defines common macros and structs - */ +#include /* - * Macros to determine CPT model. Driver makefile will define CPT_MODEL - * accordingly + * This file defines common macros and structs */ -#define CRYPTO_OCTEONTX 0x1 #define TIME_IN_RESET_COUNT 5 @@ -23,9 +19,6 @@ #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 @@ -44,10 +37,10 @@ #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 { @@ -82,6 +75,7 @@ struct cpt_request_info { uint64_t ei2; uint64_t ei3; } ist; + uint8_t *rptr; /** Control path fields */ uint64_t time_out;