netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/3] net_tstamp: Add SIOCGHWTSTAMP ioctl
@ 2013-11-14  2:37 Ben Hutchings
  2013-11-14  2:38 ` [RFC][PATCH 1/3] net_tstamp: Improve kernel-doc for struct hwtstamp_config Ben Hutchings
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Ben Hutchings @ 2013-11-14  2:37 UTC (permalink / raw)
  To: David Miller, Richard Cochran; +Cc: netdev, linux-net-drivers

SIOCSHWTSTAMP returns the real configuration to the application
using it, but there is currently no way for any other
application to find out the configuration non-destructively.

This series adds a new ioctl with the obvious name which just reads the
configuration, and an example implementation for the sfc driver.

This information could alternately be added to struct ethtool_ts_info
returned by the ethtool ETHTOOL_GET_TS_INFO command, although that
wouldn't be very symmetric.  There would also be a problem of how to
indicate whether this extra information is present, given that all
fields of hwtstamp_config can validly be 0.

Ben.

Ben Hutchings (3):
  net_tstamp: Improve kernel-doc for struct hwtstamp_config
  net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP
  sfc: Implement the SIOCGHWTSTAMP ioctl

 drivers/net/ethernet/sfc/efx.c  |  2 +-
 drivers/net/ethernet/sfc/ptp.c  | 14 +++++++++-----
 include/uapi/linux/net_tstamp.h | 16 ++++++++--------
 include/uapi/linux/sockios.h    |  3 ++-
 net/core/dev_ioctl.c            |  2 ++
 5 files changed, 22 insertions(+), 15 deletions(-)


-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-11-14 16:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14  2:37 [RFC][PATCH 0/3] net_tstamp: Add SIOCGHWTSTAMP ioctl Ben Hutchings
2013-11-14  2:38 ` [RFC][PATCH 1/3] net_tstamp: Improve kernel-doc for struct hwtstamp_config Ben Hutchings
2013-11-14  2:39 ` [RFC][PATCH 2/3] net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP Ben Hutchings
2013-11-14  2:40 ` [RFC][PATCH 3/3] sfc: Implement the SIOCGHWTSTAMP ioctl Ben Hutchings
2013-11-14  2:46 ` Test program for SIOC{G,S}HWTSTAMP Ben Hutchings
2013-11-14  6:51   ` David Miller
2013-11-14  6:50 ` [RFC][PATCH 0/3] net_tstamp: Add SIOCGHWTSTAMP ioctl David Miller
2013-11-14  7:41 ` Richard Cochran
2013-11-14 15:10   ` Ben Hutchings
2013-11-14 16:21     ` Richard Cochran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).