test/crypto-perf: extend asymmetric crypto throughput test
[dpdk.git] / app / test-eventdev / evt_common.h
index 28afb11..2f301a7 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <rte_common.h>
 #include <rte_debug.h>
+#include <rte_event_crypto_adapter.h>
 #include <rte_eventdev.h>
 #include <rte_service.h>
 
@@ -39,6 +40,7 @@ enum evt_prod_type {
        EVT_PROD_TYPE_SYNT,          /* Producer type Synthetic i.e. CPU. */
        EVT_PROD_TYPE_ETH_RX_ADPTR,  /* Producer type Eth Rx Adapter. */
        EVT_PROD_TYPE_EVENT_TIMER_ADPTR,  /* Producer type Timer Adapter. */
+       EVT_PROD_TYPE_EVENT_CRYPTO_ADPTR,  /* Producer type Crypto Adapter. */
        EVT_PROD_TYPE_MAX,
 };
 
@@ -64,6 +66,7 @@ struct evt_options {
        uint32_t nb_flows;
        uint32_t tx_first;
        uint32_t max_pkt_sz;
+       uint32_t prod_enq_burst_sz;
        uint32_t deq_tmo_nsec;
        uint32_t q_priority:1;
        uint32_t fwd_latency:1;
@@ -76,6 +79,7 @@ struct evt_options {
        uint64_t timer_tick_nsec;
        uint64_t optm_timer_tick_nsec;
        enum evt_prod_type prod_type;
+       enum rte_event_crypto_adapter_mode crypto_adptr_mode;
 };
 
 static inline bool