diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2016-02-22 18:17:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-24 13:50:21 -0500 |
commit | 928cfe8745a62e60c1e8e06676a74724e7786024 (patch) | |
tree | 88bbdc96e44ce889fd48a9a5562d87c0a06664ca /drivers/net/ethernet/mellanox/mlx5/core/cmd.c | |
parent | d8880795dabf2381ed1e98348f6d9c7ea6fab950 (diff) | |
download | linux-0-day-928cfe8745a62e60c1e8e06676a74724e7786024.tar.gz linux-0-day-928cfe8745a62e60c1e8e06676a74724e7786024.tar.xz |
net/mlx5e: Wake On LAN support
Implement set/get WOL by ethtool and added the needed
device commands and structures to mlx5_ifc.
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Rana Shahout <ranas@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/cmd.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c index 037fc4cdf5af6..9ce87c6244507 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c @@ -560,6 +560,12 @@ const char *mlx5_command_str(int command) case MLX5_CMD_OP_ACCESS_REG: return "MLX5_CMD_OP_ACCESS_REG"; + case MLX5_CMD_OP_SET_WOL_ROL: + return "SET_WOL_ROL"; + + case MLX5_CMD_OP_QUERY_WOL_ROL: + return "QUERY_WOL_ROL"; + default: return "unknown command opcode"; } } |