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 CC44FA0560; Mon, 21 Nov 2022 15:24:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74AD142D0B; Mon, 21 Nov 2022 15:24:44 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id F4053400EF; Mon, 21 Nov 2022 15:24:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669040682; x=1700576682; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FrDsEHKZ44rMRNBTbRv9DualuaonSzbHpE1/jg5m8LI=; b=l8BGEYrI1Fje3YSDZ45Io/S5jMJ2VUscrBYomzjG/1dpLoQv8TwG2j1z U5z2WfetFL82qlWczKyBilbVv27Xle1B/qtA7m7aUqsbuqjXjw2bLwdKM huZFXrnPPoMtZbmrWSU6pE0OwW8EEnx/zufM5w31FnM1Xex4yxCi/TJpD OwYRtGUxxGfmc1PDEJnp2d32F2b7BMabDQ9LyJ44xXafS4MIEUxJYiDbL sinTAO2hEyWmaQ2EtHRSuyfWpZjwUqSFbCi4TS88Afz3OKaMgs7/0hjqA 0hzCrOOhxpHZETnSqsbn/eqHBufURZ0NvO3UMjCNPacnHl//Ysbw1ExZH Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="296923893" X-IronPort-AV: E=Sophos;i="5.96,181,1665471600"; d="scan'208";a="296923893" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 06:24:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="618839813" X-IronPort-AV: E=Sophos;i="5.96,181,1665471600"; d="scan'208";a="618839813" Received: from silpixa00400573.ir.intel.com (HELO silpixa00400573.ger.corp.intel.com.) ([10.237.223.157]) by orsmga006.jf.intel.com with ESMTP; 21 Nov 2022 06:24:39 -0800 From: Cristian Dumitrescu To: dev@dpdk.org Cc: Yogesh Jangra , stable@dpdk.org Subject: [PATCH] pipeline: fix validate header instruction Date: Mon, 21 Nov 2022 14:24:38 +0000 Message-Id: <20221121142438.3740561-1-cristian.dumitrescu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Yogesh Jangra The exported data structure for the header validate instruction did not populate its struct_id field, which results in segmentation fault. Fixes: 216bc906d00 ("pipeline: export pipeline instructions to file") Cc: stable@dpdk.org Signed-off-by: Yogesh Jangra Acked-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pipeline/rte_swx_pipeline.c b/lib/pipeline/rte_swx_pipeline.c index 232dafb95e..0e631dea2b 100644 --- a/lib/pipeline/rte_swx_pipeline.c +++ b/lib/pipeline/rte_swx_pipeline.c @@ -11793,10 +11793,12 @@ instr_hdr_validate_export(struct instruction *instr, FILE *f) "\t\t.type = %s,\n" "\t\t.valid = {\n" "\t\t\t.header_id = %u,\n" + "\t\t\t.struct_id = %u,\n" "\t\t},\n" "\t},\n", instr_type_to_name(instr), - instr->valid.header_id); + instr->valid.header_id, + instr->valid.struct_id); } static void -- 2.25.1