Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6090464pxv; Thu, 29 Jul 2021 06:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLXN7ojDqXSOoNR0iYXx1gEzrddjO6GePAUZPvxDKDrE2CYiyklVeBPaANc0WpeTGJ/O02 X-Received: by 2002:a92:6805:: with SMTP id d5mr3584893ilc.286.1627564741602; Thu, 29 Jul 2021 06:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627564741; cv=none; d=google.com; s=arc-20160816; b=L7S8WsxrssPf0qQVMmgb6NQx2j2b5sK7Al1qoglsWigpO7qAMJ1q/3Nb0zNr7eEpel lwcWzn6RqYBZP6pINNUO/6w67PUzCU7PXcmRsA4kPercZfL3FHcuOk7nIxEc+KMVZoLv 8qNJzk8vVSckbF9TVudyVsI+twWdFgXuV5euGFpROg7jpjdxCYgJg49Z64x4vFz5jA2D L46G7Ud7d8q1RB2VZXUTjFG9t4mLmxJTENQ01bGtWbbl1WV6SuZ2T/LEEc405G1Butr4 /Fpdj4CiEOIPEbSB4yBqcyZkfQHbcFz7vaxMyLTap9qjDxpgGALG9EKfPCTan23sjhNq E1FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oE9aJXLET8I0t4XpntQAKGX1yUfKDyM/mWdMAtwHfpY=; b=UfVl0MIVB/5rIetyCAsfaLAxOl+l3WQd1DYANxk7aEPkMj1NVP9ite9epyJUEaoWHx LYq8GNrgxKtLBmOAHAU/JuTrDOO+2AsJSNFW8HFNYV1luh9kWI8v7i4FJZCo4Kq/Kw8K Ld2C/bSivrRs4k2MXd+yGquFzQ2aB7kt9oseFiAEtrr6JU2M8dJ/fiIKFZ3indfLsXF4 H3dqTyaGRdscZ6raP4kOKxeinJOLRPGGJ04G2Ku61/eEahv7R60kDGVVnJZNWZGK7d// PC7Z7oyr03pWxmjGYMqnohb12OMOnn+gloA44VJ+Bz6+ix1pfsL7aukNxj/KyA5+uFRX VoQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=edYl6vSN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si3456148ios.38.2021.07.29.06.18.48; Thu, 29 Jul 2021 06:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=edYl6vSN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237436AbhG2NSA (ORCPT + 99 others); Thu, 29 Jul 2021 09:18:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:53974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237407AbhG2NR6 (ORCPT ); Thu, 29 Jul 2021 09:17:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A652160230; Thu, 29 Jul 2021 13:17:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627564675; bh=657q3Ny5GNsQEvrnZwjQv2SsH7ghWBvOM5beSTWCFis=; h=From:To:Cc:Subject:Date:From; b=edYl6vSNTxA5ibh5bUjI13vokD2nM0eAlvDT6JvqgJa7VITT0cMTrSjPMRgxUXnVm JRemjZHgHVK9FCu2aY6ox3vl2b0PpsZDzmaYUaHaOKTqv8RW0uVWjhQGYK8DMKFngJ Z7sBNwU+ozOG6d67ZWfN1zRKjg2cS/G2ByFnJn70J32TP8b/w71hBFZwYz4J/IrWHO 2CzXWYhJtLpRIeXOmmwpp+AtoE6FiTuIT+OMd1Lk9H1PLNjsJb2IsjJIRB3YP8H1PA 7vSF7yyMLaII5rDERz1nm96KA2tQ1peFouWc3TH57tmLYGm1iw2yWDsJ9nKeRCKInW Jy8ul8RgrLf0A== From: Leon Romanovsky To: "David S. Miller" , Jakub Kicinski , Jiri Pirko Cc: Leon Romanovsky , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Parav Pandit Subject: [PATCH net-next v1 0/2] Clean devlink net namespace operations Date: Thu, 29 Jul 2021 16:17:48 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky Changelog: v1: * Patch 1: * Renamed function name * Added bool parameter to the notifier function * Patch 2: * added Jiri's ROB and dropped word "RAW" from the comment" v0: https://lore.kernel.org/lkml/cover.1627545799.git.leonro@nvidia.com ----------------------------------------------------------------------------- Hi Dave, Jakub and Jiri This short series continues my work on devlink core code to make devlink reload less prone to errors and harden it from API abuse. Despite first patch being a clear fix, I would ask you to apply it to net-next anyway, because the fixed patch is anyway old and it will help us to eliminate merge conflicts that will arise for following patches or even for the second one. Thanks Leon Romanovsky (2): devlink: Break parameter notification sequence to be before/after unload/load driver devlink: Allocate devlink directly in requested net namespace drivers/net/netdevsim/dev.c | 4 +-- include/net/devlink.h | 14 ++++++++-- net/core/devlink.c | 56 ++++++++++++++++++------------------- 3 files changed, 41 insertions(+), 33 deletions(-) -- 2.31.1