Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp552124pxb; Wed, 29 Sep 2021 05:03:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykW9mO/q/+k2vkn6VVr9tEKJ9gxImvbQmBYF4yCqDTMQhVQgssQXKPm9+fRjHuoiriPD4z X-Received: by 2002:a17:90a:ce02:: with SMTP id f2mr5932468pju.231.1632917022561; Wed, 29 Sep 2021 05:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632917022; cv=none; d=google.com; s=arc-20160816; b=JQWj4fFe1xblIgqmnwDtx9xk59NGbd7hEefBzA9MCXpBIx0jAkudzIuwfNmRLBkDju QycoojFLlHNWJwD0XCvs9XzczCN0/wgSV3KZuNnd55zq7ko2XCKid9nNTiY2k9HpCjl1 laHS/HwynLHLbaxLvHGhOMyf/CXTbAeeYcjZIOJ/XOkEoBD/Jofx62HcWdR54SlPksyN 9OZRfbfaryFYcnRrMREuLRdJmWByyOwwpyFOlSl+TocQkMSfxewvU5QC1SM6iSM7hJ3C aGl/i7/sFP2EQW39mNJ67oezbErIF0gdzi/S6LA4698r1bw7CrWWfSGBhhL9uRYno1pc 784g== 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=QlMWE/UO9XZZvhtjyt+ijKejfF5l6IUHK08uevln/es=; b=uMSN6CBDKpDgj0OywD1vzE/PKlOXrgqG7465NFP3oaw9pgGe0LIDOOkj/3zmvpSwjP ZnPJJGmhnVUipVg1HnbQMRxAPfS9HEecfx5yRvXkjvkhz0q6xnp3q2+qOdYdSiuKWsLm lLu7PlfaZ+aFSiod5BefyrTMvG4OH0MsWs/HhyEdGUoRn3uRRLVWmIAsBdi8rxWb4jgC crSgpDipwNiIEwHypWYc4fPQGSAc7ntZ6Ipcf7YpkYzSPH2gHqF+e/LoaXmdrSx7+0rN 3zL/sZmE5SsGDQ/x7Yksr9C7GDoILLjLXywt3J/2//4OxGKDnFc++gzzmA9I/2pYMvss Gq9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=noEJzrN8; 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 x11si2495853pla.181.2021.09.29.05.03.28; Wed, 29 Sep 2021 05:03:42 -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=noEJzrN8; 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 S1343589AbhI2MCd (ORCPT + 99 others); Wed, 29 Sep 2021 08:02:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:52362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245278AbhI2MCc (ORCPT ); Wed, 29 Sep 2021 08:02:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 96DCF61409; Wed, 29 Sep 2021 12:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632916851; bh=hZUZHfgfiTNNYSpnegZKCRZ4rkRJapfY17ImCztFpso=; h=From:To:Cc:Subject:Date:From; b=noEJzrN8+a7bB2Ia3WV/RbudWF03qf8/UhZ3QzTdnCN1X5OLGFysMqcf1SkC3DZWG drQm3kpAV2CfhKxC2Q0FDh+hNwzaK2MApcI1pvoLamseqt8tsBOTXDEV7SBnXlC4Aj Zlb0BbN6MFK4TTJN7yJZKyDQZcHKM/InshW14ECHmH8AX8+hb8+j6GapFI8b438cdX MFYahDhd59cBpE3tQ2NufCayJdtET2WSuwk3xi7RNb7VwmgXcWKv9521E7WZfXdlas 5Q3F8diYv/2raIFAG7sdhp4nnl/UggE6K0ia4pimnsBGxu1jrJjSQkF/W7Ox59ka87 aBlDM9L2fCvWw== From: Leon Romanovsky To: "David S . Miller" , Jakub Kicinski Cc: Leon Romanovsky , Alexandre Belloni , Andrew Lunn , Ariel Elior , Bin Luo , Claudiu Manoil , Coiby Xu , Derek Chickles , drivers@pensando.io, Eric Dumazet , Felix Manlunas , Florian Fainelli , Geetha sowjanya , Greg Kroah-Hartman , GR-everest-linux-l2@marvell.com, GR-Linux-NIC-Dev@marvell.com, hariprasad , Ido Schimmel , intel-wired-lan@lists.osuosl.org, Ioana Ciornei , Jerin Jacob , Jesse Brandeburg , Jiri Pirko , Jonathan Lemon , Linu Cherian , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-rdma@vger.kernel.org, linux-staging@lists.linux.dev, Manish Chopra , Michael Chan , Moshe Shemesh , netdev@vger.kernel.org, oss-drivers@corigine.com, Richard Cochran , Saeed Mahameed , Salil Mehta , Satanand Burla , Shannon Nelson , Shay Drory , Simon Horman , Subbaraya Sundeep , Sunil Goutham , Taras Chornyi , Tariq Toukan , Tony Nguyen , UNGLinuxDriver@microchip.com, Vadym Kochan , Vivien Didelot , Vladimir Oltean , Yisen Zhuang Subject: [PATCH net-next v1 0/5] Devlink reload and missed notifications fix Date: Wed, 29 Sep 2021 15:00:41 +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: * Missed removal of extra WARN_ON * Added "ops parameter to macro as Dan suggested. v0: https://lore.kernel.org/all/cover.1632909221.git.leonro@nvidia.com ------------------------------------------------------------------- Hi, This series starts from the fixing the bug introduced by implementing devlink delayed notifications logic, where I missed some of the notifications functions. The rest series provides a way to dynamically set devlink ops that is needed for mlx5 multiport device and starts cleanup by removing not-needed logic. In the next series, we will delete various publish API, drop general lock, annotate the code and rework logic around devlink->lock. All this is possible because driver initialization is separated from the user input now. Thanks Leon Romanovsky (5): devlink: Add missed notifications iterators devlink: Allow modification of devlink ops devlink: Allow set specific ops callbacks dynamically net/mlx5: Register separate reload devlink ops for multiport device devlink: Delete reload enable/disable interface .../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 6 +- .../net/ethernet/cavium/liquidio/lio_main.c | 2 +- .../freescale/dpaa2/dpaa2-eth-devlink.c | 2 +- .../hisilicon/hns3/hns3pf/hclge_devlink.c | 5 +- .../hisilicon/hns3/hns3vf/hclgevf_devlink.c | 5 +- .../net/ethernet/huawei/hinic/hinic_devlink.c | 2 +- drivers/net/ethernet/intel/ice/ice_devlink.c | 2 +- .../marvell/octeontx2/af/rvu_devlink.c | 2 +- .../marvell/prestera/prestera_devlink.c | 2 +- drivers/net/ethernet/mellanox/mlx4/main.c | 4 +- .../net/ethernet/mellanox/mlx5/core/devlink.c | 15 +- .../net/ethernet/mellanox/mlx5/core/main.c | 3 - .../mellanox/mlx5/core/sf/dev/driver.c | 5 +- drivers/net/ethernet/mellanox/mlxsw/core.c | 12 +- drivers/net/ethernet/mscc/ocelot.h | 2 +- drivers/net/ethernet/mscc/ocelot_net.c | 2 +- .../net/ethernet/netronome/nfp/nfp_devlink.c | 2 +- drivers/net/ethernet/netronome/nfp/nfp_main.h | 2 +- .../ethernet/pensando/ionic/ionic_devlink.c | 2 +- drivers/net/ethernet/qlogic/qed/qed_devlink.c | 2 +- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 2 +- drivers/net/ethernet/ti/cpsw_new.c | 2 +- drivers/net/netdevsim/dev.c | 5 +- drivers/ptp/ptp_ocp.c | 2 +- drivers/staging/qlge/qlge_main.c | 2 +- include/net/devlink.h | 15 +- net/core/devlink.c | 156 ++++++++++-------- net/dsa/dsa2.c | 2 +- 28 files changed, 131 insertions(+), 134 deletions(-) -- 2.31.1