examples/eventdev_pipeline: use port config hints
This commit adds the per-port hints added to the eventdev API, indicating which eventdev ports will be used for producing, forwarding, or consuming events from the system. Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
976329581d
commit
2f2fcaed8b
@ -139,6 +139,7 @@ setup_eventdev_generic(struct worker_data *worker_data)
|
|||||||
.dequeue_depth = cdata.worker_cq_depth,
|
.dequeue_depth = cdata.worker_cq_depth,
|
||||||
.enqueue_depth = 64,
|
.enqueue_depth = 64,
|
||||||
.new_event_threshold = 4096,
|
.new_event_threshold = 4096,
|
||||||
|
.event_port_cfg = RTE_EVENT_PORT_CFG_HINT_WORKER,
|
||||||
};
|
};
|
||||||
struct rte_event_queue_conf wkr_q_conf = {
|
struct rte_event_queue_conf wkr_q_conf = {
|
||||||
.schedule_type = cdata.queue_type,
|
.schedule_type = cdata.queue_type,
|
||||||
@ -415,6 +416,7 @@ init_adapters(uint16_t nb_ports)
|
|||||||
.dequeue_depth = cdata.worker_cq_depth,
|
.dequeue_depth = cdata.worker_cq_depth,
|
||||||
.enqueue_depth = 64,
|
.enqueue_depth = 64,
|
||||||
.new_event_threshold = 4096,
|
.new_event_threshold = 4096,
|
||||||
|
.event_port_cfg = RTE_EVENT_PORT_CFG_HINT_PRODUCER,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (adptr_p_conf.new_event_threshold > dev_info.max_num_events)
|
if (adptr_p_conf.new_event_threshold > dev_info.max_num_events)
|
||||||
|
@ -446,6 +446,7 @@ setup_eventdev_worker_tx_enq(struct worker_data *worker_data)
|
|||||||
.dequeue_depth = cdata.worker_cq_depth,
|
.dequeue_depth = cdata.worker_cq_depth,
|
||||||
.enqueue_depth = 64,
|
.enqueue_depth = 64,
|
||||||
.new_event_threshold = 4096,
|
.new_event_threshold = 4096,
|
||||||
|
.event_port_cfg = RTE_EVENT_PORT_CFG_HINT_WORKER,
|
||||||
};
|
};
|
||||||
struct rte_event_queue_conf wkr_q_conf = {
|
struct rte_event_queue_conf wkr_q_conf = {
|
||||||
.schedule_type = cdata.queue_type,
|
.schedule_type = cdata.queue_type,
|
||||||
@ -743,6 +744,7 @@ init_adapters(uint16_t nb_ports)
|
|||||||
.dequeue_depth = cdata.worker_cq_depth,
|
.dequeue_depth = cdata.worker_cq_depth,
|
||||||
.enqueue_depth = 64,
|
.enqueue_depth = 64,
|
||||||
.new_event_threshold = 4096,
|
.new_event_threshold = 4096,
|
||||||
|
.event_port_cfg = RTE_EVENT_PORT_CFG_HINT_PRODUCER,
|
||||||
};
|
};
|
||||||
|
|
||||||
init_ports(nb_ports);
|
init_ports(nb_ports);
|
||||||
|
Loading…
Reference in New Issue
Block a user