diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-11-02 17:02:10 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-03 20:48:36 -0700 |
commit | 77df1db80da384c565106321f5934967690da7dd (patch) | |
tree | 0c687cd16a39c63eaad14f1635e40fdb4a8a942c /drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c | |
parent | 8eba37f7e9bc82fac08f31d318e36f341494442d (diff) | |
download | linux-stable-77df1db80da384c565106321f5934967690da7dd.tar.gz linux-stable-77df1db80da384c565106321f5934967690da7dd.tar.bz2 linux-stable-77df1db80da384c565106321f5934967690da7dd.zip |
net: remove unused ndo_get_devlink_port
Remove ndo_get_devlink_port which is no longer used alongside with the
implementations in drivers.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c b/drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c index ce0e56f856d6..83adaabf59f5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c @@ -62,13 +62,3 @@ void mlx5e_devlink_port_unregister(struct mlx5e_priv *priv) if (!(priv->mdev->priv.flags & MLX5_PRIV_FLAGS_MLX5E_LOCKED_FLOW)) devl_unlock(devlink); } - -struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev) -{ - struct mlx5e_priv *priv = netdev_priv(dev); - - if (!netif_device_present(dev)) - return NULL; - - return mlx5e_devlink_get_dl_port(priv); -} |