Avoid some netif-calls in e1000_xmit_frame().
This commit is contained in:
parent
46ec2096d6
commit
246fc6e07a
|
|
@ -6033,15 +6033,15 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
|
|||
(MAX_SKB_FRAGS *
|
||||
DIV_ROUND_UP(PAGE_SIZE,
|
||||
adapter->tx_fifo_limit) + 2));
|
||||
}
|
||||
|
||||
if (!netdev_xmit_more() ||
|
||||
netif_xmit_stopped(netdev_get_tx_queue(netdev, 0))) {
|
||||
if (adapter->flags2 & FLAG2_PCIM2PCI_ARBITER_WA)
|
||||
e1000e_update_tdt_wa(tx_ring,
|
||||
tx_ring->next_to_use);
|
||||
else
|
||||
writel(tx_ring->next_to_use, tx_ring->tail);
|
||||
if (!netdev_xmit_more() ||
|
||||
netif_xmit_stopped(netdev_get_tx_queue(netdev, 0))) {
|
||||
if (adapter->flags2 & FLAG2_PCIM2PCI_ARBITER_WA)
|
||||
e1000e_update_tdt_wa(tx_ring,
|
||||
tx_ring->next_to_use);
|
||||
else
|
||||
writel(tx_ring->next_to_use, tx_ring->tail);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!adapter->ecdev) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue