diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-22 23:37:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-23 20:24:19 +0100 |
commit | 14c07b1358ede1664652bb9b28d9ace5fe6f7f92 (patch) | |
tree | 05fa72b9680e85923d938edd8e4963bbac0b629b /include | |
parent | mlx4_en: using new mlx4 interrupt scheme (diff) | |
download | linux-14c07b1358ede1664652bb9b28d9ace5fe6f7f92.tar.xz linux-14c07b1358ede1664652bb9b28d9ace5fe6f7f92.zip |
mlx4: Wake on LAN support
The driver queries the FW for WOL support.
Ethtool get/set_wol is implemented accordingly.
Only magic packets are supported at the time.
Signed-off-by: Igor Yarovinsky <igory@mellanox.co.il>
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx4/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 78380823d827..2460356d2c72 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -251,6 +251,7 @@ struct mlx4_caps { u16 stat_rate_support; int udp_rss; int loopback_support; + int wol; u8 port_width_cap[MLX4_MAX_PORTS + 1]; int max_gso_sz; int reserved_qps_cnt[MLX4_NUM_QP_REGION]; @@ -535,4 +536,7 @@ int mlx4_test_interrupts(struct mlx4_dev *dev); int mlx4_assign_eq(struct mlx4_dev *dev, char* name , int* vector); void mlx4_release_eq(struct mlx4_dev *dev, int vec); +int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port); +int mlx4_wol_write(struct mlx4_dev *dev, u64 config, int port); + #endif /* MLX4_DEVICE_H */ |