From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D098A04F1; Mon, 6 Jan 2020 05:51:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 259321D5A5; Mon, 6 Jan 2020 05:51:56 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id F38771D5A4 for ; Mon, 6 Jan 2020 05:51:54 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 93F56200650; Mon, 6 Jan 2020 05:51:54 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A5B6E200B57; Mon, 6 Jan 2020 05:51:48 +0100 (CET) Received: from GDB1.ap.freescale.net (gdb1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0235640286; Mon, 6 Jan 2020 12:51:40 +0800 (SGT) From: Nipun Gupta To: dev@dpdk.org Cc: pbhagavatula@marvell.com, jerinj@marvell.com, hemant.agrawal@nxp.com, akhil.goyal@nxp.com, marko.kovacevic@intel.com, orika@mellanox.com, bruce.richardson@intel.com, radu.nicolau@intel.com, tomasz.kantecki@intel.com, skori@marvell.com, Nipun Gupta Date: Mon, 6 Jan 2020 10:04:44 +0530 Message-Id: <20200106043445.14334-1-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 1/2] examples/l3fwd: set default schedule type as atomic X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Nipun Gupta --- 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