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 324D843ABD; Fri, 9 Feb 2024 17:07:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F21642E64; Fri, 9 Feb 2024 17:07:46 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2065.outbound.protection.outlook.com [40.107.244.65]) by mails.dpdk.org (Postfix) with ESMTP id 4F72240697 for ; Fri, 9 Feb 2024 17:07:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oLv61LxZM3aWqAhJsHnufDU7ABTvvo2fR2c+6qSxYdi3Um3O28GX+EBN/qT8k1psZOTIufdwNl4Hr9bKRfnQ8JU7T86Epbgy8eRaJEqckHOFazzpIegv+n3+KmaWouc8Pw5rB1gtUc/Yy2D13JpzTZdV3HLv0gXhJQjuN4U8ULrMND2n/jRPCAMPeOjFFFiXIUBhn7UF0IP/Yoyyz7JPd/7VCJmw3jIc2ynO4ox+NSYDcDe349GKOEPaWTzlOVfTRX/GDFRggkp7EW2F2rfHyq/9llykAlswoUcRF0Hm21w48JmT0CBpRbTQ0ykjzo+eh1a78pJF3wRGr66znQoFiQ== 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=4Yn8KWI4y0fi9Kfbkil8x4ch1+bRlBgBdR839e6aqro=; b=XkvU5DoM+x3FCa8wYes32hArfJiu62vBSXw2OIqMQJjnTgulcs/yM/1IYorZLcqvCo4aiedaIlE6jhtKMPRKpY00cSTjX1zSs1rxonXpVURsjHRJyxTTFHE0bo3cR98DNRP7aw3sJ/WDtP/Lq0/YazWttsL8BThvsTm/t+y8u7t/xo+txgfBcsNRx0uy6bwD/9xf6zkBSv6Pk7qDiVa1fnzJLMDdk6mWYFvavew0W/t0FHHSD8yvGY3jqCVP50mqEmBA3ZemwAA4QwZUgnTdETo8gWWiVm+H43Hfn49bmNS6PXvSU5Vt5Ht/vHvYE+Ruzd0jmPotIFZsxYLDWMM32w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4Yn8KWI4y0fi9Kfbkil8x4ch1+bRlBgBdR839e6aqro=; b=hv/XdQ96Ls9G/7AW2NnzeFK1e4KS+WHh6/5YhdKEbUI2vaGNLYpeIu4aoIHn347K4ztsbIj2b/nHifVAwXqiEdx0wI6AHaRpKFNOGzfyEhb/DeRRjGv4ZFKXVYQzupWIueP3gKVJ2O9W6QfULe/XrIU8bT0c9xT3vkScUu0/lDLK/8X0zyD2sBewdd8GzMIONsrSiQGdi0TGu8GFHNLiGQ3YruQKXVLWKMb0B9jQSYJot4QGLEyYOTkiy5aF4xbUNUvix57DY624aOUqO5HFJESnTGZxrLdRSNqmiqtTLuggK2fjkBbubkTzXuZLHFJfelNNz+7KPtLnJ7f7hcVnww== Received: from IA1PR12MB8311.namprd12.prod.outlook.com (2603:10b6:208:3fa::12) by IA1PR12MB8224.namprd12.prod.outlook.com (2603:10b6:208:3f9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.17; Fri, 9 Feb 2024 16:07:40 +0000 Received: from IA1PR12MB8311.namprd12.prod.outlook.com ([fe80::708b:e498:d9c4:94]) by IA1PR12MB8311.namprd12.prod.outlook.com ([fe80::708b:e498:d9c4:94%4]) with mapi id 15.20.7270.016; Fri, 9 Feb 2024 16:07:40 +0000 From: Dariusz Sosnowski To: David Marchand , "dev@dpdk.org" CC: "ktraynor@redhat.com" , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Ferruh Yigit , Andrew Rybchenko Subject: RE: [PATCH] ethdev: recommend against using locks in event callbacks Thread-Topic: [PATCH] ethdev: recommend against using locks in event callbacks Thread-Index: AQHaVOrL6snZjV+MJUKS/bygbI62mrECOeGw Date: Fri, 9 Feb 2024 16:07:40 +0000 Message-ID: References: <20240201084319.2687896-1-david.marchand@redhat.com> In-Reply-To: <20240201084319.2687896-1-david.marchand@redhat.com> Accept-Language: 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=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: IA1PR12MB8311:EE_|IA1PR12MB8224:EE_ x-ms-office365-filtering-correlation-id: 9b2c02aa-29df-4786-f223-08dc29893ded x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ATW/W0rZeFGt3etKSROitb2O6sIul2ERVKy5HSF17Yt4gTN7GtdeXDSKjD7aZEnIsVnxE5QYTD4NnmfnKObgdth8yleTkxUYCkJWVJSF/s8NQKtwuRcyc2tKw5uyMJewJgTrnRnt+yRWskvDCKwV8rl+RqzlblsbO6KZPkslnZDofWVp2EBYyz76duFqRcY1mYFkg5OaCrdPzlNv/wEw5DP/+X9qu7bWnhFiHQXVAt0LQmtA6G43PK5xWwoV8HaKvxypLVyRsMCh06pguji7htAxNnbBGtztA1o5uLnqkTeDqfwLQxF7vVN/whHyb6uSYCB1+sXw96q72kZPHkdi4gpI6UVYnGt+k4/uFRx7wmBdxFzDUsw30zBSS2PkqMhiMDXdjV6bQ7uww0fxqO5we0MqEesusWNeb9fQFF+AjVxmtZFay0j6x/pyHQ9QdfqzSlr6WiwBrp75se0VjKu/L8gPhRL6DJK1Ir5JMWkvTkgaSVk3tP01OWCkkiuGqN9B8f2D0YfGkAVVT0RIjtCRqB6T+/lKeFxESQPK2aFIv7zWERj3DaZVJKr6lTLrzrEWoNd6tLquHWPBGYKTspXIyKLPgBr5vpvXsxb2sXNvrl/7xdMGUD/RXIPRKugOejts x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA1PR12MB8311.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(366004)(136003)(39860400002)(346002)(230273577357003)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(478600001)(9686003)(122000001)(86362001)(53546011)(55016003)(55236004)(38100700002)(7696005)(71200400001)(26005)(6506007)(8936002)(64756008)(8676002)(54906003)(66556008)(33656002)(52536014)(2906002)(66446008)(4744005)(83380400001)(5660300002)(4326008)(316002)(41300700001)(66476007)(110136005)(66946007)(76116006)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NOST1bpxlIvOOck2VI5uqK5IL2NfwPnNIE7mtZFdMv4mRKAUTGLg9JFychG1?= =?us-ascii?Q?Wl9gsevM9gutCwM6cOVN6PRo6vXPPudklsAtKPdgqurJse+WG34H++csSion?= =?us-ascii?Q?lWYLtYFK4pzaDuaUztmuAE4eiYK8Ea/r/svT/Vzx/rsyGOks3k6nrMkUX6VQ?= =?us-ascii?Q?1OG95tIukbDpKCM9ar1/KQg8QEsI5ZEkAukD7v3ZQ518CXPeSXJKQZpVs8vJ?= =?us-ascii?Q?blstnZr0+hBlD4+q3Afk/jzDVcf2c2ur5n2YPMYdUR6NHb0u3mppU8vdcO8i?= =?us-ascii?Q?wtD4lnlWcVn1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s64itxmKyRmF?= =?us-ascii?Q?snrPtBwE4nKGexZmoKZcQn3R4A6ibPFlVtnwwkIjQf9+BfIxQEprFe31VMU7?= =?us-ascii?Q?ERuBN+G6N1jBfqAOQ72M4aTgtKIQGdh613VFdelhcMPbVm11pJAnjgEqUDo9?= =?us-ascii?Q?KsZNCf9SO/DVOpbRgr2XHzPFMjm660cC39l8p+t8zUnwpe0RUimWRunDASHu?= =?us-ascii?Q?EoCYmtOUW/8RRx5KfclzIObrCKCA+o/lwJObPg8s46S3uJq3hrgZ7tgDbfF1?= =?us-ascii?Q?Uxf13JoFlKnckEnIeSv3yAJiZ5XmHIkUkmUKnJCy7os0NunDx26mjkHjahT/?= =?us-ascii?Q?y7nKvVapXVz7toWP/M4q59TlCytTvAf50EPTGViBc2gV0WXVAZo8841nAoF/?= =?us-ascii?Q?8EAkredf0dTSsX+c6LVOHMdduqWRvOMwSXQT0RNd?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB8311.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b2c02aa-29df-4786-f223-08dc29893ded X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2024 16:07:40.5996 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cnF8r4jxZm0QM385CIunJQHCuYF2aCMp6ioEIydB2PI61fq/HkhiR6Dcn3zdlIrk8Hz2PmRe1Ljr8GYxGlm2Cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8224 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: David Marchand > Sent: Thursday, February 1, 2024 09:43 > To: dev@dpdk.org > Cc: ktraynor@redhat.com; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; Ferruh Yigit ; Andrew > Rybchenko > Subject: [PATCH] ethdev: recommend against using locks in event callbacks >=20 > As described in a recent bugzilla opened against the net/iavf driver, a d= river > may call a event callback from other calls of the ethdev API. >=20 > Nothing guarantees in the ethdev API against such behavior. >=20 > Add a notice against using locks in those callbacks. >=20 > Bugzilla ID: 1337 >=20 > Signed-off-by: David Marchand Acked-by: Dariusz Sosnowski Best regards, Dariusz Sosnowski