devtools: check prefix for libraries patches
[dpdk.git] / app / test-eventdev / test_pipeline_common.h
index 6e73c6a..d69e2f8 100644 (file)
@@ -47,7 +47,7 @@ struct test_pipeline {
        enum evt_test_result result;
        uint32_t nb_flows;
        uint64_t outstand_pkts;
-       struct rte_mempool *pool;
+       struct rte_mempool *pool[RTE_MAX_ETHPORTS];
        struct worker_data worker[EVT_MAX_PORTS];
        struct evt_options *opt;
        uint8_t sched_type_list[EVT_MAX_STAGES] __rte_cache_aligned;
@@ -101,6 +101,14 @@ pipeline_fwd_event(struct rte_event *ev, uint8_t sched)
        ev->sched_type = sched;
 }
 
+static __rte_always_inline void
+pipeline_fwd_event_vector(struct rte_event *ev, uint8_t sched)
+{
+       ev->event_type = RTE_EVENT_TYPE_CPU_VECTOR;
+       ev->op = RTE_EVENT_OP_FORWARD;
+       ev->sched_type = sched;
+}
+
 static __rte_always_inline void
 pipeline_event_tx(const uint8_t dev, const uint8_t port,
                struct rte_event * const ev)
@@ -110,6 +118,16 @@ pipeline_event_tx(const uint8_t dev, const uint8_t port,
                rte_pause();
 }
 
+static __rte_always_inline void
+pipeline_event_tx_vector(const uint8_t dev, const uint8_t port,
+                        struct rte_event *const ev)
+{
+       ev->vec->queue = 0;
+
+       while (!rte_event_eth_tx_adapter_enqueue(dev, port, ev, 1, 0))
+               rte_pause();
+}
+
 static __rte_always_inline void
 pipeline_event_tx_burst(const uint8_t dev, const uint8_t port,
                struct rte_event *ev, const uint16_t nb_rx)