]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ixgbe: add missing supported filters to get_ts_info
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 15 Nov 2012 01:10:37 +0000 (01:10 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 23 Jan 2013 22:32:57 +0000 (14:32 -0800)
This patch updates the filters for ethtool's get_ts_info to return support for
all filters which can be supported by upscaling to ptp_v2_event. The intent
behind this change is due to reasoning that we do in fact support the
filters. (hwtstamp_ioctl returns success after setting the filter to the
upscaled version). In this way we can remain consistent over which filters are
supported via the get_ts_info ioctl and which filters are in practice actually
supported.

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 21bc72e99c2e12d7383623b4eea7d5a81ee0c232..1513b1052ee2f3616cae4931397605b97c317c34 100644 (file)
@@ -2709,6 +2709,14 @@ 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_L2_EVENT) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_L4_EVENT) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_SYNC) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_L2_SYNC) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_L4_SYNC) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_DELAY_REQ) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ) |
+                       (1 << HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ) |
                        (1 << HWTSTAMP_FILTER_PTP_V2_EVENT);
                break;
        default: