]> git.droids-corp.org - dpdk.git/commitdiff
examples/l3fwd: fix Rx burst size for event mode
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 11 Jan 2022 05:05:46 +0000 (10:35 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 21 Jan 2022 11:57:52 +0000 (12:57 +0100)
While dequeuing the packets from the event device, burst size
is provided in the API. This was not getting properly
configured in the application. This patch correctly configures
the burst size.

Fixes: aaf58cb85b62 ("examples/l3fwd: add event port and queue setup")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Sunil Kumar Kori <skori@marvell.com>
examples/l3fwd/l3fwd_event_internal_port.c

index 1e8f46bc114a4c2faf6d8185b0f5bc9c2ba3b666..32cf65714802161da492cbd84cecc3d31dea1e86 100644 (file)
@@ -118,6 +118,8 @@ l3fwd_event_port_setup_internal_port(void)
                event_p_conf.event_port_cfg |=
                        RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL;
 
+       evt_rsrc->deq_depth = def_p_conf.dequeue_depth;
+
        for (event_p_id = 0; event_p_id < evt_rsrc->evp.nb_ports;
                                                                event_p_id++) {
                ret = rte_event_port_setup(event_d_id, event_p_id,