History

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

Inbar Karmy committed 9 years ago

Commit c994f771 parent 9075bd25 files · +16 −7Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mlx4/device.h+1−0
@@ -620,6 +620,7 @@ struct mlx4_caps { · 619 unmodified lines
620 u32 dmfs_high_rate_qpn_base;620 u32 dmfs_high_rate_qpn_base;
621 u32 dmfs_high_rate_qpn_range;621 u32 dmfs_high_rate_qpn_range;
622 u32 vf_caps;622 u32 vf_caps;
623 bool wol_port[MLX4_MAX_PORTS + 1];
623 struct mlx4_rate_limit_caps rl_caps;624 struct mlx4_rate_limit_caps rl_caps;
624};625};
625 626