net/mlx5e: Add support for ethtool self diagnostics test
authorKamal Heib <kamalh@mellanox.com>
Sun, 27 Nov 2016 15:02:09 +0000 (17:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2016 20:09:35 +0000 (15:09 -0500)
commitd605d6686dc7e7c767cd2dbf89a4ebd195891212
treee9042ca98de1c4688cb7623644d77a4b725b9f64
parent0eca995f3ede3a4fc77e0ea29a7a6c0a4c4fde0f
net/mlx5e: Add support for ethtool self diagnostics test

The self diagnostics test implementaion include the following features:
1. Link Test: Check that link is in up state.
2. Speed Test: Check that link was negotiated correctly.
3. Health Test: Check the device health.

Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c [new file with mode: 0644]