From: Florian Fainelli <f.fainelli@gmail•com>
To: netdev@vger•kernel.org
Cc: Florian Fainelli <f.fainelli@gmail•com>,
Michael Chan <michael.chan@broadcom•com>,
"David S. Miller" <davem@davemloft•net>,
Derek Chickles <dchickles@marvell•com>,
Satanand Burla <sburla@marvell•com>,
Felix Manlunas <fmanlunas@marvell•com>,
Saeed Mahameed <saeedm@mellanox•com>,
Leon Romanovsky <leon@kernel•org>, Jiri Pirko <jiri@mellanox•com>,
Ido Schimmel <idosch@mellanox•com>,
Alexandre Belloni <alexandre.belloni@bootlin•com>,
Microchip Linux Driver Support <UNGLinuxDriver@microchip•com>,
Jakub Kicinski <jakub.kicinski@netronome•com>,
Ioana Radulescu <ruxandra.radulescu@nxp•com>,
Ioana Ciornei <ioana.ciornei@nxp•com>,
Greg Kroah-Hartman <gregkh@linuxfoundation•org>,
Ivan Vecera <ivecera@redhat•com>, Andrew Lunn <andrew@lunn•ch>,
Vivien Didelot <vivien.didelot@gmail•com>,
Dirk van der Merwe <dirk.vandermerwe@netronome•com>,
"Francois H. Theron" <francois.theron@netronome•com>,
Simon Horman <simon.horman@netronome•com>,
Quentin Monnet <quentin.monnet@netronome•com>,
Daniel Borkmann <daniel@iogearbox•net>,
Eric Dumazet <edumazet@google•com>,
John Hurley <john.hurley@netronome•com>,
Edwin Peer <edwin.peer@netronome•com>,
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 [thread overview]
Message-ID: <20190201220657.30170-1-f.fainelli@gmail.com> (raw)
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
next reply other threads:[~2019-02-01 22:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-01 22:06 Florian Fainelli [this message]
2019-02-01 22:06 ` [RFC net-next 01/13] switchdev: Add SWITCHDEV_PORT_ATTR_SET, SWITCHDEV_PORT_ATTR_GET Florian Fainelli
2019-02-02 15:48 ` Jiri Pirko
2019-02-01 22:06 ` [RFC net-next 02/13] rocker: Handle SWITCHDEV_PORT_ATTR_GET/SET Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 03/13] net: dsa: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 04/13] mlxsw: spectrum_switchdev: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 05/13] net: mscc: ocelot: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 06/13] staging: fsl-dpaa2: ethsw: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 07/13] bnxt: Handle SWITCHDEV_PORT_ATTR_GET event Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 08/13] liquidio: " Florian Fainelli
2019-02-02 1:38 ` Felix Manlunas
2019-02-01 22:06 ` [RFC net-next 09/13] mlxsw: switchx2: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 10/13] net/mlx5e: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 11/13] nfp: " Florian Fainelli
2019-02-02 3:45 ` Jakub Kicinski
2019-02-02 4:22 ` Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 12/13] netdevsim: " Florian Fainelli
2019-02-01 22:06 ` [RFC net-next 13/13] net: switchdev: Replace port attr get/set SDO with a notification Florian Fainelli
2019-02-02 15:52 ` [RFC net-next 00/13] Get rid of switchdev_ops Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190201220657.30170-1-f.fainelli@gmail.com \
--to=f.fainelli@gmail$(echo .)com \
--cc=UNGLinuxDriver@microchip$(echo .)com \
--cc=alexandre.belloni@bootlin$(echo .)com \
--cc=andrew@lunn$(echo .)ch \
--cc=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=dchickles@marvell$(echo .)com \
--cc=devel@driverdev$(echo .)osuosl.org \
--cc=dirk.vandermerwe@netronome$(echo .)com \
--cc=edumazet@google$(echo .)com \
--cc=edwin.peer@netronome$(echo .)com \
--cc=fmanlunas@marvell$(echo .)com \
--cc=francois.theron@netronome$(echo .)com \
--cc=gregkh@linuxfoundation$(echo .)org \
--cc=idosch@mellanox$(echo .)com \
--cc=ioana.ciornei@nxp$(echo .)com \
--cc=ivecera@redhat$(echo .)com \
--cc=jakub.kicinski@netronome$(echo .)com \
--cc=jiri@mellanox$(echo .)com \
--cc=john.hurley@netronome$(echo .)com \
--cc=leon@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-rdma@vger$(echo .)kernel.org \
--cc=michael.chan@broadcom$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=oss-drivers@netronome$(echo .)com \
--cc=quentin.monnet@netronome$(echo .)com \
--cc=ruxandra.radulescu@nxp$(echo .)com \
--cc=saeedm@mellanox$(echo .)com \
--cc=sburla@marvell$(echo .)com \
--cc=simon.horman@netronome$(echo .)com \
--cc=vivien.didelot@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox