]> git.baikalelectronics.ru Git - kernel.git/commitdiff
igc: Fix TX timestamp support for non-MSI-X platforms
authorJames McLaughlin <james.mclaughlin@qsc.com>
Fri, 17 Dec 2021 23:49:33 +0000 (16:49 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 28 Dec 2021 17:54:11 +0000 (09:54 -0800)
Time synchronization was not properly enabled on non-MSI-X platforms.

Fixes: b2d8d911587e ("igc: Add support for TX timestamping")
Signed-off-by: James McLaughlin <james.mclaughlin@qsc.com>
Reviewed-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Nechama Kraus <nechamax.kraus@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c

index 8e448288ee2657183db69c515fb9c2b9b84981e5..d28a80a00953756ef7b4ef6b600bb60dcc3fce62 100644 (file)
@@ -5467,6 +5467,9 @@ static irqreturn_t igc_intr_msi(int irq, void *data)
                        mod_timer(&adapter->watchdog_timer, jiffies + 1);
        }
 
+       if (icr & IGC_ICR_TS)
+               igc_tsync_interrupt(adapter);
+
        napi_schedule(&q_vector->napi);
 
        return IRQ_HANDLED;
@@ -5510,6 +5513,9 @@ static irqreturn_t igc_intr(int irq, void *data)
                        mod_timer(&adapter->watchdog_timer, jiffies + 1);
        }
 
+       if (icr & IGC_ICR_TS)
+               igc_tsync_interrupt(adapter);
+
        napi_schedule(&q_vector->napi);
 
        return IRQ_HANDLED;