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 3C86B4388B; Fri, 12 Jan 2024 17:04:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9918402CE; Fri, 12 Jan 2024 17:04:55 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id E1E96402AD for ; Fri, 12 Jan 2024 17:04:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705075495; x=1736611495; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=iqbfCB4ysGkUw+h1I9CGlgP5FZ/84QKMJl2DPdCZcTI=; b=D/Jvrcr5sbMs9DdIgrGTAKjK9d90/yirnMB4ajC+Soig/QcRDQ/uwX6g 87Z5R34EU1NX2XXszrmim08Fyqo7vX5etkh8l7rbmocp0/tUe6LnyiWGM IVKG70pATmLSeI2xSPnKY7+5d3AuZ5eDbkSBYdcCUETW4ROCGNSY6pwD7 6M4VNLTPQWPsO+RmZ1QI8zCViwCqlFOqv0aWKC4A+aFnXBEYemL5C82Og F0g5tdmHrHIz0bG8G/M0FXQd3SWfCnsfUIe3EDnOJMy5of1Uaq8yFha7q pFIpcRYxisawUR95dEIaeua9zCoD10Xn+7JvdA4KAJWLQYEKA8OHRRJPT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10951"; a="5938030" X-IronPort-AV: E=Sophos;i="6.04,190,1695711600"; d="scan'208";a="5938030" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2024 08:04:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10951"; a="873407581" X-IronPort-AV: E=Sophos;i="6.04,190,1695711600"; d="scan'208";a="873407581" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Jan 2024 08:04:52 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 12 Jan 2024 08:04:52 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 12 Jan 2024 08:04:51 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 12 Jan 2024 08:04:51 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Jan 2024 08:04:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mjjLCUTXMJOlXlm8uRrU43Dfj7YfGX2o/s7JrmqV8i3OGSvoFXBsUrm2MTv9tuJ40lOj59d1xI4UFoP7TX1NrPXKXzrPy/KnSzWKqwoyu23jArhqZyBw/QHP059l2bdTttEbkcUNPd58p90hDg/tkRiQSedojbnUgpoqVydtA7YVQxkCMQltd4zMit6npahLn9Vx6ZATI8Grzcq6uCeZsUUNv9tTMH779vxP+oitmV7LOjezV4oTxcgtRCgycY9hL877z2G4Rz9lr4h9EWKeCkd4VWDHBQl2wqDh5hYiGkH2mQNy1YodPrXBPQDO8OPUrZb3HKZFOkzlfQQLxeDgew== 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=kgwA8zgcon2b0jMlvG3NFqQ0l3zlQXkbx4AVs5q7WE0=; b=Po4rQUzFkc7SGUuowC9XY5W+lNx+eDSgqRrqA4s41Fp8XsyDBHyu1WkUDOhNXJFAW2rKFYoVhDXgjIzcruwfjC4euR9iTpfttAzxxhOhkif4YOGJZtsGM/Rv+D/dcGrJfb0FHFEMNcm5uA1JZKFz8D/oSAOJ0F4lVdzpSaik8UCR91gunE6m/CLMDwlCo1kvHFkWh+NPuy+4AxeE8Unn15ll7VuKbTGOXfDoDEw1n+qsMx0Yz/vdUUXN3kiWQ5aHS/1cCR7NWpDTEAoi5I89XAFkV7atpkQNzaxLsrX8hwYTSdkwN3FRWnPD7hpBW06ekgk6UHUh2Mum2B9//m46yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN7PR11MB7639.namprd11.prod.outlook.com (2603:10b6:806:32a::14) by DM4PR11MB8089.namprd11.prod.outlook.com (2603:10b6:8:17f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.18; Fri, 12 Jan 2024 16:04:49 +0000 Received: from SN7PR11MB7639.namprd11.prod.outlook.com ([fe80::8a06:eadf:e98b:23ad]) by SN7PR11MB7639.namprd11.prod.outlook.com ([fe80::8a06:eadf:e98b:23ad%2]) with mapi id 15.20.7181.015; Fri, 12 Jan 2024 16:04:48 +0000 From: "Power, Ciara" To: Suanming Mou , "anoobj@marvell.com" CC: "dev@dpdk.org" Subject: RE: [PATCH v2] app/test-crypto-perf: fix invalid mbuf next operation Thread-Topic: [PATCH v2] app/test-crypto-perf: fix invalid mbuf next operation Thread-Index: AQHaPrdhOQzTihAiEkOlUftQKrFOv7DWY/xA Date: Fri, 12 Jan 2024 16:04:48 +0000 Message-ID: References: <20240103035357.720016-1-suanmingm@nvidia.com> <20240104022405.794338-1-suanmingm@nvidia.com> In-Reply-To: <20240104022405.794338-1-suanmingm@nvidia.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7639:EE_|DM4PR11MB8089:EE_ x-ms-office365-filtering-correlation-id: 3a29f139-bf78-419b-7ddc-08dc138833ec x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 39Yhb4aFNLDdZuVYnGgqs/8Vv7gbkZ4bc5EgDO2wah4D0xtg9kkjVzlELGT7ogLR36q2TZosYfPUEZCHNe60o7xk9Vn1woJZQgfGlkB2++21AqG+9+nj7e1wdVh7GTqwlBPfB2lL8VPVGHgKGSzansStkBigXjs7WLewpwMBo2qgFgbX9YI8HobGeA0+E5sosO0CbJTk8d95iGmSdix/2if0iF94A7n8cCXACHAhnP+1IH2uGyxq5K1fbERessJNZ1Yo7NgZQ+lpYbGMlc0IUgLh5qLd52Q37hVQcI0KUCSLHcqvLzZgRXk+cQBh35pq03EsIglHUU1lkIVi7PpmkA2VUI+WT3ZdPmn4W6Av4iLAhRBKmSL2gBgt07LHjlt+pwoSaHjB0CW4TaYvX2E/cA2ScttM9yC/I65ZHroEyodqOGja0WotvEB/aR/8omL1yuCF0xz5SmjDownTCj6E20I5nh/e3DIaAR72wZinYAZeEBRF48iTZXBuvarTAltdnTiugEGHOGKxwDN0wrLFPCH0Uf8foPAnrz1B386S8TIKOd/vqRQBdztbpRPiBGgFSF29oFLAUDC18Pif5Wx2iayK9aWpI2FkKmSkCmX0+IS2Nxf5uqgt7FF3aXsI26gR x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7639.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(346002)(376002)(366004)(39860400002)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(55016003)(6506007)(71200400001)(7696005)(53546011)(9686003)(26005)(122000001)(478600001)(38100700002)(33656002)(38070700009)(86362001)(5660300002)(82960400001)(41300700001)(76116006)(83380400001)(4744005)(2906002)(4326008)(8936002)(64756008)(110136005)(52536014)(66556008)(66946007)(66446008)(8676002)(316002)(66476007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lvPLLM7Oywcy7S1ADqiCs4tdolSEkWWN7y6DzXEpEORo2Lzb8kPjEXW+IPs8?= =?us-ascii?Q?dvh6zcYX4VjFlGmywqslF4Rs6G4+Bx/upA2CfwtoZKSj2KHNI++FRSbwUQC5?= =?us-ascii?Q?OraJEGri0X8jMlJIivor+a+u+9Op3ynliQsdR8sj1WrLeZx19PqAcFO4TyBv?= =?us-ascii?Q?4IViJR1xlH8EYcckANHfyA39IhT+l1y9zytJoi/jl0HQ7oqJmhEDzTPDL2Ei?= =?us-ascii?Q?Mp5gVGsXhDfiYIz5PWggEMVeoRtSrX5OpWXNsqvZ056wiYsl7Okb3Rw9hmpR?= =?us-ascii?Q?EVi4gfE7e/9D+HgbyXnVCCDgT6qGA+Nk5IGq9/zaLZBKSlP14BFZw18oqiWa?= =?us-ascii?Q?WKAjxaKXm1nmW13YyO/+uWvNxkrcSuySE9inctUn/Fhv5pUXdPsr1Gx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Nk3BYSLVYE7NyO+5qy6/5WxmuLZ?= =?us-ascii?Q?a28o9S6oBt9QQdIZ127i/raiXZnmy86q/mThIEus5NvTl3DoXyKkyEm2ukj6?= =?us-ascii?Q?RJkf2do7gD0nsaQdePYyyPBXGEfbabqZXySdEljjHIdiSwM2Z8NW4YL/R+0L?= =?us-ascii?Q?qpxXxq2udIkz2GKdjI06Nojk73BgnKzf0EhQv8SZmYmMVoQ9rHIsIe50W8EY?= =?us-ascii?Q?XEqoS3HWqnbIjDlju9msN4oCyer4x7d/RVFne5nhM8a/wGo8JO1WG/SOYkNJ?= =?us-ascii?Q?DirIwYJCUOMrJxR5xRBfusOo4d20Epv4ySfbdBnA?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7639.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a29f139-bf78-419b-7ddc-08dc138833ec X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2024 16:04:48.7236 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JnQgNo2Btm7Ulk2/vxOHUIHo3o8nEjxhcE+SVEBly0P8Rbh10la9kzEYtbailZx/KkyeKOyvKEyouLJPsY7WDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB8089 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Suanming Mou > Sent: Thursday, January 4, 2024 2:24 AM > To: anoobj@marvell.com; Power, Ciara > Cc: dev@dpdk.org > Subject: [PATCH v2] app/test-crypto-perf: fix invalid mbuf next operation >=20 > In fill_multi_seg_mbuf(), when remaining_segments is 0, rte_mbuf m's next > should pointer to NULL instead of a new rte_mbuf, that causes setting m- > >next as NULL out of the while loop to the invalid mbuf. >=20 > This commit fixes the invalid mbuf next operation. >=20 > Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") >=20 > Signed-off-by: Suanming Mou > --- >=20 > v2: move next_mbuf inside remaining_segments check. >=20 > --- > app/test-crypto-perf/cperf_test_common.c | 15 +++++++-------- > 1 file changed, 7 insertions(+), 8 deletions(-) >=20 Acked-by: Ciara Power