Commit 5cb917bc authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller

tg3: Fix to use multi queue BQL interfaces

Fix tg3 to use BQL multi queue related netdev interfaces since the
device supports multi queue.
Signed-off-by: default avatarTom Herbert <therbert@google.com>
Reported-by: default avatarChristoph Lameter <cl@gentwo.org>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f3969bf7
...@@ -5352,7 +5352,7 @@ static void tg3_tx(struct tg3_napi *tnapi) ...@@ -5352,7 +5352,7 @@ static void tg3_tx(struct tg3_napi *tnapi)
} }
} }
netdev_completed_queue(tp->dev, pkts_compl, bytes_compl); netdev_tx_completed_queue(txq, pkts_compl, bytes_compl);
tnapi->tx_cons = sw_idx; tnapi->tx_cons = sw_idx;
...@@ -6793,7 +6793,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -6793,7 +6793,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
} }
skb_tx_timestamp(skb); skb_tx_timestamp(skb);
netdev_sent_queue(tp->dev, skb->len); netdev_tx_sent_queue(txq, skb->len);
/* Packets are ready, update Tx producer idx local and on card. */ /* Packets are ready, update Tx producer idx local and on card. */
tw32_tx_mbox(tnapi->prodmbox, entry); tw32_tx_mbox(tnapi->prodmbox, entry);
...@@ -7275,8 +7275,8 @@ static void tg3_free_rings(struct tg3 *tp) ...@@ -7275,8 +7275,8 @@ static void tg3_free_rings(struct tg3 *tp)
dev_kfree_skb_any(skb); dev_kfree_skb_any(skb);
} }
netdev_tx_reset_queue(netdev_get_tx_queue(tp->dev, j));
} }
netdev_reset_queue(tp->dev);
} }
/* Initialize tx/rx rings for packet processing. /* Initialize tx/rx rings for packet processing.
......
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