]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ixgbe: fix PTP ethtool timestamping function
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 21 Sep 2012 07:23:20 +0000 (07:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 3 Oct 2012 15:35:00 +0000 (08:35 -0700)
This patch fixes a development issue that occurred due to invalid modes reported
in the ethtool get_ts_info function. The issue is resolved by removing
unsupported modes from the Rx supported list.

CC: stable <stable@vger.kernel.org> [3.5]
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

index 4104ea25d81844ec4db050145ee1633099bbe812..56b20d17d0e4c5577828040fddf8bd294868c84d 100644 (file)
@@ -2690,10 +2690,7 @@ static int ixgbe_get_ts_info(struct net_device *dev,
                        (1 << HWTSTAMP_FILTER_NONE) |
                        (1 << HWTSTAMP_FILTER_PTP_V1_L4_SYNC) |
                        (1 << HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) |
-                       (1 << HWTSTAMP_FILTER_PTP_V2_SYNC) |
-                       (1 << HWTSTAMP_FILTER_PTP_V2_DELAY_REQ) |
-                       (1 << HWTSTAMP_FILTER_PTP_V2_EVENT) |
-                       (1 << HWTSTAMP_FILTER_SOME);
+                       (1 << HWTSTAMP_FILTER_PTP_V2_EVENT);
                break;
 #endif /* CONFIG_IXGBE_PTP */
        default: