]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix Rx timestamp disabling
authorAndre Guedes <andre.guedes@intel.com>
Thu, 4 Jun 2020 00:01:05 +0000 (17:01 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 30 Jun 2020 01:21:38 +0000 (18:21 -0700)
commit0a5d537dae2d0d9b63e0652e5b08b4e3c1a01fc8
treeeaf9e796fa9fdcf987179cdb4f8ed2dbc709f4b4
parent50f9ea5a4a1f018a5f1c39681c85c7138d3f44bf
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@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