diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-22 18:37:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-23 15:24:19 -0400 |
commit | 14c07b1358ede1664652bb9b28d9ace5fe6f7f92 (patch) | |
tree | 05fa72b9680e85923d938edd8e4963bbac0b629b /include | |
parent | 1fb9876e9bf895ea4127ff17180f1b2ab37771b6 (diff) |
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 { | |||
251 | u16 stat_rate_support; | 251 | u16 stat_rate_support; |
252 | int udp_rss; | 252 | int udp_rss; |
253 | int loopback_support; | 253 | int loopback_support; |
254 | int wol; | ||
254 | u8 port_width_cap[MLX4_MAX_PORTS + 1]; | 255 | u8 port_width_cap[MLX4_MAX_PORTS + 1]; |
255 | int max_gso_sz; | 256 | int max_gso_sz; |
256 | int reserved_qps_cnt[MLX4_NUM_QP_REGION]; | 257 | int reserved_qps_cnt[MLX4_NUM_QP_REGION]; |
@@ -535,4 +536,7 @@ int mlx4_test_interrupts(struct mlx4_dev *dev); | |||
535 | int mlx4_assign_eq(struct mlx4_dev *dev, char* name , int* vector); | 536 | int mlx4_assign_eq(struct mlx4_dev *dev, char* name , int* vector); |
536 | void mlx4_release_eq(struct mlx4_dev *dev, int vec); | 537 | void mlx4_release_eq(struct mlx4_dev *dev, int vec); |
537 | 538 | ||
539 | int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port); | ||
540 | int mlx4_wol_write(struct mlx4_dev *dev, u64 config, int port); | ||
541 | |||
538 | #endif /* MLX4_DEVICE_H */ | 542 | #endif /* MLX4_DEVICE_H */ |