From patchwork Mon Jun 20 16:31:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= X-Patchwork-Id: 113126 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 84B31A0545; Mon, 20 Jun 2022 18:32:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76F064069C; Mon, 20 Jun 2022 18:32:14 +0200 (CEST) Received: from guvercin.ceng.metu.edu.tr (guvercin.ceng.metu.edu.tr [144.122.171.43]) by mails.dpdk.org (Postfix) with ESMTP id DBEFC40151; Mon, 20 Jun 2022 18:32:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by guvercin.ceng.metu.edu.tr (Postfix) with ESMTP id 452752CE10; Mon, 20 Jun 2022 19:32:12 +0300 (+03) X-Virus-Scanned: Debian amavisd-new at ceng.metu.edu.tr Received: from guvercin.ceng.metu.edu.tr ([127.0.0.1]) by localhost (guvercin.ceng.metu.edu.tr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5uvLVT9Zmz2J; Mon, 20 Jun 2022 19:32:01 +0300 (+03) Received: from dmu.otak.ist (unknown [212.156.37.190]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: e1885458) by guvercin.ceng.metu.edu.tr (Postfix) with ESMTPSA id 193262C6E4; Mon, 20 Jun 2022 19:31:59 +0300 (+03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ceng.metu.edu.tr; s=mail; t=1655742720; bh=hBsYhvYJVrA3yrfE7Iwm6MAkplc6XOzCtuA2sxYepFw=; h=From:To:Cc:Subject:Date:From; b=PkVDMqDefdsXcQcIovYEImv4A0tTQDyT/0Wi8FVX+b/HZvVeTGspsAJ7kLplR6FPq rsje5ZYt0VWKBnSPldiNZVbsF1IfnE3uh6CRPwisCNUW0TfT0JJlPpBclKe6I3WGaJ H4pXis0bROMfS81rLi20rnmBFQ0IvDF4P59HxGM4= From: =?utf-8?b?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= To: david.hunt@intel.com Cc: dev@dpdk.org, =?utf-8?b?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= , stable@dpdk.org Subject: [PATCH] examples/distributor: fix syntax on single core rx and distributor Date: Mon, 20 Jun 2022 19:31:46 +0300 Message-Id: <20220620163146.51435-1-omer.yamac@ceng.metu.edu.tr> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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 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ç Acked-by: Ferruh Yigit Tested-by: David Hunt --- Cc: david.hunt@intel.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;