Commit 5298c37f authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

sfc: Test only the first pair of TX queues

This makes no immediate difference, but we definitely do not want
to test all TX queues once we allocate a pair of TX queues to each
channel.
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent affaf485
...@@ -304,7 +304,7 @@ static int efx_fill_loopback_test(struct efx_nic *efx, ...@@ -304,7 +304,7 @@ static int efx_fill_loopback_test(struct efx_nic *efx,
{ {
struct efx_tx_queue *tx_queue; struct efx_tx_queue *tx_queue;
efx_for_each_tx_queue(tx_queue, efx) { efx_for_each_channel_tx_queue(tx_queue, &efx->channel[0]) {
efx_fill_test(test_index++, strings, data, efx_fill_test(test_index++, strings, data,
&lb_tests->tx_sent[tx_queue->queue], &lb_tests->tx_sent[tx_queue->queue],
EFX_TX_QUEUE_NAME(tx_queue), EFX_TX_QUEUE_NAME(tx_queue),
......
...@@ -616,8 +616,8 @@ static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, ...@@ -616,8 +616,8 @@ static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests,
goto out; goto out;
} }
/* Test every TX queue */ /* Test both types of TX queue */
efx_for_each_tx_queue(tx_queue, efx) { efx_for_each_channel_tx_queue(tx_queue, &efx->channel[0]) {
state->offload_csum = (tx_queue->queue == state->offload_csum = (tx_queue->queue ==
EFX_TX_QUEUE_OFFLOAD_CSUM); EFX_TX_QUEUE_OFFLOAD_CSUM);
rc = efx_test_loopback(tx_queue, rc = efx_test_loopback(tx_queue,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment