aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorAndre Guedes <[email protected]>2020-06-04 00:01:02 +0000
committerJeff Kirsher <[email protected]>2020-06-30 01:21:24 +0000
commit1801f8d9292fdbcf8b0fc6d6455eb05d508845a3 (patch)
treec69169f12ba7651fe0827fc80c7772dd762c1636 /drivers/net/ethernet/intel/igc/igc_main.c
parentigc: Remove duplicate code in Tx timestamp handling (diff)
downloadkernel-1801f8d9292fdbcf8b0fc6d6455eb05d508845a3.tar.gz
kernel-1801f8d9292fdbcf8b0fc6d6455eb05d508845a3.zip
igc: Check __IGC_PTP_TX_IN_PROGRESS instead of ptp_tx_skb
The __IGC_PTP_TX_IN_PROGRESS flag indicates we have a pending Tx timestamp. In some places, instead of checking that flag, we check adapter->ptp_tx_skb. This patch fixes those places to use the flag. Quick note about igc_ptp_tx_hwtstamp() change: when that function is called, adapter->ptp_tx_skb is expected to be valid always so we WARN_ON_ONCE() in case it is not. Quick note about igc_ptp_suspend() change: when suspending, we don't really need to check if there is a pending timestamp. We can simply clear it unconditionally. Signed-off-by: Andre Guedes <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions