diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-01-12 21:39:40 +0300 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-02-15 22:45:34 +0300 |
commit | 60031fcc17057e21566ed34ba23e93fffda1aa27 (patch) | |
tree | 820a3b0c418cd3d8664d61e4b36f634f07c59614 /drivers/net/sfc/efx.c | |
parent | 5c56580b74e57e56f30e3c5bbc9d7ab487858497 (diff) | |
download | linux-60031fcc17057e21566ed34ba23e93fffda1aa27.tar.xz |
sfc: Move TX queue core queue mapping into tx.c
efx_hard_start_xmit() needs to implement a mapping which is the
inverse of tx_queue::core_txq. Move the initialisation of
tx_queue::core_txq next to efx_hard_start_xmit() to make the
connection more obvious.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 002bac743843..c559bc372fc1 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c @@ -1910,10 +1910,8 @@ static int efx_register_netdev(struct efx_nic *efx) efx_for_each_channel(channel, efx) { struct efx_tx_queue *tx_queue; - efx_for_each_channel_tx_queue(tx_queue, channel) { - tx_queue->core_txq = netdev_get_tx_queue( - efx->net_dev, tx_queue->queue / EFX_TXQ_TYPES); - } + efx_for_each_channel_tx_queue(tx_queue, channel) + efx_init_tx_queue_core_txq(tx_queue); } /* Always start with carrier off; PHY events will detect the link */ |