Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp978735ima; Fri, 1 Feb 2019 14:11:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN5EWDbT9qEdEGYnt17QUXlH/2S7Mftg/XOe+g5fB7nQTwBENmMnpPxoBFA6t5yWCLtHc5u3 X-Received: by 2002:a17:902:bb05:: with SMTP id l5mr42174315pls.230.1549059088700; Fri, 01 Feb 2019 14:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549059088; cv=none; d=google.com; s=arc-20160816; b=OatZtxixXJw9GtsueOibl1/yNpLGQRX3dkVDICnT+6eNF9OSA7nG6hWAiz+TmySkNo 5PJHE4GJP9eeof1Am/36701eu2/aN1oIlG7/ZgVnV/DPA59aVuUz+x8QwQ+WkXl1x0XG 1eK3LAuyyuCqXbb+S3jP3KpB25NL7/lhSOWRc8BxUJ/q535piJaUNSU69i5F9t5203KH Ov2oxDbSCZvDwnq+h13W9l1dcH9OVyQ775J+PihCqAqr6kDP9Px99nYxz9QAqcxvZvYe B//CpPGOp/j5bZphU/AqtOOfQ2FUEZu6ulmPXvwgo7kRI35L4kF00hvhbImiDgbyTI4s Es1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=shRZcfZXSpoJNw7v6WydagomunSXUd4xLMj+YXXhPFg=; b=UuPXJmGCBC/VBpES+pqWjROJPz2t+Yo4IveJuKMmxtr4IPhY6wh7fkDvL/swkaUHGy rQolcy/typf5rm/3IBeae9ptl+ch/qNnrkduB09jZzu8EFJ6XykbD0DV9y8xouYp72fd F32HrXOvfsoE26MQCJsqFNrBPlK9pQ78LKzWCpcbGh54Bi2zX8ZPtLFhuGlQYx2IMriC oSJUZ4DqGihxaarw5IQd/pD1GdCwMCv8NJNsrmHpQFZwSKTmae0gUUu87ClOXOpBPpXE okoZWu2O/rehSIv5O1e0wMUjZ5iJcVPxmtFz9ROwh5fh/doyUx326LKuRZF64Gnf6OyN ypRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u8ki6fjS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si3261246plf.370.2019.02.01.14.11.13; Fri, 01 Feb 2019 14:11:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u8ki6fjS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbfBAWID (ORCPT + 99 others); Fri, 1 Feb 2019 17:08:03 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35167 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfBAWIC (ORCPT ); Fri, 1 Feb 2019 17:08:02 -0500 Received: by mail-pg1-f194.google.com with SMTP id s198so3568264pgs.2; Fri, 01 Feb 2019 14:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=shRZcfZXSpoJNw7v6WydagomunSXUd4xLMj+YXXhPFg=; b=u8ki6fjS7Wgs0KVuSZQbLYuC2wJ251oxcy8yPX9nHhc8Ezbl8DLpv8CeCitVXvGwAA rnuqTJVaqHQBQJvJP1hHUK5KcqjAEQHHVT/C8L+zFqykgu0N/RZS1QLjFHcNeJ76ZSkr ajsEr2udb2xp/L4ez2UNkutsuSWETPcv+l9tx/FiGI5/5h5UhojYQzo/je7QukM00p9R eoYNz+OwwEg/6uGpdEeS7n+vNU4uUe9cr0ux0EqAWZC2wnTMTH/IwTSb8Y08k9HVe1Oh xobDZrrGWwWFm6Zj22Ffw/0fzUc7xnuMUoVNiOxN3TMqwv6i3RMwf1g3QIoRwRNaC9V3 RWjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=shRZcfZXSpoJNw7v6WydagomunSXUd4xLMj+YXXhPFg=; b=TaS6PQC1RbOBcmt/jwK3F0Cv7V74Kqu98Ofsmy+O6qm0cuml59kcxgRLFgNjtbt8O5 ZQDOIMxtPOwojMY89HIuNx6ctcQVgUl3D1PZx83EIuk2BlXABDWl/+3FI5vF7ZznY0uX Va7/fgfk5eAohz5XkkoHnERh7To/byyqKxjB8h5T8L/nEIVZdSyUYVIxESqy9aMH4e8g AS3DcaAsMqxbD4b0iP/EPurZfWQ4b8+3oWVGV+yLbvCwrQP0gSZk9dTGJs9bRlUOQQQ/ r33FFg+kR6WReHysi210RltXl73/SdooNOIEZqZFHIog9EqNkELPI+d+n6ZbQd2YTHpO CoXQ== X-Gm-Message-State: AHQUAubBHfAIsbIXOR6NJ1np5Oas+o+0u7W6ZgXOlwKeN4swZjsTBpPY 23OudUvplp3jKam7rn6+F4bk+Y5J X-Received: by 2002:a65:43c5:: with SMTP id n5mr4078173pgp.250.1549058880032; Fri, 01 Feb 2019 14:08:00 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id 78sm11142208pft.184.2019.02.01.14.07.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 14:07:59 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Michael Chan , "David S. Miller" , Derek Chickles , Satanand Burla , Felix Manlunas , Saeed Mahameed , Leon Romanovsky , Jiri Pirko , Ido Schimmel , Alexandre Belloni , Microchip Linux Driver Support , Jakub Kicinski , Ioana Radulescu , Ioana Ciornei , Greg Kroah-Hartman , Ivan Vecera , Andrew Lunn , Vivien Didelot , Dirk van der Merwe , "Francois H. Theron" , Simon Horman , Quentin Monnet , Daniel Borkmann , Eric Dumazet , John Hurley , Edwin Peer , linux-kernel@vger.kernel.org (open list), linux-rdma@vger.kernel.org (open list:MELLANOX MLX5 core VPI driver), oss-drivers@netronome.com (open list:NETRONOME ETHERNET DRIVERS), devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM) Subject: [RFC net-next 00/13] Get rid of switchdev_ops Date: Fri, 1 Feb 2019 14:06:44 -0800 Message-Id: <20190201220657.30170-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series converts SWITCHDEV_PORT_ATTR_{GET,SET} to use a blocking notifier, similar to how SWITCHDEV_PORT_OBJ_{ADD,DEL} has been changed recently by Petr. This was suggested by Ido to help with a particular use case I have where I want to be able to veto a switchdev bridge attribute from a driver (multicast_snooping). Please review since I may not have gotten the driver abstraction right, especially for mlx5e and nfp since these are *hum* *hum* large drivers. Florian Fainelli (13): switchdev: Add SWITCHDEV_PORT_ATTR_SET, SWITCHDEV_PORT_ATTR_GET rocker: Handle SWITCHDEV_PORT_ATTR_GET/SET net: dsa: Handle SWITCHDEV_PORT_ATTR_GET/SET mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_ATTR_GET/SET net: mscc: ocelot: Handle SWITCHDEV_PORT_ATTR_GET/SET staging: fsl-dpaa2: ethsw: Handle SWITCHDEV_PORT_ATTR_GET/SET bnxt: Handle SWITCHDEV_PORT_ATTR_GET event liquidio: Handle SWITCHDEV_PORT_ATTR_GET event mlxsw: switchx2: Handle SWITCHDEV_PORT_ATTR_GET event net/mlx5e: Handle SWITCHDEV_PORT_ATTR_GET event nfp: Handle SWITCHDEV_PORT_ATTR_GET event netdevsim: Handle SWITCHDEV_PORT_ATTR_GET event net: switchdev: Replace port attr get/set SDO with a notification drivers/net/ethernet/broadcom/bnxt/bnxt.c | 63 ++++++++++- drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 9 +- drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h | 8 ++ .../net/ethernet/cavium/liquidio/lio_main.c | 53 ++++++++- .../net/ethernet/cavium/liquidio/lio_vf_rep.c | 48 +++++++- .../net/ethernet/mellanox/mlx5/core/en_main.c | 4 +- .../net/ethernet/mellanox/mlx5/core/en_rep.c | 50 ++++++-- .../net/ethernet/mellanox/mlx5/core/en_rep.h | 2 +- .../net/ethernet/mellanox/mlxsw/spectrum.c | 12 -- .../net/ethernet/mellanox/mlxsw/spectrum.h | 2 - .../mellanox/mlxsw/spectrum_switchdev.c | 36 +++--- .../net/ethernet/mellanox/mlxsw/switchx2.c | 46 +++++++- drivers/net/ethernet/mscc/ocelot.c | 30 ++++- drivers/net/ethernet/netronome/nfp/nfp_main.c | 14 ++- drivers/net/ethernet/netronome/nfp/nfp_net.h | 3 + .../ethernet/netronome/nfp/nfp_net_common.c | 19 +++- .../net/ethernet/netronome/nfp/nfp_net_repr.c | 2 - drivers/net/ethernet/netronome/nfp/nfp_port.c | 17 ++- drivers/net/ethernet/netronome/nfp/nfp_port.h | 5 +- drivers/net/ethernet/rocker/rocker_main.c | 30 ++++- drivers/net/netdevsim/netdev.c | 46 +++++++- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 30 ++++- include/linux/netdevice.h | 3 - include/net/switchdev.h | 28 ++--- net/dsa/slave.c | 30 ++++- net/switchdev/switchdev.c | 107 ++++++------------ 26 files changed, 503 insertions(+), 194 deletions(-) -- 2.17.1