Skip to content

mlxws: update driver to support offload of bridged vlan devices

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14switchdev: vlan: Use switchdev_port* in vlan_netdev_opsnet/8021q/vlan_dev.c+7 -00 replies
2/14switchdev: Pass original device to port netdev driverinclude/net/switchdev.h net/bridge/br_fdb.c net/bridge/br_stp.c +5 more+22 -00 replies
3/14mlxsw: spectrum: Allocate active VLANs only for port netdevsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h+11 -10 replies
4/14mlxsw: spectrum: Split vFID range in twodrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+287 -990 replies
5/14mlxsw: spectrum: Use appropriate parameter namedrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+4 -40 replies
6/14mlxsw: spectrum: Add another flood table for vFIDsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+16 -270 replies
7/14mlxsw: spectrum: Use FID instead of VID when accessing FDBdrivers/net/ethernet/mellanox/mlxsw/reg.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+34 -280 replies
8/14mlxsw: spectrum: Adjust switchdev ops for VLAN devicesdrivers/net/ethernet/mellanox/mlxsw/Kconfig drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+98 -40 replies
9/14mlxsw: spectrum: Adjust FDB notifications for VLAN devicesdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+61 -40 replies
10/14mlxsw: spectrum: Handle VLAN devices linking / unlinkingdrivers/net/ethernet/mellanox/mlxsw/spectrum.c+51 -30 replies
11/14mlxsw: spectrum: Add support for VLAN devices bridgingdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+378 -10 replies
12/14mlxsw: reg: Add lag_vid field to SFD registerdrivers/net/ethernet/mellanox/mlxsw/reg.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+10 -20 replies
13/14mlxsw: spectrum: Enable FDB records for VLAN devices on top of LAGdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+14 -70 replies
14/14mlxsw: spectrum: Add support for VLAN devices on top of LAGdrivers/net/ethernet/mellanox/mlxsw/spectrum.c+29 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch net-next 00/14] mlxws: update driver to support offload of bridged vlan devices

From: Jiri Pirko <[email protected]>

Ido Schimmel says:

====================
This patchset introduces support for the offloading of 802.1D bridges between VLAN devices. These can either be VLAN devices configured on top of the physical ports or on top of LAG devices.

Patches 1-2 deal with the necessary infrastructure changes needed in order to enable the above. The main change is that switchdev drivers can now know the device from which the switchdev op originated from.

Patches 3-10 lay the groundwork for 802.1D bridges support in the mlxsw driver, with patch 4 doing most of the heavy lifting.

Patch 11 finally offloads these bridges to hardware by listening to the notifications sent when the VLAN device joins or leaves a bridge. It is very similar to the already existing 802.1Q bridge we support.

Patches 12-14 add minor modifications to allow one to bridge a VLAN device configured on top of LAG.
====================

Ido Schimmel (14):
switchdev: vlan: Use switchdev_port* in vlan_netdev_ops
switchdev: Pass original device to port netdev driver
mlxsw: spectrum: Allocate active VLANs only for port netdevs
mlxsw: spectrum: Split vFID range in two
mlxsw: spectrum: Use appropriate parameter name
mlxsw: spectrum: Add another flood table for vFIDs
mlxsw: spectrum: Use FID instead of VID when accessing FDB
mlxsw: spectrum: Adjust switchdev ops for VLAN devices
mlxsw: spectrum: Adjust FDB notifications for VLAN devices
mlxsw: spectrum: Handle VLAN devices linking / unlinking
mlxsw: spectrum: Add support for VLAN devices bridging
mlxsw: reg: Add lag_vid field to SFD register
mlxsw: spectrum: Enable FDB records for VLAN devices on top of LAG
mlxsw: spectrum: Add support for VLAN devices on top of LAG

 drivers/net/ethernet/mellanox/mlxsw/Kconfig        |   2 +-
 drivers/net/ethernet/mellanox/mlxsw/reg.h          |  22 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     | 774 ++++++++++++++++++---
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     | 102 ++-
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.c   | 234 ++++++-
 include/net/switchdev.h                            |   2 +
 net/8021q/vlan_dev.c                               |   7 +
 net/bridge/br_fdb.c                                |   1 +
 net/bridge/br_stp.c                                |   2 +
 net/bridge/br_stp_if.c                             |   1 +
 net/bridge/br_vlan.c                               |   2 +
 net/core/net-sysfs.c                               |   1 +
 net/core/rtnetlink.c                               |   1 +
 net/switchdev/switchdev.c                          |  12 +
 14 files changed, 1001 insertions(+), 162 deletions(-)
Signature · 1 line
1.9.3