From a3fbd3df3a63fe7b5dac9d1d080c22c665665d57 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Mon, 30 Jun 2025 13:17:15 +0200 Subject: [PATCH] Avoided some netif calls. --- devices/r8169/r8169_main-6.4-ethercat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/r8169/r8169_main-6.4-ethercat.c b/devices/r8169/r8169_main-6.4-ethercat.c index 80d2f274..7d04342f 100644 --- a/devices/r8169/r8169_main-6.4-ethercat.c +++ b/devices/r8169/r8169_main-6.4-ethercat.c @@ -4277,7 +4277,7 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb, WRITE_ONCE(tp->cur_tx, tp->cur_tx + frags + 1); - stop_queue = !netif_subqueue_maybe_stop(dev, 0, rtl_tx_slots_avail(tp), + stop_queue = !get_ecdev(tp) && !netif_subqueue_maybe_stop(dev, 0, rtl_tx_slots_avail(tp), R8169_TX_STOP_THRS, R8169_TX_START_THRS); if (door_bell || stop_queue) @@ -4584,7 +4584,7 @@ static void rtl_task(struct work_struct *work) rtnl_lock(); - if (!netif_running(tp->dev) || + if (!get_ecdev(tp) || !netif_running(tp->dev) || !test_bit(RTL_FLAG_TASK_ENABLED, tp->wk.flags)) goto out_unlock;