mlxsw: Remove unused port_type_set devlink op
port_type_set devlink op is no longer used by any mlxsw driver, so remove it. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3471ac9b22
commit
04a1b674d6
@ -1307,21 +1307,6 @@ mlxsw_devlink_sb_pool_set(struct devlink *devlink,
|
|||||||
extack);
|
extack);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mlxsw_devlink_port_type_set(struct devlink_port *devlink_port,
|
|
||||||
enum devlink_port_type port_type)
|
|
||||||
{
|
|
||||||
struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink);
|
|
||||||
struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver;
|
|
||||||
struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port);
|
|
||||||
|
|
||||||
if (!mlxsw_driver->port_type_set)
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
|
|
||||||
return mlxsw_driver->port_type_set(mlxsw_core,
|
|
||||||
mlxsw_core_port->local_port,
|
|
||||||
port_type);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int mlxsw_devlink_sb_port_pool_get(struct devlink_port *devlink_port,
|
static int mlxsw_devlink_sb_port_pool_get(struct devlink_port *devlink_port,
|
||||||
unsigned int sb_index, u16 pool_index,
|
unsigned int sb_index, u16 pool_index,
|
||||||
u32 *p_threshold)
|
u32 *p_threshold)
|
||||||
@ -1652,7 +1637,6 @@ static const struct devlink_ops mlxsw_devlink_ops = {
|
|||||||
BIT(DEVLINK_RELOAD_ACTION_FW_ACTIVATE),
|
BIT(DEVLINK_RELOAD_ACTION_FW_ACTIVATE),
|
||||||
.reload_down = mlxsw_devlink_core_bus_device_reload_down,
|
.reload_down = mlxsw_devlink_core_bus_device_reload_down,
|
||||||
.reload_up = mlxsw_devlink_core_bus_device_reload_up,
|
.reload_up = mlxsw_devlink_core_bus_device_reload_up,
|
||||||
.port_type_set = mlxsw_devlink_port_type_set,
|
|
||||||
.port_split = mlxsw_devlink_port_split,
|
.port_split = mlxsw_devlink_port_split,
|
||||||
.port_unsplit = mlxsw_devlink_port_unsplit,
|
.port_unsplit = mlxsw_devlink_port_unsplit,
|
||||||
.sb_pool_get = mlxsw_devlink_sb_pool_get,
|
.sb_pool_get = mlxsw_devlink_sb_pool_get,
|
||||||
|
@ -347,8 +347,6 @@ struct mlxsw_driver {
|
|||||||
const struct mlxsw_bus_info *mlxsw_bus_info,
|
const struct mlxsw_bus_info *mlxsw_bus_info,
|
||||||
struct netlink_ext_ack *extack);
|
struct netlink_ext_ack *extack);
|
||||||
void (*fini)(struct mlxsw_core *mlxsw_core);
|
void (*fini)(struct mlxsw_core *mlxsw_core);
|
||||||
int (*port_type_set)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
||||||
enum devlink_port_type new_type);
|
|
||||||
int (*port_split)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
int (*port_split)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
||||||
unsigned int count, struct netlink_ext_ack *extack);
|
unsigned int count, struct netlink_ext_ack *extack);
|
||||||
int (*port_unsplit)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
int (*port_unsplit)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user