net/mlx4_en: Fix wrong indication of Wake-on-LAN (WoL) support
Currently when WoL is supported but disabled, ethtool reports: "Supports Wake-on: d". Fix the indication of Wol support, so that the indication remains "g" all the time if the NIC supports WoL. Tested: As accepted, when NIC supports WoL- ethtool reports: Supports Wake-on: g Wake-on: d when NIC doesn't support WoL- ethtool reports: Supports Wake-on: d Wake-on: d Fixes: 14c07b13 ("mlx4: Wake on LAN support") Signed-off-by:Inbar Karmy <inbark@mellanox.com> Signed-off-by:
Tariq Toukan <tariqt@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 8 additions, 7 deletionsdrivers/net/ethernet/mellanox/mlx4/en_ethtool.c
- drivers/net/ethernet/mellanox/mlx4/fw.c 4 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/fw.c
- drivers/net/ethernet/mellanox/mlx4/fw.h 1 addition, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/fw.h
- drivers/net/ethernet/mellanox/mlx4/main.c 2 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/main.c
- include/linux/mlx4/device.h 1 addition, 0 deletionsinclude/linux/mlx4/device.h
Loading
Please register or sign in to comment