[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1384396635.29151.36.camel@bwh-desktop.uk.level5networks.com>
Date: Thu, 14 Nov 2013 02:37:15 +0000
From: Ben Hutchings <bhutchings@...arflare.com>
To: David Miller <davem@...emloft.net>,
Richard Cochran <richardcochran@...il.com>
CC: <netdev@...r.kernel.org>, <linux-net-drivers@...arflare.com>
Subject: [RFC][PATCH 0/3] net_tstamp: Add SIOCGHWTSTAMP ioctl
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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists