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 A2446A04FD for ; Wed, 22 Jun 2022 08:02:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70BE64281A; Wed, 22 Jun 2022 08:02:14 +0200 (CEST) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by mails.dpdk.org (Postfix) with ESMTP id D3BA840151 for ; Mon, 20 Jun 2022 15:29:05 +0200 (CEST) Received: by mail-ej1-f46.google.com with SMTP id h23so21088991ejj.12 for ; Mon, 20 Jun 2022 06:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yvgWTVB7SheVwPRvbJk1vfo0nv5b4aBoHkaQuOepbHM=; b=K6H1cTAl4TKFlG+9RbPq6rHIE/HGV2RoLg2DWJ3nVvgQRkgTP4wcM3Ws+igK8QWAsl UP4wUP4dsn7pVN2AoSu7E4HBYyBnuq0xxe+fLNnDf0g8k0ySJjkfged0+4+JKEm97kY4 en5F5WvllHYJIrwk/FFIhrUCxgEe/tJZxuH/R1LW+yLPvNdfdmxMKTLCNVXzbw87bBko XGKzS3LcO9mp9L5+CV8tjGHMWZsm50R1aQb0nYvfNN+dvSPUHzancA3qQbxgmf/b3ao1 0CeKqIFh648jjBH40gOTkayUsTXyeVqh+SSbUfVmgu3n29Fkxn2YYJFUdiae2ct7NInb Oymw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yvgWTVB7SheVwPRvbJk1vfo0nv5b4aBoHkaQuOepbHM=; b=kbcoxB1h3KjJ8FsFOJ8KrC0AHWf+xeibYdB9RDNneRbcv/IJGdyfsBekx8AAVOTkMl 8n1zYPfKdjroHuFyW0xuWhST9F365NGUWy5hfEFp+c6cTBSkZkjBTeNprxM6tax2JkIX /AYDeN72GcSHFg55QDijJvDfLL5oA1A+v/ZnpV78NhKHd5mfLeC7cxOv1QfwsHeqwVum fl5butVWGUoUrEhw4+C+f8BghRXozp5usrMuUWMSV+9T6rxFjYkzGlI+x8ZcAlQrjh9I C3cpVpJ4iLCA69s9hiooVO0dKLHi2dfchgvjQpn4LzsnzOlE0nP7x3hmIwMwXxD8u8NK 7aoQ== X-Gm-Message-State: AJIora9h8joxZkDW0GOt0EFyV9Hq64qaRvwfYh/AA8L/lO5Pfo7ZgJ2Y +4+3HNIqSJrqDZhScgXUbC81KZiJdmM= X-Google-Smtp-Source: AGRyM1v39rxwktv8MG1haCIpKkohhkYL3XTOCTj/GA20aLLXk32oYrqOapzbg2sEhJIBagk8Cs7nBg== X-Received: by 2002:a17:907:7781:b0:6fe:4398:47b3 with SMTP id ky1-20020a170907778100b006fe439847b3mr20977085ejc.513.1655731745455; Mon, 20 Jun 2022 06:29:05 -0700 (PDT) Received: from dmu.otak.ist ([212.156.37.190]) by smtp.gmail.com with ESMTPSA id u6-20020a05640207c600b004355cb1e77esm8182233edy.91.2022.06.20.06.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 06:29:05 -0700 (PDT) From: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= To: omer.yamac@ceng.metu.edu.tr Cc: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= , stable@dpdk.org, omeryamac06@gmail.com Subject: [PATCH] examples/distributor: fix syntax error on single core for rx and distributor Date: Mon, 20 Jun 2022 16:29:02 +0300 Message-Id: <20220620132902.41701-1-aomeryamac@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 22 Jun 2022 08:02:13 +0200 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This patch fixes the syntax error when using the single-core for both rx and distributor functions. Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core") Cc: stable@dpdk.org Signed-off-by: Abdullah Ömer Yamaç --- Cc: omeryamac06@gmail.com --- examples/distributor/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 02bf91f555..8995806b4e 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -261,8 +261,8 @@ lcore_rx(struct lcore_params *p) * packets are then send straight to the tx core. */ #if 0 - rte_distributor_process(d, bufs, nb_rx); - const uint16_t nb_ret = rte_distributor_returned_pktsd, + rte_distributor_process(p->d, bufs, nb_rx); + const uint16_t nb_ret = rte_distributor_returned_pkts(p->d, bufs, BURST_SIZE*2); app_stats.rx.returned_pkts += nb_ret; -- 2.27.0