]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Remove UDP filter setup in PTP code
authorAndre Guedes <andre.guedes@intel.com>
Thu, 4 Jun 2020 00:01:03 +0000 (17:01 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 30 Jun 2020 01:21:29 +0000 (18:21 -0700)
commitcce2e40aa4d2d43e634f25ec9fe608e5a0232bf9
tree53d9d702d8d6461d52955babe0ab38934fd458b6
parentff529af38efbc64157e1982f14b2682791c74553
igc: Remove UDP filter setup in PTP code

As implemented in igc_ethtool_get_ts_info(), igc only supports HWTSTAMP_
FILTER_ALL so any HWTSTAMP_FILTER_* option the user may set falls back to
HWTSTAMP_FILTER_ALL.

HWTSTAMP_FILTER_ALL is implemented via Rx Time Sync Control (TSYNCRXCTL)
configuration which timestamps all incoming packets. Configuring a
UDP filter, in addition to TSYNCRXCTL, doesn't add much so this patch
removes that code. It also takes this opportunity to remove some
non-applicable comments.

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