lkml.org 
[lkml]   [2021]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net-next v3 0/5] bridge: mrp: Extend br_mrp_switchdev_*
Date
This patch series extends MRP switchdev to allow the SW to have a better
understanding if the HW can implement the MRP functionality or it needs
to help the HW to run it. There are 3 cases:
- when HW can't implement at all the functionality.
- when HW can implement a part of the functionality but needs the SW
implement the rest. For example if it can't detect when it stops
receiving MRP Test frames but it can copy the MRP frames to CPU to
allow the SW to determine this. Another example is generating the MRP
Test frames. If HW can't do that then the SW is used as backup.
- when HW can implement completely the functionality.

So, initially the SW tries to offload the entire functionality in HW, if
that fails it tries offload parts of the functionality in HW and use the
SW as helper and if also this fails then MRP can't run on this HW.

Also implement the switchdev calls for Ocelot driver. This is an example
where the HW can't run completely the functionality but it can help the SW
to run it, by trapping all MRP frames to CPU.

v3:
- implement the switchdev calls needed by Ocelot driver.
v2:
- fix typos in comments and in commit messages
- remove some of the comments
- move repeated code in helper function
- fix issue when deleting a node when sw_backup was true

Horatiu Vultur (5):
switchdev: mrp: Extend ring_role_mrp and in_role_mrp
bridge: mrp: Add 'enum br_mrp_hw_support'
bridge: mrp: Extend br_mrp_switchdev to detect better the errors
bridge: mrp: Update br_mrp to use new return values of
br_mrp_switchdev
net: mscc: ocelot: Add support for MRP

drivers/net/ethernet/mscc/ocelot_net.c | 154 +++++++++++++++++++
drivers/net/ethernet/mscc/ocelot_vsc7514.c | 6 +
include/net/switchdev.h | 2 +
include/soc/mscc/ocelot.h | 6 +
net/bridge/br_mrp.c | 43 ++++--
net/bridge/br_mrp_switchdev.c | 171 +++++++++++++--------
net/bridge/br_private_mrp.h | 38 +++--
7 files changed, 327 insertions(+), 93 deletions(-)

--
2.27.0

\
 
 \ /
  Last update: 2021-02-10 00:57    [W:0.080 / U:1.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site