diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-03-28 13:56:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-28 12:55:30 -0700 |
commit | 011d32560242f8bd93a33b17bfcff310ab8d569b (patch) | |
tree | 5a144607164829a948988e4d8adfd33c2ce26f01 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | af3836df9a59e7339d60c9c46729a7d9094d0582 (diff) | |
download | linux-stable-011d32560242f8bd93a33b17bfcff310ab8d569b.tar.gz linux-stable-011d32560242f8bd93a33b17bfcff310ab8d569b.tar.bz2 linux-stable-011d32560242f8bd93a33b17bfcff310ab8d569b.zip |
mlxsw: Implement ndo_get_devlink_port
In order for devlink compat functions to work, implement
ndo_get_devlink_port.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index 74e95e943b24..cb870502f04c 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -178,6 +178,9 @@ enum devlink_port_type mlxsw_core_port_type_get(struct mlxsw_core *mlxsw_core, u8 local_port); int mlxsw_core_port_get_phys_port_name(struct mlxsw_core *mlxsw_core, u8 local_port, char *name, size_t len); +struct devlink_port * +mlxsw_core_port_devlink_port_get(struct mlxsw_core *mlxsw_core, + u8 local_port); int mlxsw_core_schedule_dw(struct delayed_work *dwork, unsigned long delay); bool mlxsw_core_schedule_work(struct work_struct *work); |