summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2015-04-22 17:40:30 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-07-17 22:59:04 -0400
commiteff3cddc222c88943ff515ae9335687c9e2cbaf6 (patch)
tree75e6facb436fef4dc0c60526894cd65c83532462 /Documentation
parent0d0578815bac634aef6e64794e7ad2473fc7af44 (diff)
clarify implementation of ethtool's get_ts_info op
This patch adds some clarification about the intended way to implement both SIOCSHWTSTAMP and ethtool's get_ts_info. The HWTSTAMP API has several Rx filters which are very specific, as well as more general filters. The specific filters really only exist to support some broken hardware which can't fully implement the generic filters. This patch adds clarification that it is okay to support the specific filters in SIOCSHWTSTAMP by upscaling them to the generic filters. In addition, update the header for ethtool_ts_info to specify that drivers ought to only report the filters they support without upscaling in this manner. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Reviewed-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/networking/timestamping.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/networking/timestamping.txt b/Documentation/networking/timestamping.txt
index 5f0922613f1a..a977339fbe0a 100644
--- a/Documentation/networking/timestamping.txt
+++ b/Documentation/networking/timestamping.txt
@@ -359,6 +359,13 @@ the requested fine-grained filtering for incoming packets is not
359supported, the driver may time stamp more than just the requested types 359supported, the driver may time stamp more than just the requested types
360of packets. 360of packets.
361 361
362Drivers are free to use a more permissive configuration than the requested
363configuration. It is expected that drivers should only implement directly the
364most generic mode that can be supported. For example if the hardware can
365support HWTSTAMP_FILTER_V2_EVENT, then it should generally always upscale
366HWTSTAMP_FILTER_V2_L2_SYNC_MESSAGE, and so forth, as HWTSTAMP_FILTER_V2_EVENT
367is more generic (and more useful to applications).
368
362A driver which supports hardware time stamping shall update the struct 369A driver which supports hardware time stamping shall update the struct
363with the actual, possibly more permissive configuration. If the 370with the actual, possibly more permissive configuration. If the
364requested packets cannot be time stamped, then nothing should be 371requested packets cannot be time stamped, then nothing should be