From 246fc6e07ae0151ada649aac88c71c6f1c02611a Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Tue, 6 Jul 2021 15:14:58 +0200 Subject: [PATCH] Avoid some netif-calls in e1000_xmit_frame(). --- devices/e1000e/netdev-5.4-ethercat.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/devices/e1000e/netdev-5.4-ethercat.c b/devices/e1000e/netdev-5.4-ethercat.c index ba2de49f..81c2688e 100644 --- a/devices/e1000e/netdev-5.4-ethercat.c +++ b/devices/e1000e/netdev-5.4-ethercat.c @@ -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) {