[Intel-wired-lan] [PATCH 2/6] igc: Remove duplicate code in tx timestamp handling

Brown, Aaron F aaron.f.brown at intel.com
Thu Jun 18 17:18:24 UTC 2020


> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Andre Guedes
> Sent: Wednesday, June 3, 2020 5:01 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 2/6] 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 at intel.com>
> ---
>  drivers/net/ethernet/intel/igc/igc_ptp.c | 34 +++++++++++-------------
>  1 file changed, 15 insertions(+), 19 deletions(-)
> 
Tested-by: Aaron Brown <aaron.f.brown at intel.com>


More information about the Intel-wired-lan mailing list