mbox series

[net-next,v2,0/3] net: ocelot: Extend MRP

Message ID 20210316201019.3081237-1-horatiu.vultur@microchip.com
Headers show
Series net: ocelot: Extend MRP | expand

Message

Horatiu Vultur March 16, 2021, 8:10 p.m. UTC
This patch series extends the current support of MRP in Ocelot driver.
Currently the forwarding of the frames happened in SW because all frames
were trapped to CPU. With this patch the MRP frames will be forward in HW.

v1 -> v2:
 - create a patch series instead of single patch
 - rename ocelot_mrp_find_port to ocelot_mrp_find_partner_port
 - rename PGID_MRP to PGID_BLACKHOLE
 - use GFP_KERNEL instead of GFP_ATOMIC
 - fix other whitespace issues

Horatiu Vultur (3):
  net: ocelot: Add PGID_BLACKHOLE
  net: ocelot: Extend MRP
  net: ocelot: Remove ocelot_xfh_get_cpuq

 drivers/net/ethernet/mscc/ocelot.c     |  12 +-
 drivers/net/ethernet/mscc/ocelot_mrp.c | 233 +++++++++++++++++--------
 include/linux/dsa/ocelot.h             |   5 -
 include/soc/mscc/ocelot.h              |  12 +-
 net/dsa/tag_ocelot.c                   |   8 -
 5 files changed, 167 insertions(+), 103 deletions(-)

Comments

Vladimir Oltean March 16, 2021, 11:24 p.m. UTC | #1
On Tue, Mar 16, 2021 at 09:10:19PM +0100, Horatiu Vultur wrote:
> Now when extracting frames from CPU the cpuq is not used anymore so
> remove it.
> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> ---

OCELOT_MRP_CPUQ should have disappeared too. Doesn't matter too much
though.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>