diff options
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 7fa28443c7bc..53d259e90187 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -345,7 +345,7 @@ static int efx_ethtool_fill_self_tests(struct efx_nic *efx, | |||
345 | u64 *data) | 345 | u64 *data) |
346 | { | 346 | { |
347 | struct efx_channel *channel; | 347 | struct efx_channel *channel; |
348 | unsigned int n = 0; | 348 | unsigned int n = 0, i; |
349 | enum efx_loopback_mode mode; | 349 | enum efx_loopback_mode mode; |
350 | 350 | ||
351 | efx_fill_test(n++, strings, data, &tests->mii, | 351 | efx_fill_test(n++, strings, data, &tests->mii, |
@@ -373,8 +373,10 @@ static int efx_ethtool_fill_self_tests(struct efx_nic *efx, | |||
373 | 373 | ||
374 | efx_fill_test(n++, strings, data, &tests->registers, | 374 | efx_fill_test(n++, strings, data, &tests->registers, |
375 | "core", 0, "registers", NULL); | 375 | "core", 0, "registers", NULL); |
376 | efx_fill_test(n++, strings, data, &tests->phy, | 376 | |
377 | "phy", 0, "bist", NULL); | 377 | for (i = 0; i < efx->phy_op->num_tests; i++) |
378 | efx_fill_test(n++, strings, data, &tests->phy[i], | ||
379 | "phy", 0, efx->phy_op->test_names[i], NULL); | ||
378 | 380 | ||
379 | /* Loopback tests */ | 381 | /* Loopback tests */ |
380 | for (mode = LOOPBACK_NONE; mode <= LOOPBACK_TEST_MAX; mode++) { | 382 | for (mode = LOOPBACK_NONE; mode <= LOOPBACK_TEST_MAX; mode++) { |