Skip to content

bridge: mrp: Add support for MRA role

Horatiu Vultur bridge lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- add new patch that fixes sparse warnings
- fix parsing of prio attribute

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bridge: mrp: Update MRP frame typeinclude/uapi/linux/mrp_bridge.h+11 -110 replies
2/3bridge: mrp: Set the priority of MRP instanceinclude/net/switchdev.h include/uapi/linux/if_bridge.h net/bridge/br_mrp.c +3 more+12 -10 replies
3/3bridge: mrp: Add support for role MRAinclude/net/switchdev.h include/uapi/linux/if_bridge.h include/uapi/linux/mrp_bridge.h +4 more+159 -210 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] bridge: mrp: Add support for MRA role

This patch series extends the MRP with the MRA role.
A node that has the MRA role can behave as a MRM or as a MRC. In case there are multiple nodes in the topology that has the MRA role then only one node can behave as MRM and all the others need to be have as MRC. The node that has the higher priority(lower value) will behave as MRM.
A node that has the MRA role and behaves as MRC, it just needs to forward the MRP_Test frames between the ring ports but also it needs to detect in case it stops receiving MRP_Test frames. In that case it would try to behave as MRM.

v2:
- add new patch that fixes sparse warnings
- fix parsing of prio attribute

Horatiu Vultur (3):
bridge: mrp: Update MRP frame type
bridge: mrp: Set the priority of MRP instance
bridge: mrp: Add support for role MRA

 include/net/switchdev.h         |   2 +
 include/uapi/linux/if_bridge.h  |   4 +
 include/uapi/linux/mrp_bridge.h |  60 ++++++++++++---
 net/bridge/br_mrp.c             | 128 +++++++++++++++++++++++++++-----
 net/bridge/br_mrp_netlink.c     |  11 +++
 net/bridge/br_mrp_switchdev.c   |   5 +-
 net/bridge/br_private_mrp.h     |   5 +-
 7 files changed, 182 insertions(+), 33 deletions(-)
Signature · 1 line
2.26.2