DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] examples/l3fwd: set default schedule type as atomic
@ 2020-01-06  4:34 Nipun Gupta
  2020-01-06  4:34 ` [dpdk-dev] [PATCH 2/2] examples/l3fwd: support multiple queues in event mode Nipun Gupta
  2020-01-07 12:22 ` [dpdk-dev] [PATCH 1/2 v2] examples/l3fwd: set default schedule type as atomic Nipun Gupta
  0 siblings, 2 replies; 6+ messages in thread
From: Nipun Gupta @ 2020-01-06  4:34 UTC (permalink / raw)
  To: dev
  Cc: pbhagavatula, jerinj, hemant.agrawal, akhil.goyal,
	marko.kovacevic, orika, bruce.richardson, radu.nicolau,
	tomasz.kantecki, skori, Nipun Gupta

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>

---
These patches are based over https://patchwork.dpdk.org/patch/63553/.
Feel free to merge into the series.

 examples/l3fwd/l3fwd_event.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/l3fwd/l3fwd_event.h b/examples/l3fwd/l3fwd_event.h
index fcc0ce51a..470aedc61 100644
--- a/examples/l3fwd/l3fwd_event.h
+++ b/examples/l3fwd/l3fwd_event.h
@@ -100,7 +100,11 @@ l3fwd_get_eventdev_rsrc(void)
 	mz = rte_memzone_reserve(name, sizeof(struct l3fwd_event_resources),
 				 0, 0);
 	if (mz != NULL) {
+		struct l3fwd_event_resources *rsrc = mz->addr;
+
 		memset(mz->addr, 0, sizeof(struct l3fwd_event_resources));
+		rsrc->sched_type = RTE_SCHED_TYPE_ATOMIC;
+
 		return mz->addr;
 	}
 
-- 
2.17.1


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

end of thread, other threads:[~2020-01-07 12:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06  4:34 [dpdk-dev] [PATCH 1/2] examples/l3fwd: set default schedule type as atomic Nipun Gupta
2020-01-06  4:34 ` [dpdk-dev] [PATCH 2/2] examples/l3fwd: support multiple queues in event mode Nipun Gupta
2020-01-06  6:09   ` [dpdk-dev] [EXT] " Sunil Kumar Kori
2020-01-06 17:47     ` Nipun Gupta
2020-01-07 12:22 ` [dpdk-dev] [PATCH 1/2 v2] examples/l3fwd: set default schedule type as atomic Nipun Gupta
2020-01-07 12:22   ` [dpdk-dev] [PATCH 2/2 v2] examples/l3fwd: support multiple eth Rx queues in event mode Nipun Gupta

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