]> 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)
commite86c3d541613f5d0baf0d434b790ba711a5d9854
treedb9ba89f79c443c63c2822ce3b6b5d5049fce820
parent240edad5046adc16fc385ad8850ba5480dc7c671
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: 05246dcbba17 ("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