Skip to content
  • Petr Machata's avatar
    mlxsw: spectrum_switchdev: Propagate extack on port VLAN events · 7357eb3d
    Petr Machata authored
    
    
    After switchdev_handle_port_obj_add() was extended in a preceding patch,
    mlxsw_sp_port_obj_add() now takes an extack argument. Propagate it
    further by extending a callee chain from mlxsw_sp_port_vlans_add(), via
    mlxsw_sp_bridge_port_vlan_add() via mlxsw_sp_port_vlan_bridge_join() via
    mlxsw_sp_port_vlan_fid_join() to mlxsw_sp_bridge_ops.fid_get, adding an
    extack argument for each of them.
    
    This code path is used when a VLAN is added to a port netdevice if there
    already is an unoffloadable VXLAN device with that VLAN mapped.
    
    mlxsw_sp_bridge_8021d_port_join() is updated to obey the new interfaces
    changed by the abovementioned code, propagating extack ultimately from
    NETDEV_CHANGEUPPER events.
    
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
    Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7357eb3d