mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
stmmac: set dirty index out of the loop
The dirty index can be updated out of the loop where all the tx resources are claimed. This will help on performances too. Also a useless debug printk has been removed from the main loop. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c363b6586c
commit
fbc80823a9
1 changed files with 1 additions and 4 deletions
|
@ -1340,9 +1340,6 @@ static void stmmac_tx_clean(struct stmmac_priv *priv)
|
|||
}
|
||||
stmmac_get_tx_hwtstamp(priv, entry, skb);
|
||||
}
|
||||
if (netif_msg_tx_done(priv))
|
||||
pr_debug("%s: curr %d, dirty %d\n", __func__,
|
||||
priv->cur_tx, priv->dirty_tx);
|
||||
|
||||
if (likely(priv->tx_skbuff_dma[entry].buf)) {
|
||||
if (priv->tx_skbuff_dma[entry].map_as_page)
|
||||
|
@ -1372,8 +1369,8 @@ static void stmmac_tx_clean(struct stmmac_priv *priv)
|
|||
priv->hw->desc->release_tx_desc(p, priv->mode);
|
||||
|
||||
entry = STMMAC_GET_ENTRY(entry, DMA_TX_SIZE);
|
||||
priv->dirty_tx = entry;
|
||||
}
|
||||
priv->dirty_tx = entry;
|
||||
|
||||
netdev_completed_queue(priv->dev, pkts_compl, bytes_compl);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue