diff options
Diffstat (limited to 'drivers/net/sfc/selftest.h')
-rw-r--r-- | drivers/net/sfc/selftest.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/sfc/selftest.h b/drivers/net/sfc/selftest.h index 97d6acc11ad3..39451cf938cf 100644 --- a/drivers/net/sfc/selftest.h +++ b/drivers/net/sfc/selftest.h | |||
@@ -24,6 +24,8 @@ struct efx_loopback_self_tests { | |||
24 | int rx_bad; | 24 | int rx_bad; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | #define EFX_MAX_PHY_TESTS 20 | ||
28 | |||
27 | /* Efx self test results | 29 | /* Efx self test results |
28 | * For fields which are not counters, 1 indicates success and -1 | 30 | * For fields which are not counters, 1 indicates success and -1 |
29 | * indicates failure. | 31 | * indicates failure. |
@@ -38,7 +40,7 @@ struct efx_self_tests { | |||
38 | int eventq_poll[EFX_MAX_CHANNELS]; | 40 | int eventq_poll[EFX_MAX_CHANNELS]; |
39 | /* offline tests */ | 41 | /* offline tests */ |
40 | int registers; | 42 | int registers; |
41 | int phy; | 43 | int phy[EFX_MAX_PHY_TESTS]; |
42 | struct efx_loopback_self_tests loopback[LOOPBACK_TEST_MAX + 1]; | 44 | struct efx_loopback_self_tests loopback[LOOPBACK_TEST_MAX + 1]; |
43 | }; | 45 | }; |
44 | 46 | ||