OSDN Git Service

net/mlx5e: Fix compatibility issue with ethtool flash device
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 1 Aug 2019 11:27:30 +0000 (14:27 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Aug 2019 18:43:57 +0000 (11:43 -0700)
commitf43d48d10a42787c1de1d3facd7db210c91db1da
treedb9ba89f79c443c63c2822ce3b6b5d5049fce820
parente0d57d9c7e7a223f3c2ff8b7b63ec1bf63f11ed4
net/mlx5e: Fix compatibility issue with ethtool flash device

Cited patch deleted ethtool flash device support, as ethtool core can
fallback into devlink flash callback. However, this is supported only if
there is a devlink port registered over the corresponding netdevice.

As mlx5e do not have devlink port support over native netdevice, it broke
the ability to flash device via ethtool.

This patch re-add the ethtool callback to avoid user functionality breakage
when trying to flash device via ethtool.

Fixes: 9c8bca2637b8 ("mlx5: Move firmware flash implementation to devlink")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c