]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/sfc/ethtool.c
sfc: Create multiple TX queues
[net-next-2.6.git] / drivers / net / sfc / ethtool.c
index cbe9319f8322e50c153a65c648dd7c8513745b34..22026bfbc4c1e8adbef1bacf30079edb0bf2f1c3 100644 (file)
@@ -647,7 +647,7 @@ static int efx_ethtool_get_coalesce(struct net_device *net_dev,
        efx_for_each_tx_queue(tx_queue, efx) {
                channel = tx_queue->channel;
                if (channel->irq_moderation < coalesce->tx_coalesce_usecs_irq) {
-                       if (channel->used_flags != EFX_USED_BY_RX_TX)
+                       if (channel->channel < efx->n_rx_channels)
                                coalesce->tx_coalesce_usecs_irq =
                                        channel->irq_moderation;
                        else
@@ -690,7 +690,7 @@ static int efx_ethtool_set_coalesce(struct net_device *net_dev,
 
        /* If the channel is shared only allow RX parameters to be set */
        efx_for_each_tx_queue(tx_queue, efx) {
-               if ((tx_queue->channel->used_flags == EFX_USED_BY_RX_TX) &&
+               if ((tx_queue->channel->channel < efx->n_rx_channels) &&
                    tx_usecs) {
                        EFX_ERR(efx, "Channel is shared. "
                                "Only RX coalescing may be set\n");