]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Remove duplicate code in Tx timestamp handling
authorAndre Guedes <andre.guedes@intel.com>
Thu, 4 Jun 2020 00:01:01 +0000 (17:01 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 30 Jun 2020 01:21:19 +0000 (18:21 -0700)
commitb13128cd71ec57ac88577d0d0aea29e917bd21c6
treed18494a0c0d28d7281b55c29e05da512d51c5517
parent8c635776c20805b6e88f64d72a195a23cd969dfd
igc: Remove duplicate code in Tx timestamp handling

The functions igc_ptp_tx_hang() and igc_ptp_tx_work() have duplicate
code which handles Tx timestamp timeouts. This patch does a trivial
refactoring by moving that code to its own function and reusing it.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_ptp.c