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 DDBB0A00C2 for ; Mon, 18 Jul 2022 14:59:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0BCF40F1A; Mon, 18 Jul 2022 14:59:59 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id B9AC240041; Mon, 18 Jul 2022 14:59:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658149197; x=1689685197; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=p1yqkhvO7HMXp5ON6NHK3WfJoDdPj11wFmuHQ4HxsQ4=; b=JiqI8HM9Xulze02umCvBS58b1km66xoN9sXbFeFcPcMGVyuxn+g5J6oA tiDXgkbgnZAFT9LQlpc2aBX6u82yTxiUgwpb0hOY2+ayXxj/ELvkcewen Bykmh8m2acNmyAn6yUo8eeHTGFYisKFJmnoG/JvrFXgc4VRXKTvM+660/ F5YzquDu8bVxb6HvJ5vXAMsp3wnRYMRxAKVBZmC3W0zsQtW3K2KFC14iL 0UxuR/P+fCmoBwGWasz0Eo6PkMpnXUjVwdCAD4QMSZyAUA6cWPhA48I3s p8p4plD15AxmetwhupotXCpAuxCDTUoTtr2ZlKE9HrRir+nfyB0QVgczX g==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="283777738" X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="283777738" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 05:59:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="629907006" Received: from silpixa00400573.ir.intel.com (HELO silpixa00400573.ger.corp.intel.com.) ([10.237.223.157]) by orsmga001.jf.intel.com with ESMTP; 18 Jul 2022 05:59:54 -0700 From: Cristian Dumitrescu To: dev@dpdk.org Cc: stable@dpdk.org Subject: [PATCH] pipeline: fix code generation for the recirculation ID instruction Date: Mon, 18 Jul 2022 12:59:53 +0000 Message-Id: <20220718125953.338665-1-cristian.dumitrescu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The "offset" and "n_bits" fields were generated incorrectly, hence the output C file was producing compilation errors when the "recircid" instruction was used. Fixes: 5ec76d29dc6 ("pipeline: support packet recirculation") Cc: stable@dpdk.org Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pipeline/rte_swx_pipeline.c b/lib/pipeline/rte_swx_pipeline.c index 732a064a60..3e1c6e9edb 100644 --- a/lib/pipeline/rte_swx_pipeline.c +++ b/lib/pipeline/rte_swx_pipeline.c @@ -11095,8 +11095,10 @@ instr_recircid_export(struct instruction *instr, FILE *f) "\t{\n" "\t\t.type = %s,\n" "\t\t.io = {\n" - "\t\t\t.offset = %u,\n" - "\t\t\t.n_bits = %u,\n" + "\t\t\t.io = {\n" + "\t\t\t\t.offset = %u,\n" + "\t\t\t\t.n_bits = %u,\n" + "\t\t\t},\n" "\t\t},\n" "\t},\n", instr_type_to_name(instr), -- 2.34.1