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 88D6941C56; Thu, 9 Feb 2023 23:23:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90EEE42D2C; Thu, 9 Feb 2023 23:23:13 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 95A3942686; Thu, 9 Feb 2023 23:23:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675981389; x=1707517389; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2/L+4hDovLmOazI/dUjuCBuVZPmD1Y9R6MrBT4X0aZc=; b=AeU4d32jNWIpIDIrbO47f8NPVoo+niKLyqsWKIYiIdwlC0pPZiRkJvP+ KXVLRXTHYV7/IXnn2u/YoZ79KUiIAhlrupXsbdaVUXuXNM3KTPp573ApL QFF2Lhlzp+NMX0+JOr0K84jry65NmmY4SBYA94SpC12h/BzQjGNeNb+em 4E4btBe9KUrmSzTQIzruKcmPg8Ef9YtkOyf8lI2xLmGjSAmcnmTIvB4QY +OlkYHWjxMGm3hEdIWfxzHOtddyeIQMerxuyD3ekMyajKY1HvUZcTdbGK lgoxniTJ+FJTcD6ZhP9e+Bbf8+3edgw5hAmLGszzelY/Zk1QVvErFYG5E A==; X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="331563040" X-IronPort-AV: E=Sophos;i="5.97,285,1669104000"; d="scan'208";a="331563040" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2023 14:23:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="736513270" X-IronPort-AV: E=Sophos;i="5.97,285,1669104000"; d="scan'208";a="736513270" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmsmga004.fm.intel.com with ESMTP; 09 Feb 2023 14:23:05 -0800 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hernan.vargas@intel.com, stable@dpdk.or, Nicolas Chautru , stable@dpdk.org Subject: [PATCH v1 4/9] baseband/acc: add explicit mbuf apend for soft output Date: Thu, 9 Feb 2023 22:19:24 +0000 Message-Id: <20230209221929.265059-5-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230209221929.265059-1-nicolas.chautru@intel.com> References: <20230209221929.265059-1-nicolas.chautru@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 Adding an explicit mbuf append in the case of soft output mbuf being provided. Fixes: e640f6cdfa84 ("baseband/acc200: add LDPC processing") Cc: stable@dpdk.org Signed-off-by: Nicolas Chautru --- drivers/baseband/acc/rte_vrb_pmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/baseband/acc/rte_vrb_pmd.c b/drivers/baseband/acc/rte_vrb_pmd.c index a111836e51..8540e3d31c 100644 --- a/drivers/baseband/acc/rte_vrb_pmd.c +++ b/drivers/baseband/acc/rte_vrb_pmd.c @@ -2067,6 +2067,10 @@ vrb_enqueue_ldpc_dec_one_op_cb(struct acc_queue *q, struct rte_bbdev_dec_op *op, } } + if (op->ldpc_dec.soft_output.length > 0) + mbuf_append(op->ldpc_dec.soft_output.data, op->ldpc_dec.soft_output.data, + op->ldpc_dec.soft_output.length); + #ifdef RTE_LIBRTE_BBDEV_DEBUG rte_memdump(stderr, "FCW", &desc->req.fcw_ld, sizeof(desc->req.fcw_ld) - 8); -- 2.34.1