Skip to content

Switchdev: flooding offload option

Igor Mitsyanko bridge netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bridge: initialize port flags with switchdev defaultsnet/bridge/br_if.c+16 -14 replies
2/5bridge: propagate BR_ flags updates through sysfs to switchdevnet/bridge/br_sysfs_if.c+11 -42 replies
3/5bridge: allow switchdev port to handle flooding by itselfinclude/linux/if_bridge.h net/bridge/br_forward.c net/bridge/br_private.h +1 more+24 -14 replies
4/5bridge: provide sysfs and netlink interface to set BR_FLOOD_OFFLOADinclude/uapi/linux/if_link.h net/bridge/br_netlink.c net/bridge/br_sysfs_if.c+10 -10 replies
5/5bridge: verify "HW only" flags can't be set without HW supportnet/bridge/br_private.h+4 -10 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 0/5] Switchdev: flooding offload option

Main goal of the patchset is to allow for flooding offload to switchdev in scenarios when HW switchdev ports and SW ports are operating in a single bridge.

In case a data frame that needs to be flooded is ingressed on a SW port,
it needs to be flooded to a single HW port of any given switchdev-capable hardware only. Switchdev hardware will than take care about flooding to the rest of the ports that it manages.

Igor Mitsyanko (5):
bridge: initialize port flags with switchdev defaults
bridge: propagate BR_ flags updates through sysfs to switchdev
bridge: allow switchdev port to handle flooding by itself
bridge: provide sysfs and netlink interface to set BR_FLOOD_OFFLOAD
bridge: verify "HW only" flags can't be set without HW support

 include/linux/if_bridge.h    |  1 +
 include/uapi/linux/if_link.h |  1 +
 net/bridge/br_forward.c      |  2 ++
 net/bridge/br_if.c           | 17 ++++++++++++++++-
 net/bridge/br_netlink.c      |  8 +++++++-
 net/bridge/br_private.h      | 13 ++++++++++++-
 net/bridge/br_switchdev.c    | 14 +++++++++++++-
 net/bridge/br_sysfs_if.c     | 17 +++++++++++++----
 8 files changed, 65 insertions(+), 8 deletions(-)
Signature · 1 line
2.9.5