Skip to content

Commit f85846b

Browse files
qsc-jamesmclaughlinanguy11
authored andcommitted
igc: Fix TX timestamp support for non-MSI-X platforms
Time synchronization was not properly enabled on non-MSI-X platforms. Fixes: 2c344ae ("igc: Add support for TX timestamping") Signed-off-by: James McLaughlin <[email protected]> Reviewed-by: Vinicius Costa Gomes <[email protected]> Tested-by: Nechama Kraus <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 1e81dcc commit f85846b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/intel/igc/igc_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5467,6 +5467,9 @@ static irqreturn_t igc_intr_msi(int irq, void *data)
54675467
mod_timer(&adapter->watchdog_timer, jiffies + 1);
54685468
}
54695469

5470+
if (icr & IGC_ICR_TS)
5471+
igc_tsync_interrupt(adapter);
5472+
54705473
napi_schedule(&q_vector->napi);
54715474

54725475
return IRQ_HANDLED;
@@ -5510,6 +5513,9 @@ static irqreturn_t igc_intr(int irq, void *data)
55105513
mod_timer(&adapter->watchdog_timer, jiffies + 1);
55115514
}
55125515

5516+
if (icr & IGC_ICR_TS)
5517+
igc_tsync_interrupt(adapter);
5518+
55135519
napi_schedule(&q_vector->napi);
55145520

55155521
return IRQ_HANDLED;

0 commit comments

Comments
 (0)