aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
diff options
context:
space:
mode:
authorAlex Vesker <valex@mellanox.com>2017-09-14 18:02:31 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-10-14 11:22:12 -0700
commit6a910233c1eb19673dd0f37f1d72d7cdc419e176 (patch)
tree8cb3b9ecbd218bf725bc0f7edb8a9eea18b4495e /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
parentnet/mlx5e: IPoIB, Add PKEY child interface ndos (diff)
downloadlinux-dev-6a910233c1eb19673dd0f37f1d72d7cdc419e176.tar.xz
linux-dev-6a910233c1eb19673dd0f37f1d72d7cdc419e176.zip
net/mlx5e: IPoIB, Add PKEY child interface ethtool ops
Similar to VLAN interfaces child interfaces have limited ethtool support. In current code the main limitation that does not allow child interface ethtool configuration is due to shared resources which are managed by the parent. Signed-off-by: Alex Vesker <valex@mellanox.com> Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
index d99bec6855de..531b02cc979b 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
@@ -279,8 +279,8 @@ static void mlx5i_pkey_init(struct mlx5_core_dev *mdev,
/* Override parent ndo */
netdev->netdev_ops = &mlx5i_pkey_netdev_ops;
- /* Currently no ethtool support */
- netdev->ethtool_ops = NULL;
+ /* Set child limited ethtool support */
+ netdev->ethtool_ops = &mlx5i_pkey_ethtool_ops;
/* Use dummy rqs */
priv->channels.params.log_rq_size = MLX5E_PARAMS_MINIMUM_LOG_RQ_SIZE;