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 3648043BED; Mon, 26 Feb 2024 14:00:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 013D242E1B; Mon, 26 Feb 2024 14:00:28 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id C6FCF40144 for ; Mon, 26 Feb 2024 14:00:24 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41QCIiQ6011614; Mon, 26 Feb 2024 05:00:23 -0800 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wfgun4x9k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 05:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H4o/QCPSXsdHyilKS9cN6cBX/wuZQ9tiS+19g6pNO2cn6ThnSgE3M5fAKYYS2mJM+PgTsflQDCiECb+oQ0DzUCopizXJvMXlSDh9905Y0hJZ1VcD0hIAkpqZJKNK5AYPjT1PLLbXPxyEBZixt8OFUPxatRFIrDPMEHzEtocWLcRF8BvTG/nzRIfag9czmLRMZhZvVoZWA01erowzl5DIK0Q91jltFA3bI0ML3R+EyTyqxVFSthHlWYURsRd87H+z/DL+Q8JkNOSH//L+HIRLssFYxN6cTW/gOHF7x4OjuqflvJolV3MzIiR23NVG7Cvk5mkLW1bA9twf/pc2ITjq3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4Oo9XHbrkzfgr7SB/57KtPPGMcYeRFxSfKtTsfHkXec=; b=HI3pJswU8V+gKcWLRI7DQqShThYnXZ5fOE6QytP9beAZh3/7uSoSDVae/HO5mvJoR/TlykiMwxkpqBFcYvtwOTx2E6lPYNnOkkwzgPgH/FMBbix7cvr/K2HiCa2SIH0UPhq4nHmqlb3d/QHDz7ZOvuTPVXLuMlqQqy/3nuNSSVzr/fmG4Yd73zJs/Vyuo9jVMI2hUsS6T0O4Bydc+NA9GxUCdy9NC8izjIsO3eO9lYa0YOW+Le3HJlPdBDukDXlRfu0LHOJBLuZ3Cn43Drw+ld370sD//1/Ipe5aBNjMrQGaSI7dFPyd0vRyvlidOIo8EMXBY6r+gQ8bX/iOkV/Pkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4Oo9XHbrkzfgr7SB/57KtPPGMcYeRFxSfKtTsfHkXec=; b=H1eECE4p3XnxdeNvAETTPcShAcHMQBe0DLwAYqaTXMa9rHkAAOZPjC7HcvWEb7jEv/IjIFMcKEaGKLMlVr+0kBI0zAI4Fg2u75mD1p1gncPjVlze4Yri5SMjnyw3XvBo/OO7X7lXaNbbZW6shPj5D+4ihaSMPuXJe5FKwr0yBLE= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by DS0PR18MB5455.namprd18.prod.outlook.com (2603:10b6:8:15a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Mon, 26 Feb 2024 13:00:16 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::baf5:a4b6:7776:10f4]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::baf5:a4b6:7776:10f4%6]) with mapi id 15.20.7316.035; Mon, 26 Feb 2024 13:00:16 +0000 From: Pavan Nikhilesh Bhagavatula To: Ganapati Kundapura , "dev@dpdk.org" , Jerin Jacob , "jay.jayatheerthan@intel.com" CC: "s.v.naga.harish.k@intel.com" , "abhinandan.gujjar@intel.com" Subject: RE: [EXT] [PATCH v1] app/test: fix segfault in Tx adapter autotest Thread-Topic: [EXT] [PATCH v1] app/test: fix segfault in Tx adapter autotest Thread-Index: AQHaaI4QsKTaIMubEkOuZSpFha4E/LEclkAQ Date: Mon, 26 Feb 2024 13:00:16 +0000 Message-ID: References: <20240226083003.317553-1-ganapati.kundapura@intel.com> In-Reply-To: <20240226083003.317553-1-ganapati.kundapura@intel.com> Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4086:EE_|DS0PR18MB5455:EE_ x-ms-office365-filtering-correlation-id: cfea88a5-eb5f-4322-dee7-08dc36cae118 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rBSc/9TrP2UoRfzCcAYH/7pmk490Ddt5iD8Dhb649d96peaioeuMYd6r03mlUDd9JBXRpUv04dbAEslEEvca2lv9Tl05zC1JEg5FpZNCB76mW+7zw/LuJcNAAmediCGB1aXQ1O5je4Ts3MMo/5/KKEsmjsp5vEv/DevrmbR8rRAPIiv+7WtgUi+sC7rgAK5/kBa36nJC7QsgcmCzoztsDjnFEGmQU1VtVUMyT6mcA5voIXM7xFos5j4V7unhgs9C4nE3AZJBVW9v9n+VAB26l+w/qsKgT/Q//ZkRirRL75BdSl3svzajMpO4D4jO7cn8JLO8GnBWTnVQk8KAFc2vty4YpVT7D45asvC7nfu7BnHHLkKG5ZO7B6l9s1RLo/odl3wSckYB7USEHjj6EhmQXG+HbCJ7sGbqL2uAPFINoecuB63OnJ+MtgeLUmnVfOwij2L95UHN/dVcDHsqBRRNemrHAAnLPHN/oL6NV0ebyM37sb6axY/YUgXbe6lDF4Eiklgo9ywMhZiHD46KjgY5UAoTS41dRq7/eUczke1uiEsF9BP5J2kCMv7x5VHR34B6RceKQRgJQYZpbWVrx3x97RfSG5zoBEVvwmhWvwi1bIZXHAqmMb21hdd9TIoFgoNfS3/U1SX7V8BBpsCBXc4ExHYr4jjCsWBkReH/O86L3IZ+v3WU2Q+E+qviHP5rA0LDzs/vGM3GlzowXWUAqE3oag== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?URPIPLmXXgvHUoihJ/uNibqm1v3hof8CFSLhHgmsjFp2PDPJ07MpWVGVKJFC?= =?us-ascii?Q?YYdBlgiDJ/4G/R2icDmB4Mz/SZMSUtW8JhMPco6JGze7MG1LB8wMoWpAxi5q?= =?us-ascii?Q?mFVCjU7UxTqw5FFImPXUx7iRJPlDVUxt6VKHIsvaFwMRzs9MpQW4YdJD3iwY?= =?us-ascii?Q?6RWSeb1tnVoUcaz4Js4DWqYzD1G32ZDwFrMwIjnDncMEV1owBn3WbMeCJLW4?= =?us-ascii?Q?1eCfPMDA7cMaDBvdmheHK3BKth2By1tkE4eHWaJPZQxukaiMkCpQTq5y62Hm?= =?us-ascii?Q?94oypC6xAns/cGtPco63fcsnlUTMa+f/0bS6pAmuUDaEz4l7HQhP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K8600R7sX3+Z3ktMWe1RhFRiPK?= =?us-ascii?Q?ZtR/nXtRl1uo/I0eSCZSjaVQQnQli1AcJF37KJrdfGnEyI54K/cmiwm29dd1?= =?us-ascii?Q?Qq4WbaDPaVlJwB39JD44AMKcKfSyQyOMgZ+Lz+VjadM/xBVj2RWPU03rrpsN?= =?us-ascii?Q?WC3NE8SOb2HWM10uwHqJ0nsrgX7MZoozpU52z/i37SCzlVRG6cTLTsGMfkNT?= =?us-ascii?Q?u2kyXNbXf/7YfgolpUTM5mMWICwmOHh6dNsG2QnFyiGYH25YBotbUsi31yVa?= =?us-ascii?Q?ftl4hGQgaypVrWIzw2CwgawUyLZ3rTGTFx2WX1N0tiGipESBpYEL3xPE2Dcw?= =?us-ascii?Q?TdAPvl+wdnAlUKWdxM2efcjxDf9TSLbP3vcwnUIo?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfea88a5-eb5f-4322-dee7-08dc36cae118 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2024 13:00:16.7133 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VNH9RS96/oJZhnwjPGuaLCnUaZpu50pEKCvP/Ru9tFG40NJ+/+Kzpvmtk977GimYnrcv30ILGF5oyIQpctZiYZNKWebZKdHGcUCjRwI+rx4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR18MB5455 X-Proofpoint-ORIG-GUID: zzE10-gDaYzOr646D2FaFzU0gU-RCBFM X-Proofpoint-GUID: zzE10-gDaYzOr646D2FaFzU0gU-RCBFM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_09,2024-02-26_01,2023-05-22_02 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 > Uninitialized mbufs are enqueued to eventdev which causes segfault > on freeing the mbuf in tx adapter. > Fixed by initializing mbufs before enqueuing to eventdev. >=20 > Fixes: 46cf97e4bbfa ("eventdev: add test for eth Tx adapter") >=20 > Signed-off-by: Ganapati Kundapura Acked-by: Pavan Nikhilesh >=20 > diff --git a/app/test/test_event_eth_tx_adapter.c > b/app/test/test_event_eth_tx_adapter.c > index dbd22f6..482b8e6 100644 > --- a/app/test/test_event_eth_tx_adapter.c > +++ b/app/test/test_event_eth_tx_adapter.c > @@ -484,6 +484,10 @@ tx_adapter_service(void) > int internal_port; > uint32_t cap; >=20 > + /* Initialize mbufs */ > + for (i =3D 0; i < RING_SIZE; i++) > + rte_pktmbuf_reset(&bufs[i]); > + > memset(&dev_conf, 0, sizeof(dev_conf)); > err =3D rte_event_eth_tx_adapter_caps_get(TEST_DEV_ID, > TEST_ETHDEV_ID, > &cap); > -- > 2.6.4