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 89A28A0503; Fri, 20 May 2022 05:46:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0243542B7A; Fri, 20 May 2022 05:45:38 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D0BE342B6D for ; Fri, 20 May 2022 05:45:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653018333; x=1684554333; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JZnIEp6rO4oIstyTE7fPCV+yfsCdig4EZgHsW18cQ0A=; b=kNFpLf52par0wpiCsotQ/4nKtgGK8nQtkfWlu1acDYL+9xaZeFwxswD7 +cr58AnU5XLRi5vx49plMQuTR9n7z/JJMuAmozoWb34pN/jZW2UhQ9NsO 6uYxmRnCecidh+TqWUINp5mHB5K0krNSpKJ3OHK3BoMcdq0fZh/mqLnXO PXw1z5dDTofnUdQR4Tv3xBnMg1GTLW97oKfX52WwZC/1UH3hUA4Ax73x5 x0rwbwYJqhLjSwJ9nv0WAedVUjoj7LNwebvIKCCIWvwTPtE2T88YLKrR3 hEHNJkX4DtLdzHutc35lkqfjHixl1BWVpyK00DM4qu4YlSGQZoXMs0koX Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="272603044" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="272603044" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 20:43:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="598980683" Received: from flexran-pae-icx01.an.intel.com (HELO pae-M50CYP2SBSTD.an.intel.com) ([10.123.100.83]) by orsmga008.jf.intel.com with ESMTP; 19 May 2022 20:43:47 -0700 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Subject: [PATCH v2 3/5] baseband/fpga_5gnr_fec: add check for HARQ input length Date: Thu, 19 May 2022 22:05:54 -0500 Message-Id: <20220520030556.3475133-4-hernan.vargas@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520030556.3475133-1-hernan.vargas@intel.com> References: <20220520030556.3475133-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 From: Hernan Add new case DESC_ERR_HARQ_INPUT_LEN to check for valid HARQ input length. Signed-off-by: Hernan --- drivers/baseband/fpga_5gnr_fec/fpga_5gnr_fec.h | 1 + drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/baseband/fpga_5gnr_fec/fpga_5gnr_fec.h b/drivers/baseband/fpga_5gnr_fec/fpga_5gnr_fec.h index 993cf61974..e3038112fa 100644 --- a/drivers/baseband/fpga_5gnr_fec/fpga_5gnr_fec.h +++ b/drivers/baseband/fpga_5gnr_fec/fpga_5gnr_fec.h @@ -107,6 +107,7 @@ enum { DESC_ERR_DESC_READ_FAIL = 0x8, DESC_ERR_DESC_READ_TIMEOUT = 0x9, DESC_ERR_DESC_READ_TLP_POISONED = 0xA, + DESC_ERR_HARQ_INPUT_LEN = 0xB, DESC_ERR_CB_READ_FAIL = 0xC, DESC_ERR_CB_READ_TIMEOUT = 0xD, DESC_ERR_CB_READ_TLP_POISONED = 0xE, diff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c index 435b4d90d8..2d4b58067d 100644 --- a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c +++ b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c @@ -848,6 +848,9 @@ check_desc_error(uint32_t error_code) { case DESC_ERR_DESC_READ_TLP_POISONED: rte_bbdev_log(ERR, "Descriptor read TLP poisoned"); break; + case DESC_ERR_HARQ_INPUT_LEN: + rte_bbdev_log(ERR, "HARQ input length is invalid"); + break; case DESC_ERR_CB_READ_FAIL: rte_bbdev_log(ERR, "Unsuccessful completion for code block"); break; -- 2.25.1