From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2039FA034D; Tue, 11 Jan 2022 06:05:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0932341190; Tue, 11 Jan 2022 06:05:50 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id 5956241183; Tue, 11 Jan 2022 06:05:48 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 30E2C201A18; Tue, 11 Jan 2022 06:05:48 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EBD42200084; Tue, 11 Jan 2022 06:05:47 +0100 (CET) Received: from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com [92.120.147.114]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id DC08E183ABF3; Tue, 11 Jan 2022 13:05:46 +0800 (+08) From: nipun.gupta@nxp.com To: dev@dpdk.org Cc: jerinj@marvell.com, skori@marvell.com, thomas@monjalon.net, hemant.agrawal@nxp.com, stable@dpdk.org, Nipun Gupta Subject: [PATCH] examples/l3fwd: fix Rx burst size for event mode Date: Tue, 11 Jan 2022 10:35:46 +0530 Message-Id: <20220111050546.13003-1-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Nipun Gupta 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 --- 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