Skip to contentSkip to conversation

examples/l3fwd: fix Rx burst size for event mode

PATCH In review [email protected] 3 participants 3 messages Jan 11, 2022 – Jan 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/l3fwd: fix Rx burst size for event mode

From: Nipun Gupta <[email protected]>

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")
---
 examples/l3fwd/l3fwd_event_internal_port.c | 2 ++
 1 file changed, 2 insertions(+)
examples/l3fwd/l3fwd_event_internal_port.c +2 -0
index 1e8f46bc11..32cf657148 100644
@@ -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,
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw

Regards
Sunil Kumar Kori

Quoted 40 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Tuesday, January 11, 2022 10:36 AM
To: [email protected]
Cc: Jerin Jacob Kollanukkaran <[email protected]>; Sunil Kumar Kori <[email protected]>; [email protected]; [email protected]; [email protected]; Nipun Gupta <[email protected]>
Subject: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode

External Email

----------------------------------------------------------------------
From: Nipun Gupta <[email protected]>

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")

---
examples/l3fwd/l3fwd_event_internal_port.c | 2 ++

1 file changed, 2 insertions(+)
examples/l3fwd/l3fwd_event_internal_port.c +2 -0
index 1e8f46bc11..32cf657148 100644
@@ -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++)
 {
Quoted 3 lines

ret = rte_event_port_setup(event_d_id, event_p_id,
--
2.17.1

#2 lore raw
Quoted 21 lines · Sunil Kumar Kori

Regards
Sunil Kumar Kori

Quoted 15 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Tuesday, January 11, 2022 10:36 AM
To: [email protected]
Cc: Jerin Jacob Kollanukkaran <[email protected]>; Sunil Kumar Kori <[email protected]>; [email protected]; [email protected]; [email protected]; Nipun Gupta <[email protected]>
Subject: [EXT] [PATCH] examples/l3fwd: fix Rx burst size for event mode

External Email

----------------------------------------------------------------------
From: Nipun Gupta <[email protected]>

While dequeing the packets from the event device, burst size is provided in

dequeuing

Quoted 1 line
Quoted 1 line

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

configured

Quoted 11 lines
Quoted 7 lines

correctly configures the burst size.

Fixes aaf58cb85b62 ("examples/l3fwd: add event port and queue setup")

---

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