]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24fa5e24e07a153ad0b3e7a110f594bca419ed17
treedb9ba89f79c443c63c2822ce3b6b5d5049fce820
parent420c41a4fa439af11a5ed7eba6aef770b7e5eb4b
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: c9d628c090e0 ("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