X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fcpt%2Fcpt_common.h;h=724e5ec7363c59f0f8673d6fca10a172edad65dd;hb=aa6dc1017cd3fa7b722ca877558e871f82eb1f02;hp=56bfea4953c2eba7cf9de8a2fafdc85125710011;hpb=e3866e73555091d56b33b4d8916e0e484ccae114;p=dpdk.git diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.h index 56bfea4953..724e5ec736 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -19,18 +19,6 @@ #define CPT_COUNT_THOLD 32 #define CPT_TIMER_THOLD 0x3F -#ifndef ROUNDUP4 -#define ROUNDUP4(val) (((val) + 3) & 0xfffffffc) -#endif - -#ifndef ROUNDUP8 -#define ROUNDUP8(val) (((val) + 7) & 0xfffffff8) -#endif - -#ifndef ROUNDUP16 -#define ROUNDUP16(val) (((val) + 15) & 0xfffffff0) -#endif - #define MOD_INC(i, l) ((i) == (l - 1) ? (i) = 0 : (i)++) struct cpt_qp_meta_info { @@ -39,11 +27,6 @@ struct cpt_qp_meta_info { int lb_mlen; }; -struct rid { - /** Request id of a crypto operation */ - uintptr_t rid; -}; - /* * Pending queue structure * @@ -52,7 +35,7 @@ struct pending_queue { /** Pending requests count */ uint64_t pending_count; /** Array of pending requests */ - struct rid *rid_queue; + uintptr_t *req_queue; /** Tail of queue to be used for enqueue */ uint16_t enq_tail; /** Head of queue to be used for dequeue */ @@ -69,13 +52,13 @@ struct cpt_request_info { uint64_t ei0; uint64_t ei1; uint64_t ei2; - uint64_t ei3; } ist; uint8_t *rptr; + const void *qp; /** Control path fields */ uint64_t time_out; uint8_t extra_time; -} __rte_cache_aligned; +} __rte_aligned(8); #endif /* _CPT_COMMON_H_ */