]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/sfc/selftest.c
sfc: Create multiple TX queues
[net-next-2.6.git] / drivers / net / sfc / selftest.c
index 3a16e06122671e503322ce72d8f7890b94f571d5..371e86cc090f3c93eb1fad2775012af54ef0547f 100644 (file)
@@ -618,8 +618,8 @@ static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests,
 
                /* Test both types of TX queue */
                efx_for_each_channel_tx_queue(tx_queue, &efx->channel[0]) {
-                       state->offload_csum = (tx_queue->queue ==
-                                              EFX_TX_QUEUE_OFFLOAD_CSUM);
+                       state->offload_csum = (tx_queue->queue &
+                                              EFX_TXQ_TYPE_OFFLOAD);
                        rc = efx_test_loopback(tx_queue,
                                               &tests->loopback[mode]);
                        if (rc)