Re: [RFC PATCH v2 5/8] net: sparx5: add switching, vlan and mactable support

2020-12-23 Thread Steen Hegelund
Hi Andrew, On 21.12.2020 01:25, Andrew Lunn wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c + +static inline int sparx5_mact_get_status(struct sparx5 *sparx5) +{ + return

Re: [RFC PATCH v2 5/8] net: sparx5: add switching, vlan and mactable support

2020-12-20 Thread Andrew Lunn
> +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c > + > +static inline int sparx5_mact_get_status(struct sparx5 *sparx5) > +{ > + return spx5_rd(sparx5, LRN_COMMON_ACCESS_CTRL); > +} > + > +static inline int sparx5_mact_wait_for_completion(struct sparx5 *sparx5) > +{ > + u32

[RFC PATCH v2 5/8] net: sparx5: add switching, vlan and mactable support

2020-12-16 Thread Steen Hegelund
This adds SwitchDev support by hardware offloading the SW bridge and setting up the Sparx5 MAC/VLAN tables, and listening for MAC table updates. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Signed-off-by: Lars Povlsen --- .../net/ethernet/microchip/sparx5/Makefile| 3 +-