[Intel-wired-lan] [PATCH 6/6] igc: Fix rx timestamp disabling

Brown, Aaron F aaron.f.brown at intel.com
Thu Jun 18 17:19:56 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 6/6] igc: Fix rx timestamp disabling
> 
> When rx timestamping is enabled, we set the timestamp bit in SRRCTL
> register for each queue, but we don't clear it when disabling. This
> patch fixes igc_ptp_disable_rx_timestamp() accordingly.
> 
> Also, this patch gets rid of igc_ptp_enable_tstamp_rxqueue() and
> igc_ptp_enable_tstamp_all_rxqueues() and move their logic into
> igc_ptp_enable_rx_timestamp() to keep the enable and disable
> helpers symmetric.
> 
> Signed-off-by: Andre Guedes <andre.guedes at intel.com>
> ---
>  drivers/net/ethernet/intel/igc/igc_ptp.c | 54 ++++++++----------------
>  1 file changed, 17 insertions(+), 37 deletions(-)
> 
Tested-by: Aaron Brown <aaron.f.brown at intel.com>


More information about the Intel-wired-lan mailing list