mlxsw: core: Add "eth" prefix to mlxsw_core_port_set
Since we are about to introduce IB port APIs, we will add prefixes to existing APIs. Signed-off-by: Elad Raz <eladr@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c68b71cb2f
commit
d808c7e490
4 changed files with 12 additions and 11 deletions
|
@ -1705,7 +1705,7 @@ void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(mlxsw_core_port_fini);
|
EXPORT_SYMBOL(mlxsw_core_port_fini);
|
||||||
|
|
||||||
void mlxsw_core_port_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
||||||
void *port_driver_priv, struct net_device *dev,
|
void *port_driver_priv, struct net_device *dev,
|
||||||
bool split, u32 split_group)
|
bool split, u32 split_group)
|
||||||
{
|
{
|
||||||
|
@ -1718,7 +1718,7 @@ void mlxsw_core_port_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
||||||
devlink_port_split_set(devlink_port, split_group);
|
devlink_port_split_set(devlink_port, split_group);
|
||||||
devlink_port_type_eth_set(devlink_port, dev);
|
devlink_port_type_eth_set(devlink_port, dev);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(mlxsw_core_port_set);
|
EXPORT_SYMBOL(mlxsw_core_port_eth_set);
|
||||||
|
|
||||||
void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u8 local_port,
|
void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u8 local_port,
|
||||||
void *port_driver_priv)
|
void *port_driver_priv)
|
||||||
|
|
|
@ -145,7 +145,7 @@ void mlxsw_core_lag_mapping_clear(struct mlxsw_core *mlxsw_core,
|
||||||
void *mlxsw_core_port_driver_priv(struct mlxsw_core_port *mlxsw_core_port);
|
void *mlxsw_core_port_driver_priv(struct mlxsw_core_port *mlxsw_core_port);
|
||||||
int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port);
|
int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port);
|
||||||
void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port);
|
void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port);
|
||||||
void mlxsw_core_port_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
||||||
void *port_driver_priv, struct net_device *dev,
|
void *port_driver_priv, struct net_device *dev,
|
||||||
bool split, u32 split_group);
|
bool split, u32 split_group);
|
||||||
void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u8 local_port,
|
void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u8 local_port,
|
||||||
|
|
|
@ -2358,8 +2358,9 @@ static int __mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port,
|
||||||
goto err_register_netdev;
|
goto err_register_netdev;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlxsw_core_port_set(mlxsw_sp->core, mlxsw_sp_port->local_port,
|
mlxsw_core_port_eth_set(mlxsw_sp->core, mlxsw_sp_port->local_port,
|
||||||
mlxsw_sp_port, dev, mlxsw_sp_port->split, module);
|
mlxsw_sp_port, dev, mlxsw_sp_port->split,
|
||||||
|
module);
|
||||||
mlxsw_core_schedule_dw(&mlxsw_sp_port->hw_stats.update_dw, 0);
|
mlxsw_core_schedule_dw(&mlxsw_sp_port->hw_stats.update_dw, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -1098,7 +1098,7 @@ static int __mlxsw_sx_port_create(struct mlxsw_sx *mlxsw_sx, u8 local_port,
|
||||||
goto err_register_netdev;
|
goto err_register_netdev;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlxsw_core_port_set(mlxsw_sx->core, mlxsw_sx_port->local_port,
|
mlxsw_core_port_eth_set(mlxsw_sx->core, mlxsw_sx_port->local_port,
|
||||||
mlxsw_sx_port, dev, false, 0);
|
mlxsw_sx_port, dev, false, 0);
|
||||||
mlxsw_sx->ports[local_port] = mlxsw_sx_port;
|
mlxsw_sx->ports[local_port] = mlxsw_sx_port;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue