Message ID | cover.1729607879.git.petrm@nvidia.com (mailing list archive) |
---|---|
Headers | show
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2041.outbound.protection.outlook.com [40.107.94.41]) (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 B9400199939 for <netdev@vger.kernel.org>; Tue, 22 Oct 2024 14:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729608680; cv=fail; b=ZhjqDKFoLkPqKmhxEaCt4kajYTwB2Y2Jgri5fOqPAJCTesul/ogtFAerlvYa+ehDc7+mIaTexONPlfFs8z070j3LasQUSGlknYdhtCfys4N1aocHdrSioOUOr560DuFTN5E6pYT9Cvl70DJgPkdfya1oMkGNFdOkcXRwDYXbN3U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729608680; c=relaxed/simple; bh=tbIJ673BTmN5XmvbuV2BAgMDPfIr3Eltwd+NN8xG20Q=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AYBvT+l8fyZc3+MCJSpTei7izDSbI/1+L+nDmQEy4wSRngeV6eazzM/V7ywvklbCANjOqhTRXDRkPD4XESXUOCvVCHKY6CpQroqNxivntetwWY9WYY723HcG8W27K540keXGues1Yq+fVuHbXFH6EFtfbpB5yG+DBSKFAAY3qiY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=s7PoM6j2; arc=fail smtp.client-ip=40.107.94.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="s7PoM6j2" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=U/0BZyn00y8Ez0Abw8aovSPyMZetsEFm6Q9GfAiFGH0sYCc/NRw0n9Tsf/ASK3OiPTpuHp8xg4zmc9RwlD9aViWf04YUu3rnWHrJIVGbZT4UihzrfFy4tSU2fYS2fFiVCsOzVy4Yg6NgIYCu4yt76UXAJAcwh1DxoD9FEJLZ60KpJ0ufCQlAL8e59t0hz3AQaLXF0xVCBK7EPBlgxFZ/G5r/dDINBy3u+zPCyfCjtqG83zTlIMogKpnNb9pkVjnGFNQ43mWABfFrCR3uTVZBC7wkJCZWW5GtpUatsBOxSj2bKPiZTSDYK1/a7tlCO/c7KjuD0UQ1XbDDYPXVoLNauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=DgvYKnZ8/q9rWgJmEP1cYw6S/NSYGiUxK6PYiPlh82o=; b=w6fXHEbrI9aEl63L2BPDq/lmWtiyyxPNdE6IXwkfyVaeAIhPwGufwtU3kbkqxJR4XOjoF6glEDqC7IrqppTNVZZ9Zc5US9E9u/y0pvDntb+aSfuHbgdm4fyVo0nk5mCsleIWqDmbTXTqDHiTvlvEUhxcAsZTtPCTOvZcg3/JBBe4YiOJGuMDm1srcZzuD44WpHQPXLn7kRCIb6dyEN9WeBHvqjh7AI84XvOfwmScasDzhrSlL+H5KWy8GaPjV7859+oU9RkEx0HexA3VhbxOyrqoAe86ZmGPlR7Er0rdOOI3rv3kTPTqPUqgtFFVYnMjBXza9XsgH5RLBA6eYej5ZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=DgvYKnZ8/q9rWgJmEP1cYw6S/NSYGiUxK6PYiPlh82o=; b=s7PoM6j2UgcnFAn3ZyI0uEanZ0BzP1BimC0PN9UMPYJvqEi2I/4Wm5TgIJ2f+KgBDYFfCHTEpTdD3Cfw5uokw4VZkeAgXEoINI9z5BPjHFvueZPhWX+Q3Ezrkjfz21YFxlevR8nCm11py3WnEcr7YxUBj2bBOnaD9NBLBHBQVY5URD1Pd1tnZUJ0kD78VVa5Mtzr8IYh43ADhu+ge5hHDMYpDMMAqEmcapEUCsoGuU6FQFtoqQ2tkgICkZWVXmexGTbwb2v2HRerkMbq0nVhmtLCB2nhANTTIc9nTjulmP01vRZRwNbeQkvoshQcxb8Slqp7ANy8FGqBiP08yp734Q== Received: from SJ0PR13CA0055.namprd13.prod.outlook.com (2603:10b6:a03:2c2::30) by IA0PR12MB8894.namprd12.prod.outlook.com (2603:10b6:208:483::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.20; Tue, 22 Oct 2024 14:51:12 +0000 Received: from SJ1PEPF000023DA.namprd21.prod.outlook.com (2603:10b6:a03:2c2:cafe::1b) by SJ0PR13CA0055.outlook.office365.com (2603:10b6:a03:2c2::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.15 via Frontend Transport; Tue, 22 Oct 2024 14:51:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SJ1PEPF000023DA.mail.protection.outlook.com (10.167.244.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.2 via Frontend Transport; Tue, 22 Oct 2024 14:51:11 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 22 Oct 2024 07:50:57 -0700 Received: from fedora.mtl.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 22 Oct 2024 07:50:52 -0700 From: Petr Machata <petrm@nvidia.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, <netdev@vger.kernel.org> CC: Ido Schimmel <idosch@nvidia.com>, Petr Machata <petrm@nvidia.com>, "Amit Cohen" <amcohen@nvidia.com>, Vladimir Oltean <vladimir.oltean@nxp.com>, <mlxsw@nvidia.com> Subject: [PATCH net-next 0/8] net: Shift responsibility for FDB notifications to drivers Date: Tue, 22 Oct 2024 16:50:11 +0200 Message-ID: <cover.1729607879.git.petrm@nvidia.com> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: <netdev.vger.kernel.org> List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000023DA:EE_|IA0PR12MB8894:EE_ X-MS-Office365-Filtering-Correlation-Id: 3041e4a1-f717-44ec-89d5-08dcf2a8f876 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: aelz9qPBtSW+jDFlsn6uuybNp8bL7YdN6U5f5xlSkag0TcY1YbaxlB085xgC8aTbWlH2W/dFCv9UxjsVv6twdXuI8dbbdf2NY/reZwo3J0ESLBbdxfamHbYIm139OxzW9WmYtN9WkB81VKikbgyBeXq9/BLg0wLfdiEPW9ybGhyS5xAP1QVwz1aaX4tJbngwzS2Gls/jPYB2pfwMNVH4X4G5NmieBvLGWMJO43FVQvAIVNJH1Rsz0kBQwT9zyazBunpwsEHcY1T8+5gL3dVD0vgKV+yzcWwSIeIyBQ/kCdQLB16EKHJvqmSva7A/P03BcK7b5AcTVMmEnmFIK3mFpV+PdRerDpYUupMWlYuIyqMC25LG7ZSZgYwTBMIwGR/ZxXzYW/lzAIyR9lRCUCCFhEMoRLcu1uWaY7mPbypkYDwQj1mcZUdfCWUqOETIfxM2jp/97N6js6t3T04yoP0mIXmi26ZWksjAZRBwG72qEWYdf9tAnG//TtH1CU1VhDdMDlOxweutQLv0spPx/URFh+kPzT0P1DGpmzMGunv4+n36W3rUajGz5xRSdCUklhuyNPbH/mVnw062S0YNn8V9JTnuKpsghiedVskURlBVRgkYOxPaCNBekTlUdD5UGAkjgemAf9WdTGNES3Z6cE/RH4oYWnerQsH0JCUlzhB/r71dgzufWEi8KNqIaac66RftZ01802mQltoLMzKCTHmYZafR7unVRfBn+61KSbbaoWlKs0ls0fCNJHp6/WNiusududW8RT3PdoCRnCARoCRWkpe5C7q51bo98ovYAXgNBRm5REkgAxelD2rhOhmnCleHdVYbe4QJlR9Kv3GbJZV5FY9MTb2eD4Q3bT8Qc1LAxi0JHpro/mGg4S6nBrYo3pICPdR/sa6cpFS/VBLwdHljGo8/xFjIJljexC8pTAi4/uN5wHQ0S9yKF4V0gnlKpHdbdHAksKwtWRaLsALDqVPUrOLsHGDodIyg8wPGWxuWIUQClF9msHP3sNATQGMqx/waMJ6Meosi29EpY9QBkfYRz0J8rV8JeA/1Yq1qs2ln8nl1o19oxCL63lpVQ6pLDYxlgoaXQWWr3/HzR+Di25fNNFYBzOpiGHn4p2NycIsAVJfURLK59+Xz8YP7luV9IEN7h83X3NUt5OwqrEpFYMKTYMzGOGAt6EJsNbiKS8UWx2Cb7Rnr/bhT/jO/kIZdNPPHI0LLYvMRL8ZmJrji5AQ8ihaJD5QtVEopJ1ic8ziHdLW0Ijqx86ILVfTzm6eSibCSZtsF1zUT73FeC/QVvP+GZqnKUK0zVEgF7cE31q+uiiVaupCUiRJu3DUy1wNOfG7JuHVnVmdRkTw/HTGPZl3Wd8Df5ydi+IBQPuC9tWwYs1HA976Asze9T9jGKp1dQexTocuGDgQawKUULY7cg4RknQ== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 14:51:11.5463 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3041e4a1-f717-44ec-89d5-08dcf2a8f876 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000023DA.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8894 X-Patchwork-Delegate: kuba@kernel.org |
Series |
net: Shift responsibility for FDB notifications to drivers
|
expand
|
On Tue, 22 Oct 2024 16:50:11 +0200 Petr Machata wrote: > Besides this approach, we considered just passing a boolean back from the > driver, which would indicate whether the notification was done. But the > approach presented here seems cleaner. What about adding a bit to the ops struct to indicate that the driver will generate the notification? Seems smaller in terms of LoC and shifts the responsibility of doing extra work towards more complex users.