diff options
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r-- | drivers/net/sfc/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index 11153d99bc2b..da4473b71058 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -506,7 +506,7 @@ efx_test_loopback(struct efx_tx_queue *tx_queue, | |||
506 | 506 | ||
507 | for (i = 0; i < 3; i++) { | 507 | for (i = 0; i < 3; i++) { |
508 | /* Determine how many packets to send */ | 508 | /* Determine how many packets to send */ |
509 | state->packet_count = EFX_TXQ_SIZE / 3; | 509 | state->packet_count = efx->txq_entries / 3; |
510 | state->packet_count = min(1 << (i << 2), state->packet_count); | 510 | state->packet_count = min(1 << (i << 2), state->packet_count); |
511 | state->skbs = kzalloc(sizeof(state->skbs[0]) * | 511 | state->skbs = kzalloc(sizeof(state->skbs[0]) * |
512 | state->packet_count, GFP_KERNEL); | 512 | state->packet_count, GFP_KERNEL); |