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 0E36841C50; Fri, 10 Feb 2023 19:03:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4EF842D30; Fri, 10 Feb 2023 19:02:50 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 4C243410EA; Fri, 10 Feb 2023 19:02:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676052165; x=1707588165; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XPBK/EtocLNp14Oh6Pl1sw4mDQbN7SOQ8ZmS4MCmHqE=; b=NinAGB5F+dC4MEY0eBwoC5N0pAomESROTkRYVfGdkF3EvjgJzRSxkWBV OV4V1igw0yfHzAyJy0g5ITClHK12qqKl3WxSoNZ4YfLBDqiiV+ec2SoEe vpdsbkU6UDbt3w10B0ceVhMOeDYo3SOnM7zVlkhHQcRGXo8C0A/HM8KDG fa9E2F5gt5Kv/B8yziO/0egOq7tnUJ8aeipO7067mfwzHk57/0EU2HstA 8uG8ctTWV2PUmh3J27TIECI/JCr02nO99HougQn6CTlB6qGwxw+MH0ERy XXirPGIeYidtFLgv0g/iGqotiIPjIhM+3czxuabo/admBwdR7GnDr0eRL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10617"; a="310117907" X-IronPort-AV: E=Sophos;i="5.97,287,1669104000"; d="scan'208";a="310117907" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2023 10:02:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10617"; a="670076709" X-IronPort-AV: E=Sophos;i="5.97,287,1669104000"; d="scan'208";a="670076709" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmsmga007.fm.intel.com with ESMTP; 10 Feb 2023 10:02:14 -0800 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hernan.vargas@intel.com, stable@dpdk.org, Nicolas Chautru Subject: [PATCH v2 3/9] baseband/acc: add explicit mbuf append for soft output Date: Fri, 10 Feb 2023 17:58:35 +0000 Message-Id: <20230210175841.303450-4-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230210175841.303450-1-nicolas.chautru@intel.com> References: <20230209221929.265059-2-nicolas.chautru@intel.com> <20230210175841.303450-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 Reviewed-by: Maxime Coquelin --- 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 fc68f47ca6..b1134f244d 100644 --- a/drivers/baseband/acc/rte_vrb_pmd.c +++ b/drivers/baseband/acc/rte_vrb_pmd.c @@ -2066,6 +2066,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