net: dsa: add MRP support
Add support for offloading MRP in HW. Currently implement the switchdev calls 'SWITCHDEV_OBJ_ID_MRP', 'SWITCHDEV_OBJ_ID_RING_ROLE_MRP', to allow to create MRP instances and to set the role of these instances. Add DSA_NOTIFIER_MRP_ADD/DEL and DSA_NOTIFIER_MRP_ADD/DEL_RING_ROLE which calls to .port_mrp_add/del and .port_mrp_add/del_ring_role in the DSA driver for the switch. Signed-off-by:Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/dsa.h 12 additions, 0 deletionsinclude/net/dsa.h
- net/dsa/dsa_priv.h 26 additions, 0 deletionsnet/dsa/dsa_priv.h
- net/dsa/port.c 48 additions, 0 deletionsnet/dsa/port.c
- net/dsa/slave.c 22 additions, 0 deletionsnet/dsa/slave.c
- net/dsa/switch.c 105 additions, 0 deletionsnet/dsa/switch.c
Please register or sign in to comment