igc: Fix inserting of empty frame for launchtime
[platform/kernel/linux-rpi.git] / drivers / net / ethernet / intel / igc / igc_main.c
index 4855caa..9f93f0f 100644 (file)
@@ -1029,7 +1029,7 @@ static __le32 igc_tx_launchtime(struct igc_ring *ring, ktime_t txtime,
                        *first_flag = true;
                        ring->last_ff_cycle = baset_est;
 
-                       if (ktime_compare(txtime, ring->last_tx_cycle) > 0)
+                       if (ktime_compare(end_of_cycle, ring->last_tx_cycle) > 0)
                                *insert_empty = true;
                }
        }