OSDN Git Service

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)
commit1cbedabffdb1737fc40136de9b72e4c69c3e29ce
treeeaf9e796fa9fdcf987179cdb4f8ed2dbc709f4b4
parent3df7fd799b1d70a7d3afeee12784f208b47e97a7
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