git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vhost: add packed ring single enqueue
[dpdk.git]
/
drivers
/
common
/
cpt
/
cpt_common.h
diff --git
a/drivers/common/cpt/cpt_common.h
b/drivers/common/cpt/cpt_common.h
index
1823939
..
dff45f0
100644
(file)
--- a/
drivers/common/cpt/cpt_common.h
+++ b/
drivers/common/cpt/cpt_common.h
@@
-5,15
+5,13
@@
#ifndef _CPT_COMMON_H_
#define _CPT_COMMON_H_
#ifndef _CPT_COMMON_H_
#define _CPT_COMMON_H_
+#include <rte_mempool.h>
+
/*
* This file defines common macros and structs
*/
/*
* This file defines common macros and structs
*/
-/*
- * Macros to determine CPT model. Driver makefile will define CPT_MODEL
- * accordingly
- */
-#define CRYPTO_OCTEONTX 0x1
+#define TIME_IN_RESET_COUNT 5
/* Default command timeout in seconds */
#define DEFAULT_COMMAND_TIMEOUT 4
/* Default command timeout in seconds */
#define DEFAULT_COMMAND_TIMEOUT 4
@@
-21,9
+19,6
@@
#define CPT_COUNT_THOLD 32
#define CPT_TIMER_THOLD 0x3F
#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
#ifndef ROUNDUP4
#define ROUNDUP4(val) (((val) + 3) & 0xfffffffc)
#endif
@@
-42,10
+37,10
@@
#define MOD_INC(i, l) ((i) == (l - 1) ? (i) = 0 : (i)++)
#define MOD_INC(i, l) ((i) == (l - 1) ? (i) = 0 : (i)++)
-struct cpt
vf
_meta_info {
-
void *cptvf_meta_
pool;
- int
cptvf_op
_mlen;
- int
cptvf_op_s
b_mlen;
+struct cpt
_qp
_meta_info {
+
struct rte_mempool *
pool;
+ int
sg
_mlen;
+ int
l
b_mlen;
};
struct rid {
};
struct rid {
@@
-58,14
+53,14
@@
struct rid {
*
*/
struct pending_queue {
*
*/
struct pending_queue {
+ /** Pending requests count */
+ uint64_t pending_count;
+ /** Array of pending requests */
+ struct rid *rid_queue;
/** Tail of queue to be used for enqueue */
uint16_t enq_tail;
/** Head of queue to be used for dequeue */
uint16_t deq_head;
/** Tail of queue to be used for enqueue */
uint16_t enq_tail;
/** Head of queue to be used for dequeue */
uint16_t deq_head;
- /** Array of pending requests */
- struct rid *rid_queue;
- /** Pending requests count */
- uint64_t pending_count;
};
struct cpt_request_info {
};
struct cpt_request_info {
@@
-80,10
+75,11
@@
struct cpt_request_info {
uint64_t ei2;
uint64_t ei3;
} ist;
uint64_t ei2;
uint64_t ei3;
} ist;
+ uint8_t *rptr;
/** Control path fields */
uint64_t time_out;
uint8_t extra_time;
/** Control path fields */
uint64_t time_out;
uint8_t extra_time;
-};
+}
__rte_cache_aligned
;
#endif /* _CPT_COMMON_H_ */
#endif /* _CPT_COMMON_H_ */