All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/6] mlxsw: SPAN: Support routes pointing at bridges
@ 2018-04-27 15:11 ` Ido Schimmel
  0 siblings, 0 replies; 28+ messages in thread
From: Ido Schimmel @ 2018-04-27 15:11 UTC (permalink / raw)
  To: netdev, bridge; +Cc: davem, jiri, petrm, nikolay, stephen, mlxsw, Ido Schimmel

Petr says:

When mirroring to a gretap or ip6gretap netdevice, the route that
directs the encapsulated packets can reference a bridge. In that case,
in the software model, the packet is switched.

Thus when offloading mirroring like that, take into consideration FDB,
STP, PVID configured at the bridge, and whether that VLAN ID should be
tagged on egress.

Patch #1 introduces functions to get bridge PVID, VLAN flags and to look
up an FDB entry.

Patches #2 and #3 refactor some existing code and introduce a new
accessor function.

With patches #4 and #5 mlxsw calls mlxsw_sp_span_respin() on switchdev
events as well. There is no impact yet, because bridge as an underlay
device is still not allowed.

That is implemented in patch #6, which uses the new interfaces to figure
out on which one port the mirroring should be configured, and whether
the mirrored packets should be VLAN-tagged and how.

Changes from v1 to v2:

- Change the suite of bridge accessor functions to br_vlan_pvid_rtnl(),
  br_vlan_info_rtnl(), br_fdb_find_port_rtnl().

Petr Machata (6):
  net: bridge: Publish bridge accessor functions
  mlxsw: spectrum: Extract mlxsw_sp_stp_spms_state()
  mlxsw: spectrum_switchdev: Publish two functions
  mlxsw: spectrum: Register SPAN before switchdev
  mlxsw: Respin SPAN on switchdev events
  mlxsw: spectrum_span: Allow bridge for gretap mirror

 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     | 50 ++++++------
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |  1 +
 .../net/ethernet/mellanox/mlxsw/spectrum_span.c    | 95 ++++++++++++++++++++--
 .../net/ethernet/mellanox/mlxsw/spectrum_span.h    |  1 +
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.c   | 72 ++++++++++++++--
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.h   | 43 ++++++++++
 include/linux/if_bridge.h                          | 28 +++++++
 net/bridge/br_fdb.c                                | 22 +++++
 net/bridge/br_private.h                            | 11 +++
 net/bridge/br_vlan.c                               | 39 +++++++++
 10 files changed, 326 insertions(+), 36 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.h

-- 
2.14.3

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2018-04-28  0:28 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27 15:11 [PATCH net-next v2 0/6] mlxsw: SPAN: Support routes pointing at bridges Ido Schimmel
2018-04-27 15:11 ` [Bridge] " Ido Schimmel
2018-04-27 15:11 ` [PATCH net-next v2 1/6] net: bridge: Publish bridge accessor functions Ido Schimmel
2018-04-27 15:11   ` [Bridge] " Ido Schimmel
2018-04-27 15:38   ` Nikolay Aleksandrov
2018-04-27 15:38     ` [Bridge] " Nikolay Aleksandrov
2018-04-27 16:08     ` Petr Machata
2018-04-27 16:08       ` [Bridge] " Petr Machata
2018-04-27 16:11       ` Nikolay Aleksandrov
2018-04-27 16:11         ` [Bridge] " Nikolay Aleksandrov
2018-04-27 16:28   ` Stephen Hemminger
2018-04-27 16:28     ` [Bridge] " Stephen Hemminger
2018-04-27 16:36     ` Petr Machata
2018-04-27 16:36       ` [Bridge] " Petr Machata
2018-04-27 15:11 ` [PATCH net-next v2 2/6] mlxsw: spectrum: Extract mlxsw_sp_stp_spms_state() Ido Schimmel
2018-04-27 15:11   ` [Bridge] " Ido Schimmel
2018-04-27 15:11 ` [PATCH net-next v2 3/6] mlxsw: spectrum_switchdev: Publish two functions Ido Schimmel
2018-04-27 15:11   ` [Bridge] " Ido Schimmel
2018-04-27 15:11 ` [PATCH net-next v2 4/6] mlxsw: spectrum: Register SPAN before switchdev Ido Schimmel
2018-04-27 15:11   ` [Bridge] " Ido Schimmel
2018-04-27 15:11 ` [PATCH net-next v2 5/6] mlxsw: Respin SPAN on switchdev events Ido Schimmel
2018-04-27 15:11   ` [Bridge] " Ido Schimmel
2018-04-27 15:11 ` [PATCH net-next v2 6/6] mlxsw: spectrum_span: Allow bridge for gretap mirror Ido Schimmel
2018-04-27 15:11   ` [Bridge] " Ido Schimmel
2018-04-27 15:39   ` Nikolay Aleksandrov
2018-04-27 15:39     ` [Bridge] " Nikolay Aleksandrov
2018-04-28  0:28 ` [PATCH net-next v2 0/6] mlxsw: SPAN: Support routes pointing at bridges David Miller
2018-04-28  0:28   ` [Bridge] " David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.