[dpdk-dev] [PATCH v3 05/10] examples/l2fwd-event: add eventdev queue and port setup

Sunil Kumar Kori skori at marvell.com
Thu Sep 19 12:35:18 CEST 2019


>+static void
>+event_port_setup_generic(void)
>+{
>+	struct eventdev_resources *eventdev_rsrc = get_eventdev_rsrc();
>+	uint8_t event_d_id = eventdev_rsrc->event_d_id;
>+	struct rte_event_port_conf event_p_conf = {
>+		.dequeue_depth = 32,
>+		.enqueue_depth = 32,
>+		.new_event_threshold = 4096
>+	};
>+	struct rte_event_port_conf def_p_conf;
>+	uint8_t event_p_id;
>+	int32_t ret;
>+
>+	/* Service cores are not used to run worker thread */
>+	eventdev_rsrc->evp.nb_ports = eventdev_rsrc->evp.nb_ports;
Is this line needed ?



More information about the dev mailing list