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 449A7423FE; Tue, 17 Jan 2023 17:50:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03CDC400D4; Tue, 17 Jan 2023 17:50:27 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id D56EF400D4; Tue, 17 Jan 2023 17:50:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673974225; x=1705510225; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9GNg1tLdFnicFWHqkPheEgr/uWTKGtFjaJg6PABuFcM=; b=djc4ZYCvnDa0kiAnpv/5rVnw8T2nWbYEs+yFdH/JqkaUVRkLwU/qkWXZ ZlxyahUrWWqlDnnJWZVShxpzT67+lpzJLdKuFrmjPD7iVpe1OcAmxxLVo d0qvFVjYbZBtOSZmT8SMGVLHOUFao7xHQ3PYj66nHMZpg3tjWnFEkRnwd N57kRsNTeWMXWlzH6TSB7ah4o3+g7bZNlFd3BSC6D5JyqVyfyLtmUP4wU yFDYDTCtbNNK/Zx6D4yiluULNcT3r8MlJCmJNTDtv0kRkd77CKHeyFjqB WVmjmUQhg/go1ojJS/tNUnZ6Ztmy8s5GHSphJmUeNryywxc4NhDWGdlNt A==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326022052" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="326022052" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 08:50:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833235086" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833235086" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2023 08:50:22 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas , stable@dpdk.org Subject: [PATCH v1 01/13] test/bbdev: fix seg fault for non supported HARQ len Date: Tue, 17 Jan 2023 08:50:11 -0800 Message-Id: <20230117165023.20567-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230117165023.20567-1-hernan.vargas@intel.com> References: <20230117165023.20567-1-hernan.vargas@intel.com> 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 Catching a corner in bbdev-test (not in the actual PMD) when running some specific vectors which size are not supported by the PMD. Fixes: 335c11fd276 ("app/bbdev: support HARQ validation") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 3818b74c79..cc7b5481d6 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -84,7 +84,7 @@ /* Increment for next code block in external HARQ memory */ #define HARQ_INCR 32768 /* Headroom for filler LLRs insertion in HARQ buffer */ -#define FILLER_HEADROOM 1024 +#define FILLER_HEADROOM 2048 /* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define N_ZC_1 66 /* N = 66 Zc for BG 1 */ #define N_ZC_2 50 /* N = 50 Zc for BG 2 */ @@ -2111,9 +2111,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, ops_ld->n_filler; if (data_len > deRmOutSize) data_len = deRmOutSize; - if (data_len > orig_op->segments[i].length) - data_len = orig_op->segments[i].length; } + if (data_len > orig_op->segments[i].length) + data_len = orig_op->segments[i].length; /* * HARQ output can have minor differences * due to integer representation and related scaling -- 2.37.1