Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp409328lqc; Fri, 8 Mar 2024 00:40:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXO8/djR3xUnuiZIySvs9oe1vpNYD/JjEgzDzDFkYAnFhhp3CAQALz8sF1Syk9DGIcGRQUTnxIfYDGEvu+r4Ak3bfec9asDbl5879B4Sw== X-Google-Smtp-Source: AGHT+IEU09Se/yvQDKBYiM+hX8BdvyICcQavbpz/WDwCWjUCoGCUz7meroCy7Q0nbrhMm173VJ1t X-Received: by 2002:a17:906:5585:b0:a45:231:9b4b with SMTP id y5-20020a170906558500b00a4502319b4bmr10366078ejp.20.1709887239706; Fri, 08 Mar 2024 00:40:39 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 22-20020a170906311600b00a45882f034asi3854542ejx.216.2024.03.08.00.40.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 00:40:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=vG3YcsPc; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-96668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4772E1F25D17 for ; Fri, 8 Mar 2024 08:40:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71832535A7; Fri, 8 Mar 2024 08:39:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b="vG3YcsPc" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2126.outbound.protection.outlook.com [40.107.93.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0529421106; Fri, 8 Mar 2024 08:39:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.126 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709887185; cv=fail; b=oTuxgJ1p94PYJ9leMl3l6w/JbYhh5x3mNtHM1PvpoqGD1Ya+cIM/IgXTgWYsrqXyyJXBeU7IWAfyBl1e0ib6p05k0oBiho5VukJYsxGXb1BItJeMSDnjCZ1YyxxTwNLYThsftev+HSzVnpdMOxtkplO2je7Cnd/pgWY3xya3KtY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709887185; c=relaxed/simple; bh=xrH/G/X2xoA+CVqzGUSWlmyWB10z9q02kkViEUUegWo=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=BBSj9+kAStdN81b0FdxmGIwzynnLsQmteBxps86sRf5kLca5Y+oWmzJNfCeCIW/04HMKfdNqpBGfliCfco5op4RX0uJUSZ4ngP+lZcUv3xPG30zZZLSjb3t9UEuC6Ia5HTsC1C/GmHeOXdGVjynbh/28An6xd/fR2UzuXQ8LQJ8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corigine.com; spf=pass smtp.mailfrom=corigine.com; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b=vG3YcsPc; arc=fail smtp.client-ip=40.107.93.126 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corigine.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corigine.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YK4Msqvk/Zj24wHi3D8KxXGEl9+QOtIq/BXCTHbt2HCW31efmP1wHUrk/WuX9JZ8VK9dHKp8AZGBJKhkRlSNDGD7iuKwQHPWZoxB3xyjMZjlaZs491e5q6fHtvWlAVpejlVM4Es8lHoPmB19tjVZgWYyUiOy3xD7uzfvGJ0V1ApX12TyuQY6OiS1IBDnHogPQLwG5dRD31nPz8SrBzHYXKZxyZMsR3lLWYUqvVWTFSfofzcSg2D5hiONLjjHVsx2Jv4cDGgCilXinDrf1AmG4yhLhn53jD2fJAImaxRbiMqYqGW7Fy2sAN3KPm81bRjCXh3wYfk/pYrusyllpRVNoA== 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=U6UMG7UZq6QYt5lmK0MKkMbvguaD9Wn/wRo5Zg2/bpw=; b=HyMJ/eYWjBWcKmyL+5ABcdW8v9MMvESMlSwRQ1grrIRoaEs2oDRkCxCFewmTIOM5Zopb8Z6BuFt8GeSJefty+uHmCU/aklXUoN/yMc+yMeyVzrTAFyUDIwU4HqSGH8Yisb9bjmDEUA//LlgiIHf/XzHn1kw6pfFmH+okMZInd5DH61auxKtVYm52ePceT+SaD2knvlwcToem1fnwk4tkaXwyQ++0nGE9kuB+8xG5BHwt2hRiLwTqRFzolHOFZTGZlLVAOIBc9hCfjXjHA3jCoH0hChtCWZYOabyl6msUyefp5weivTfP6OL3DFBViZIpNHp1Zas+aFHqAMSSnfIzaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U6UMG7UZq6QYt5lmK0MKkMbvguaD9Wn/wRo5Zg2/bpw=; b=vG3YcsPcdZwUQOrOph3Z4RQCEgYX5ILExlj+4ZRoqyaQR5YNNYqr3r3RM6MREZAk5KTYUd/Y88yN+ys+TlkP7ZOH+Ta5X7m0t3viJOpSGZ5yvlyXb0rIWHYtBZbobM1E5KNq6aOEOjorQOOYX5G3adiDLfMK/Yi5CzPgN68BM78= Received: from DM6PR13MB3705.namprd13.prod.outlook.com (2603:10b6:5:24c::16) by LV3PR13MB6384.namprd13.prod.outlook.com (2603:10b6:408:1a3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Fri, 8 Mar 2024 08:39:38 +0000 Received: from DM6PR13MB3705.namprd13.prod.outlook.com ([fe80::59bd:c652:6485:aa42]) by DM6PR13MB3705.namprd13.prod.outlook.com ([fe80::59bd:c652:6485:aa42%3]) with mapi id 15.20.7362.024; Fri, 8 Mar 2024 08:39:38 +0000 From: Yinjun Zhang To: Duoming Zhou , "linux-kernel@vger.kernel.org" CC: "netdev@vger.kernel.org" , oss-drivers , "christophe.jaillet@wanadoo.fr" , "horms@kernel.org" , "pabeni@redhat.com" , "edumazet@google.com" , "davem@davemloft.net" , "kuba@kernel.org" , Louis Peens Subject: RE: [PATCH] nfp: flower: handle acti_netdevs allocation failure Thread-Topic: [PATCH] nfp: flower: handle acti_netdevs allocation failure Thread-Index: AQHacJbnGqenCY0PeEmlsd7MLWD/0bEthN5w Date: Fri, 8 Mar 2024 08:39:37 +0000 Message-ID: References: <20240307135335.19306-1-duoming@zju.edu.cn> In-Reply-To: <20240307135335.19306-1-duoming@zju.edu.cn> Accept-Language: en-US, zh-CN 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=corigine.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR13MB3705:EE_|LV3PR13MB6384:EE_ x-ms-office365-filtering-correlation-id: 244d81de-6d99-41d0-72ec-08dc3f4b4a2e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Cv60qNLc4OfgB3biyrBug1Q/rQpASy7vNsz+NLiwBiQqWI9crHWvqGeEe4j9gEuB9hKKC0rXV16KDW69gWYma44RUGwAJ1aM+7/5IPagIfdKCeR6bOVHauts/QTZq02qQFUBGW6e1g5g+bzFzieTg57qiPmS2vFApwmfOsouVYfAi3YG5ZTNzUxUz7dOtKfqpC6DLEz6QhuZcdalikIrfYJJ7YuXnEJcF47sWqTzUlJtjazWd+++vnwzblf069MHTgWJoZrozCRRpi5E8Jp7BIexFIOriEHbF6Yr3BeF3Us9c1cQIPnPPWtq889n24SnjNR/f20rn2vQ8WEzPKfh9SAN/UuaqDyRKei+x94p0MDTxh2IuYFOcSvw0QS3i3ZxakTlSkZFefNK27NY1BiO8WsvV8ThVuY5PMC8JnwZEq+yyOaB+qlCCy+sAAVL6lYS5DjOaRRQpHKswlXYfGmpZvuR6EMtunmsj+Q5CT9gHorIayk3y1/XaLHsz5T1KQgR+7o/U2skRoEd5+tbD1SQPWqf8zBZR2fdm0fJNV8gcyMVi4w9Vmdjw5omhLC+NmVQZkYpa2jl63/edTFBnq+ZJQLVyn9SvAB2gjN2tb5Dfwy9h+REBodntjXLhF5WpxiB0WmbgVdYFW0h5OdYvQUDoqF+V9fLLTNl7dv9RmS4EvQ= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR13MB3705.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wDkWNABCWpReQ2pBan8hwaRvJTFxvkRsaxfnjlmqq/y4Rh72mM2DYlDv20EZ?= =?us-ascii?Q?N8K79eBtQKrKLk5njEM92+cnwVYtQWqBtd1IUjtaoqcQEcSp+XpjccFuC7EU?= =?us-ascii?Q?7MqzN2UX5eP77Fwr/2TrB5lltJpV/cLJeSCWnjwlc2NdJOABaDFQcLfRYlom?= =?us-ascii?Q?HPWYcuWyXXIoQW5HX1y++/G+0vFLSyd+D8qSuMSrddX6NTKq0P2LAMBFUn+E?= =?us-ascii?Q?txBDFBuzAwF8i5iT3GOOjioSs4ZO7txhBZBG+R05T35h/KC9NYToCGa/A+Ve?= =?us-ascii?Q?p5Nfny5vrKsA4+qLlEXA9cTGTSeZY7M4strch+X52IqkIgX1k6EIfvrVhgtm?= =?us-ascii?Q?0c5qAKxbmgbH2WbqLC8b5CYBOl4m4xKaHnBshkOFtuBnKWZjEXYfiRgZjkUt?= =?us-ascii?Q?l7RRnO/rjMpmlFF0Q7ZrngVrEPKlsiLmAHfWuV1/u1rF61vZQbDA/SGdLMW+?= =?us-ascii?Q?5f60kDDHSq+zXAycQmgopXXsC2UMHZr7qwK4Oq46D/NwX0XpBtezpQtRxdIf?= =?us-ascii?Q?ItJhXMT+a1OEp0Xy8McFkE0S5lAemIx8fxinsKfA0dRfWOUS7ixKha+1j9GG?= =?us-ascii?Q?WoB4551NyjTBCEHW3ZYYap8NUsHG4XcmSWvtJVi3uhIee4E4HM3BuaWFXKWT?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GDc/xnQoCH1r9zF3tl8ahsMEALKp1w0H?= =?us-ascii?Q?C/BxnogOZAiX0tUCI2ICwa8pjoEobg2dve+KWLMt?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3705.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 244d81de-6d99-41d0-72ec-08dc3f4b4a2e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2024 08:39:37.8847 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QO8qzthJNOM5gVXA7TglStqQyW5nD3ct0GiBXKuslpI8RZAwuFNnrDjoOQxlEklAuQvOSUqMUr4WF0+C6g/ZrX1bcyuqTggx2rg7IhB/oBY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR13MB6384 On Thursday, March 7, 2024 9:54 PM, Duoming Zhou wrote: <...> >=20 > acti_netdevs =3D kmalloc_array(entry->slave_cnt, > sizeof(*acti_netdevs), GFP_K= ERNEL); > + if (!acti_netdevs) { > + nfp_flower_cmsg_warn(priv->app, > + "memory allocate failed\n"); > + schedule_delayed_work(&lag->work, > + NFP_FL_LAG_DELAY); > + continue; > + } It reminds me that this issue was reported and tried to fix in https://lore.kernel.org/netdev/ZVsFBACC05VrrCfw@LouisNoVo/T/#t However there's no followed v2 to address the review comments. Based on that discussion, we don't need warn "allocate failed" locally. >=20 > /* Include sanity check in the loop. It may be that a bon= d has > * changed between processing the last notification and t= he > -- > 2.17.1