[EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode

Sunil Kumar Kori skori at marvell.com
Tue Jan 18 11:38:38 CET 2022



Regards
Sunil Kumar Kori

>-----Original Message-----
>From: nipun.gupta at nxp.com <nipun.gupta at nxp.com>
>Sent: Tuesday, January 11, 2022 10:36 AM
>To: dev at dpdk.org
>Cc: Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Sunil Kumar Kori
><skori at marvell.com>; thomas at monjalon.net; hemant.agrawal at nxp.com;
>stable at dpdk.org; Nipun Gupta <nipun.gupta at nxp.com>
>Subject: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode
>
>External Email
>
>----------------------------------------------------------------------
>From: Nipun Gupta <nipun.gupta at nxp.com>
>
>While dequeing the packets from the event device, burst size is provided in
>the API. This was not getting properly conigured in the application. This patch
>correctly configures the burst size.
>
>Fixes: aaf58cb85b62 ("examples/l3fwd: add event port and queue setup")
>Cc: stable at dpdk.org
>
>Signed-off-by: Nipun Gupta <nipun.gupta at nxp.com>
>---
> examples/l3fwd/l3fwd_event_internal_port.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/examples/l3fwd/l3fwd_event_internal_port.c
>b/examples/l3fwd/l3fwd_event_internal_port.c
>index 1e8f46bc11..32cf657148 100644
>--- a/examples/l3fwd/l3fwd_event_internal_port.c
>+++ b/examples/l3fwd/l3fwd_event_internal_port.c
>@@ -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,
>--
>2.17.1

Acked-by: Sunil Kumar Kori <skori at mavell.com>



More information about the stable mailing list