[net-next,v4,0/3] net: dsa: rzn1-a5psw: add support for vlan and .port_bridge_flags

Message ID 20230221092626.57019-1-clement.leger@bootlin.com
Headers
Series net: dsa: rzn1-a5psw: add support for vlan and .port_bridge_flags |

Message

Clément Léger Feb. 21, 2023, 9:26 a.m. UTC
  While adding support for VLAN, bridge_vlan_unaware.sh and
bridge_vlan_aware.sh were executed and requires .port_bridge_flags
to disable flooding on some specific port. Thus, this series adds
both vlan support and .port_bridge_flags.

----
V4:
 - Fix missing CPU port bit in a5psw->bridged_ports
 - Use unsigned int for vlan_res_id parameters
 - Rename a5psw_get_vlan_res_entry() to a5psw_new_vlan_res_entry()
 - In a5psw_port_vlan_add(), return -ENOSPC when no VLAN entry is found
 - In a5psw_port_vlan_filtering(), compute "val" from "mask"

V3:
 - Target net-next tree and correct version...

V2:
 - Fixed a few formatting errors
 - Add .port_bridge_flags implementation

Clément Léger (3):
  net: dsa: rzn1-a5psw: use a5psw_reg_rmw() to modify flooding
    resolution
  net: dsa: rzn1-a5psw: add support for .port_bridge_flags
  net: dsa: rzn1-a5psw: add vlan support

 drivers/net/dsa/rzn1_a5psw.c | 223 ++++++++++++++++++++++++++++++++++-
 drivers/net/dsa/rzn1_a5psw.h |   8 +-
 2 files changed, 222 insertions(+), 9 deletions(-)
  

Comments

Paolo Abeni Feb. 21, 2023, 12:01 p.m. UTC | #1
On Tue, 2023-02-21 at 10:26 +0100, Clément Léger wrote:
> While adding support for VLAN, bridge_vlan_unaware.sh and
> bridge_vlan_aware.sh were executed and requires .port_bridge_flags
> to disable flooding on some specific port. Thus, this series adds
> both vlan support and .port_bridge_flags.
> 
> ----
> V4:
>  - Fix missing CPU port bit in a5psw->bridged_ports
>  - Use unsigned int for vlan_res_id parameters
>  - Rename a5psw_get_vlan_res_entry() to a5psw_new_vlan_res_entry()
>  - In a5psw_port_vlan_add(), return -ENOSPC when no VLAN entry is found
>  - In a5psw_port_vlan_filtering(), compute "val" from "mask"
> 
> V3:
>  - Target net-next tree and correct version...
> 
> V2:
>  - Fixed a few formatting errors
>  - Add .port_bridge_flags implementation
> 
> Clément Léger (3):
>   net: dsa: rzn1-a5psw: use a5psw_reg_rmw() to modify flooding
>     resolution
>   net: dsa: rzn1-a5psw: add support for .port_bridge_flags
>   net: dsa: rzn1-a5psw: add vlan support
> 
>  drivers/net/dsa/rzn1_a5psw.c | 223 ++++++++++++++++++++++++++++++++++-
>  drivers/net/dsa/rzn1_a5psw.h |   8 +-
>  2 files changed, 222 insertions(+), 9 deletions(-)

# Form letter - net-next is closed

The merge window for v6.3 has begun and therefore net-next is closed
for new drivers, features, code refactoring and optimizations.
We are currently accepting bug fixes only.

Please repost when net-next reopens after Mar 6th.

RFC patches sent for review only are obviously welcome at any time.