[1/2] examples/l3fwd: set default schedule type as atomic

Message ID 20200106043445.14334-1-nipun.gupta@nxp.com (mailing list archive)
State Superseded, archived
Headers
Series [1/2] examples/l3fwd: set default schedule type as atomic |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation fail apply issues

Commit Message

Nipun Gupta Jan. 6, 2020, 4:34 a.m. UTC
  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(+)
  

Patch

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;
 	}