DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] examples/l3fwd: fix Rx burst size for event mode
@ 2022-01-11  5:05 nipun.gupta
  2022-01-18 10:38 ` [EXT] " Sunil Kumar Kori
  0 siblings, 1 reply; 3+ messages in thread
From: nipun.gupta @ 2022-01-11  5:05 UTC (permalink / raw)
  To: dev; +Cc: jerinj, skori, thomas, hemant.agrawal, stable, Nipun Gupta

From: Nipun Gupta <nipun.gupta@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@dpdk.org

Signed-off-by: Nipun Gupta <nipun.gupta@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode
  2022-01-11  5:05 [PATCH] examples/l3fwd: fix Rx burst size for event mode nipun.gupta
@ 2022-01-18 10:38 ` Sunil Kumar Kori
  2022-01-21 11:58   ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Sunil Kumar Kori @ 2022-01-18 10:38 UTC (permalink / raw)
  To: nipun.gupta, dev
  Cc: Jerin Jacob Kollanukkaran, thomas, hemant.agrawal, stable



Regards
Sunil Kumar Kori

>-----Original Message-----
>From: nipun.gupta@nxp.com <nipun.gupta@nxp.com>
>Sent: Tuesday, January 11, 2022 10:36 AM
>To: dev@dpdk.org
>Cc: Jerin Jacob Kollanukkaran <jerinj@marvell.com>; Sunil Kumar Kori
><skori@marvell.com>; thomas@monjalon.net; hemant.agrawal@nxp.com;
>stable@dpdk.org; Nipun Gupta <nipun.gupta@nxp.com>
>Subject: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode
>
>External Email
>
>----------------------------------------------------------------------
>From: Nipun Gupta <nipun.gupta@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@dpdk.org
>
>Signed-off-by: Nipun Gupta <nipun.gupta@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@mavell.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode
  2022-01-18 10:38 ` [EXT] " Sunil Kumar Kori
@ 2022-01-21 11:58   ` Jerin Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2022-01-21 11:58 UTC (permalink / raw)
  To: Sunil Kumar Kori
  Cc: nipun.gupta, dev, Jerin Jacob Kollanukkaran, thomas,
	hemant.agrawal, stable

On Tue, Jan 18, 2022 at 4:08 PM Sunil Kumar Kori <skori@marvell.com> wrote:
>
>
>
> Regards
> Sunil Kumar Kori
>
> >-----Original Message-----
> >From: nipun.gupta@nxp.com <nipun.gupta@nxp.com>
> >Sent: Tuesday, January 11, 2022 10:36 AM
> >To: dev@dpdk.org
> >Cc: Jerin Jacob Kollanukkaran <jerinj@marvell.com>; Sunil Kumar Kori
> ><skori@marvell.com>; thomas@monjalon.net; hemant.agrawal@nxp.com;
> >stable@dpdk.org; Nipun Gupta <nipun.gupta@nxp.com>
> >Subject: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode
> >
> >External Email
> >
> >----------------------------------------------------------------------
> >From: Nipun Gupta <nipun.gupta@nxp.com>
> >
> >While dequeing the packets from the event device, burst size is provided in

dequeuing

> >the API. This was not getting properly conigured in the application. This patch

configured

> >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@mavell.com>
>

Fixed above typo
Applied to dpdk-next-net-eventdev/for-main. Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-21 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11  5:05 [PATCH] examples/l3fwd: fix Rx burst size for event mode nipun.gupta
2022-01-18 10:38 ` [EXT] " Sunil Kumar Kori
2022-01-21 11:58   ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).