summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorInbar Karmy <inbark@mellanox.com>2017-08-01 16:43:43 +0300
committerBen Hutchings <ben@decadent.org.uk>2017-11-11 13:33:14 +0000
commitf0f2427a25425804d1eb091c333e5dd237b3e9c8 (patch)
tree30ce383b5731fc59a6107966881cf6afd14f9eaf /include/linux
parentd7753f34015c7be1d91239b04c7329068685abc4 (diff)
net/mlx4_en: Fix wrong indication of Wake-on-LAN (WoL) support
commit c994f778bb1cca8ebe7a4e528cefec233e93b5cc upstream. 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: 14c07b1358ed ("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> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx4/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 48ddabb261bc..61c043c449cb 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -467,6 +467,7 @@ struct mlx4_caps {
u16 hca_core_clock;
u64 phys_port_id[MLX4_MAX_PORTS + 1];
int tunnel_offload_mode;
+ bool wol_port[MLX4_MAX_PORTS + 1];
};
struct mlx4_buf_list {