Skip to content

Commit

Permalink
tg3: Fix to use multi queue BQL interfaces
Browse files Browse the repository at this point in the history
Fix tg3 to use BQL multi queue related netdev interfaces since the
device supports multi queue.

Signed-off-by: Tom Herbert <therbert@google.com>
Reported-by: Christoph Lameter <cl@gentwo.org>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tom Herbert authored and David S. Miller committed Mar 6, 2012
1 parent f3969bf commit 5cb917b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -6793,7 +6793,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
}

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. */
tw32_tx_mbox(tnapi->prodmbox, entry);
Expand Down Expand Up @@ -7275,8 +7275,8 @@ static void tg3_free_rings(struct tg3 *tp)

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.
Expand Down

0 comments on commit 5cb917b

Please sign in to comment.