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 0DFDB42A01; Wed, 26 Apr 2023 11:23:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9204A410FA; Wed, 26 Apr 2023 11:23:16 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3567F40DDA for ; Wed, 26 Apr 2023 11:23:15 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33Q8l5i8022902; Wed, 26 Apr 2023 02:23:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=VvcOnAaTkrMsYBHZ6hDWl8NPKlOUA2/zZWFQzescmfQ=; b=J7hoQV7nhRA7jtsbtDN5UXjyhQOsMufFAzbFEaDjZHBCPhCtWEZdqCu6PurAN6ZrY1Es XSgCfxEDwrNbijpF7YCH9RjVnlDRgYvKXEXcX702kZVgY3apTjABK6YfQ5+iCPnSyGsr mccxGjlozdL1V06t12t7JWWRAcpiuPVQf6nQAhuMTIksDXajKB45hfVNtxmi2oNUhzQo VA/3Vw0/5OLGIvnBi4UTkTkWOH0/Q94arISc59gTJ4SRlJqaTVraTKh68FxnxHokAumL FMTfs7CHJ9Z9CoOn/HJpVMUxkxXC6UH6Wusx5h/ZI1ha680myINbl67HORjr4FprvUXW iQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3q4f3pdvyk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Apr 2023 02:23:13 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 26 Apr 2023 02:23:11 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 26 Apr 2023 02:23:11 -0700 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id 2C0813F7044; Wed, 26 Apr 2023 02:23:09 -0700 (PDT) From: Rakesh Kudurumalla To: Olivier Matz CC: , , , "Rakesh Kudurumalla" Subject: [PATCH 1/1] app/test: resolve mbuf_test application failure Date: Wed, 26 Apr 2023 14:53:03 +0530 Message-ID: <20230426092303.2423712-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: GYxFVGUNQ5k1ELq7_6ShTNuMuW2923K4 X-Proofpoint-GUID: GYxFVGUNQ5k1ELq7_6ShTNuMuW2923K4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-26_04,2023-04-26_01,2023-02-09_01 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 when RTE_ENABLE_ASSERT is defined test_mbuf application is failing because we are trying to attach extbuf to a cloned buffer to which external mbuf is already attached.This patch fixes the same. Signed-off-by: Rakesh Kudurumalla Change-Id: Ia5a0f8a81036e12a1cfec82e61bfd6f1d0c6f89e --- app/test/test_mbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 8d8d3b9386..e2b81db308 100644 --- a/app/test/test_mbuf.c +++ b/app/test/test_mbuf.c @@ -2375,6 +2375,7 @@ test_pktmbuf_ext_shinfo_init_helper(struct rte_mempool *pktmbuf_pool) GOTO_FAIL("%s: Bad packet length\n", __func__); /* attach the same external buffer to the cloned mbuf */ + clone->ol_flags = 0; rte_pktmbuf_attach_extbuf(clone, ext_buf_addr, buf_iova, buf_len, ret_shinfo); if (clone->ol_flags != RTE_MBUF_F_EXTERNAL) -- 2.25.1