* [PATCH V3 net-next 01/28] phc: Add a method for obtaining the device index.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 02/28] ethtool: Introduce a method for getting time stamping capabilities Richard Cochran
` (29 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
This commit adds a method that MAC drivers may call in order to find out
the device number of their associated PTP Hardware Clock.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/ptp/ptp_clock.c | 6 ++++++
include/linux/ptp_clock_kernel.h | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index f519a13..1e528b5 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -304,6 +304,12 @@ void ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event)
}
EXPORT_SYMBOL(ptp_clock_event);
+int ptp_clock_index(struct ptp_clock *ptp)
+{
+ return ptp->index;
+}
+EXPORT_SYMBOL(ptp_clock_index);
+
/* module operations */
static void __exit ptp_exit(void)
diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h
index dd2e44f..945704c 100644
--- a/include/linux/ptp_clock_kernel.h
+++ b/include/linux/ptp_clock_kernel.h
@@ -136,4 +136,12 @@ struct ptp_clock_event {
extern void ptp_clock_event(struct ptp_clock *ptp,
struct ptp_clock_event *event);
+/**
+ * ptp_clock_index() - obtain the device index of a PTP clock
+ *
+ * @ptp: The clock obtained from ptp_clock_register().
+ */
+
+extern int ptp_clock_index(struct ptp_clock *ptp);
+
#endif
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 02/28] ethtool: Introduce a method for getting time stamping capabilities.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 01/28] phc: Add a method for obtaining the device index Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 19:24 ` Ben Hutchings
2012-04-03 17:47 ` [PATCH V3 net-next 03/28] igb: Support the get_ts_info ethtool method Richard Cochran
` (28 subsequent siblings)
30 siblings, 1 reply; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
This commit adds a new ethtool ioctl that exposes the SO_TIMESTAMPING
capabilities of a network interface. In addition, user space programs
can use this ioctl to discover the PTP Hardware Clock (PHC) device
associated with the interface.
Since software receive time stamps are handled by the stack, the generic
ethtool code can answer the query correctly in case the MAC or PHY
drivers lack special time stamping features.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
include/linux/ethtool.h | 28 +++++++++++++++++++++++++++
include/linux/phy.h | 3 ++
net/core/ethtool.c | 48 ++++++++++++++++++++++++++++++++++++++++++++--
3 files changed, 76 insertions(+), 3 deletions(-)
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index e1d9e0e..1769714 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -726,6 +726,29 @@ struct ethtool_sfeatures {
struct ethtool_set_features_block features[0];
};
+/**
+ * struct ethtool_ts_info - holds a device's timestamping and PHC association
+ * @cmd: command number = %ETHTOOL_GET_TS_INFO
+ * @so_timestamping: bit mask of the sum of the supported SO_TIMESTAMPING flags
+ * @phc_index: device index of the associated PHC, or -1 if there is none
+ * @tx_types: bit mask of the supported hwtstamp_tx_types enumeration values
+ * @rx_filters: bit mask of the supported hwtstamp_rx_filters enumeration values
+ *
+ * The bits in the 'tx_types' and 'rx_filters' fields correspond to
+ * the 'hwtstamp_tx_types' and 'hwtstamp_rx_filters' enumeration values,
+ * respectively. For example, if the device supports HWTSTAMP_TX_ON,
+ * then (1 << HWTSTAMP_TX_ON) in 'tx_types' will be set.
+ */
+struct ethtool_ts_info {
+ __u32 cmd;
+ __u32 so_timestamping;
+ __s32 phc_index;
+ __u32 tx_types;
+ __u32 tx_reserved[3];
+ __u32 rx_filters;
+ __u32 rx_reserved[3];
+};
+
/*
* %ETHTOOL_SFEATURES changes features present in features[].valid to the
* values of corresponding bits in features[].requested. Bits in .requested
@@ -893,6 +916,9 @@ static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings)
* and flag of the device.
* @get_dump_data: Get dump data.
* @set_dump: Set dump specific flags to the device.
+ * @get_ts_info: Get the time stamping and PTP hardware clock capabilities.
+ * Drivers supporting transmit time stamps in software should set this to
+ * ethtool_op_get_ts_info().
*
* All operations are optional (i.e. the function pointer may be set
* to %NULL) and callers must take this into account. Callers must
@@ -955,6 +981,7 @@ struct ethtool_ops {
int (*get_dump_data)(struct net_device *,
struct ethtool_dump *, void *);
int (*set_dump)(struct net_device *, struct ethtool_dump *);
+ int (*get_ts_info)(struct net_device *, struct ethtool_ts_info *);
};
#endif /* __KERNEL__ */
@@ -1029,6 +1056,7 @@ struct ethtool_ops {
#define ETHTOOL_SET_DUMP 0x0000003e /* Set dump settings */
#define ETHTOOL_GET_DUMP_FLAG 0x0000003f /* Get dump settings */
#define ETHTOOL_GET_DUMP_DATA 0x00000040 /* Get dump data */
+#define ETHTOOL_GET_TS_INFO 0x00000041 /* Get time stamping and PHC info */
/* compatibility with older code */
#define SPARC_ETH_GSET ETHTOOL_GSET
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 6fe0a37..f092032 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -412,6 +412,9 @@ struct phy_driver {
/* Clears up any memory if needed */
void (*remove)(struct phy_device *phydev);
+ /* Handles ethtool queries for hardware time stamping. */
+ int (*ts_info)(struct phy_device *phydev, struct ethtool_ts_info *ti);
+
/* Handles SIOCSHWTSTAMP ioctl for hardware time stamping. */
int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr);
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index 6d6d7d2..a723b13 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -17,6 +17,8 @@
#include <linux/errno.h>
#include <linux/ethtool.h>
#include <linux/netdevice.h>
+#include <linux/net_tstamp.h>
+#include <linux/phy.h>
#include <linux/bitops.h>
#include <linux/uaccess.h>
#include <linux/vmalloc.h>
@@ -1278,6 +1280,40 @@ out:
return ret;
}
+static int ethtool_get_ts_info(struct net_device *dev, void __user *useraddr)
+{
+ int err = 0;
+ struct ethtool_ts_info info;
+ const struct ethtool_ops *ops = dev->ethtool_ops;
+ struct phy_device *phydev = dev->phydev;
+
+ memset(&info, 0, sizeof(info));
+ info.cmd = ETHTOOL_GET_TS_INFO;
+
+ if (phydev && phydev->drv && phydev->drv->ts_info) {
+
+ err = phydev->drv->ts_info(phydev, &info);
+
+ } else if (dev->ethtool_ops && dev->ethtool_ops->get_ts_info) {
+
+ err = ops->get_ts_info(dev, &info);
+
+ } else {
+ info.so_timestamping =
+ SOF_TIMESTAMPING_RX_SOFTWARE |
+ SOF_TIMESTAMPING_SOFTWARE;
+ info.phc_index = -1;
+ }
+
+ if (err)
+ return err;
+
+ if (copy_to_user(useraddr, &info, sizeof(info)))
+ err = -EFAULT;
+
+ return err;
+}
+
/* The main entry point in this file. Called from net/core/dev.c */
int dev_ethtool(struct net *net, struct ifreq *ifr)
@@ -1295,11 +1331,13 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
return -EFAULT;
if (!dev->ethtool_ops) {
- /* ETHTOOL_GDRVINFO does not require any driver support.
- * It is also unprivileged and does not change anything,
- * so we can take a shortcut to it. */
+ /* A few commands do not require any driver support,
+ * are unprivileged, and do not change anything, so we
+ * can take a shortcut to them. */
if (ethcmd == ETHTOOL_GDRVINFO)
return ethtool_get_drvinfo(dev, useraddr);
+ else if (ethcmd == ETHTOOL_GET_TS_INFO)
+ return ethtool_get_ts_info(dev, useraddr);
else
return -EOPNOTSUPP;
}
@@ -1330,6 +1368,7 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
case ETHTOOL_GRXCLSRULE:
case ETHTOOL_GRXCLSRLALL:
case ETHTOOL_GFEATURES:
+ case ETHTOOL_GET_TS_INFO:
break;
default:
if (!capable(CAP_NET_ADMIN))
@@ -1496,6 +1535,9 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
case ETHTOOL_GET_DUMP_DATA:
rc = ethtool_get_dump_data(dev, useraddr);
break;
+ case ETHTOOL_GET_TS_INFO:
+ rc = ethtool_get_ts_info(dev, useraddr);
+ break;
default:
rc = -EOPNOTSUPP;
}
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* Re: [PATCH V3 net-next 02/28] ethtool: Introduce a method for getting time stamping capabilities.
2012-04-03 17:47 ` [PATCH V3 net-next 02/28] ethtool: Introduce a method for getting time stamping capabilities Richard Cochran
@ 2012-04-03 19:24 ` Ben Hutchings
0 siblings, 0 replies; 37+ messages in thread
From: Ben Hutchings @ 2012-04-03 19:24 UTC (permalink / raw)
To: Richard Cochran
Cc: netdev, David Miller, Martin Porter, Jacob Keller, Jeff Kirsher,
John Ronciak, e1000-devel
On Tue, 2012-04-03 at 19:47 +0200, Richard Cochran wrote:
> This commit adds a new ethtool ioctl that exposes the SO_TIMESTAMPING
> capabilities of a network interface. In addition, user space programs
> can use this ioctl to discover the PTP Hardware Clock (PHC) device
> associated with the interface.
>
> Since software receive time stamps are handled by the stack, the generic
> ethtool code can answer the query correctly in case the MAC or PHY
> drivers lack special time stamping features.
>
> Signed-off-by: Richard Cochran <richardcochran@gmail.com>
[...]
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
--
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] 37+ messages in thread
* [PATCH V3 net-next 03/28] igb: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 01/28] phc: Add a method for obtaining the device index Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 02/28] ethtool: Introduce a method for getting time stamping capabilities Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 04/28] dp83640: " Richard Cochran
` (27 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/intel/igb/igb_ethtool.c | 31 ++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index e10821a..245fec0 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -2182,6 +2182,36 @@ static void igb_ethtool_complete(struct net_device *netdev)
pm_runtime_put(&adapter->pdev->dev);
}
+static int igb_ethtool_get_ts_info(struct net_device *dev,
+ struct ethtool_ts_info *info)
+{
+ struct igb_adapter *adapter = netdev_priv(dev);
+
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_HARDWARE |
+ SOF_TIMESTAMPING_RX_HARDWARE |
+ SOF_TIMESTAMPING_RAW_HARDWARE;
+
+ if (adapter->ptp_clock)
+ info->phc_index = ptp_clock_index(adapter->ptp_clock);
+ else
+ info->phc_index = -1;
+
+ info->tx_types =
+ (1 << HWTSTAMP_TX_OFF) |
+ (1 << HWTSTAMP_TX_ON);
+
+ info->rx_filters =
+ (1 << HWTSTAMP_FILTER_NONE) |
+ (1 << HWTSTAMP_FILTER_ALL) |
+ (1 << HWTSTAMP_FILTER_SOME) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_SYNC) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_EVENT);
+
+ return 0;
+}
+
static const struct ethtool_ops igb_ethtool_ops = {
.get_settings = igb_get_settings,
.set_settings = igb_set_settings,
@@ -2210,6 +2240,7 @@ static const struct ethtool_ops igb_ethtool_ops = {
.set_coalesce = igb_set_coalesce,
.begin = igb_ethtool_begin,
.complete = igb_ethtool_complete,
+ .get_ts_info = igb_ethtool_get_ts_info,
};
void igb_set_ethtool_ops(struct net_device *netdev)
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 04/28] dp83640: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (2 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 03/28] igb: Support the get_ts_info ethtool method Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 05/28] gianfar: " Richard Cochran
` (26 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/phy/dp83640.c | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c
index dd7ae19..940b290 100644
--- a/drivers/net/phy/dp83640.c
+++ b/drivers/net/phy/dp83640.c
@@ -1215,6 +1215,36 @@ static void dp83640_txtstamp(struct phy_device *phydev,
}
}
+static int dp83640_ts_info(struct phy_device *dev, struct ethtool_ts_info *info)
+{
+ struct dp83640_private *dp83640 = dev->priv;
+
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_HARDWARE |
+ SOF_TIMESTAMPING_RX_HARDWARE |
+ SOF_TIMESTAMPING_RAW_HARDWARE;
+ info->phc_index = ptp_clock_index(dp83640->clock->ptp_clock);
+ info->tx_types =
+ (1 << HWTSTAMP_TX_OFF) |
+ (1 << HWTSTAMP_TX_ON) |
+ (1 << HWTSTAMP_TX_ONESTEP_SYNC);
+ info->rx_filters =
+ (1 << HWTSTAMP_FILTER_NONE) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_EVENT) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_SYNC) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L4_EVENT) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L4_SYNC) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L2_EVENT) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L2_SYNC) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_EVENT) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_SYNC) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_DELAY_REQ);
+ return 0;
+}
+
static struct phy_driver dp83640_driver = {
.phy_id = DP83640_PHY_ID,
.phy_id_mask = 0xfffffff0,
@@ -1225,6 +1255,7 @@ static struct phy_driver dp83640_driver = {
.remove = dp83640_remove,
.config_aneg = genphy_config_aneg,
.read_status = genphy_read_status,
+ .ts_info = dp83640_ts_info,
.hwtstamp = dp83640_hwtstamp,
.rxtstamp = dp83640_rxtstamp,
.txtstamp = dp83640_txtstamp,
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 05/28] gianfar: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (3 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 04/28] dp83640: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 06/28] bfin_mac: " Richard Cochran
` (25 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/freescale/gianfar.h | 3 ++
drivers/net/ethernet/freescale/gianfar_ethtool.c | 29 ++++++++++++++++++++++
drivers/net/ethernet/freescale/gianfar_ptp.c | 2 +
3 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h
index 4c9f8d4..2136c7f 100644
--- a/drivers/net/ethernet/freescale/gianfar.h
+++ b/drivers/net/ethernet/freescale/gianfar.h
@@ -1210,4 +1210,7 @@ struct filer_table {
struct gfar_filer_entry fe[MAX_FILER_CACHE_IDX + 20];
};
+/* The gianfar_ptp module will set this variable */
+extern int gfar_phc_index;
+
#endif /* __GIANFAR_H */
diff --git a/drivers/net/ethernet/freescale/gianfar_ethtool.c b/drivers/net/ethernet/freescale/gianfar_ethtool.c
index 8d74efd..27f49c7 100644
--- a/drivers/net/ethernet/freescale/gianfar_ethtool.c
+++ b/drivers/net/ethernet/freescale/gianfar_ethtool.c
@@ -1739,6 +1739,34 @@ static int gfar_get_nfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
return ret;
}
+int gfar_phc_index = -1;
+
+static int gfar_get_ts_info(struct net_device *dev,
+ struct ethtool_ts_info *info)
+{
+ struct gfar_private *priv = netdev_priv(dev);
+
+ if (!(priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER)) {
+ info->so_timestamping =
+ SOF_TIMESTAMPING_RX_SOFTWARE |
+ SOF_TIMESTAMPING_SOFTWARE;
+ info->phc_index = -1;
+ return 0;
+ }
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_HARDWARE |
+ SOF_TIMESTAMPING_RX_HARDWARE |
+ SOF_TIMESTAMPING_RAW_HARDWARE;
+ info->phc_index = gfar_phc_index;
+ info->tx_types =
+ (1 << HWTSTAMP_TX_OFF) |
+ (1 << HWTSTAMP_TX_ON);
+ info->rx_filters =
+ (1 << HWTSTAMP_FILTER_NONE) |
+ (1 << HWTSTAMP_FILTER_ALL);
+ return 0;
+}
+
const struct ethtool_ops gfar_ethtool_ops = {
.get_settings = gfar_gsettings,
.set_settings = gfar_ssettings,
@@ -1761,4 +1789,5 @@ const struct ethtool_ops gfar_ethtool_ops = {
#endif
.set_rxnfc = gfar_set_nfc,
.get_rxnfc = gfar_get_nfc,
+ .get_ts_info = gfar_get_ts_info,
};
diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c
index 5fd620b..c08e5d4 100644
--- a/drivers/net/ethernet/freescale/gianfar_ptp.c
+++ b/drivers/net/ethernet/freescale/gianfar_ptp.c
@@ -515,6 +515,7 @@ static int gianfar_ptp_probe(struct platform_device *dev)
err = PTR_ERR(etsects->clock);
goto no_clock;
}
+ gfar_phc_clock = ptp_clock_index(etsects->clock);
dev_set_drvdata(&dev->dev, etsects);
@@ -538,6 +539,7 @@ static int gianfar_ptp_remove(struct platform_device *dev)
gfar_write(&etsects->regs->tmr_temask, 0);
gfar_write(&etsects->regs->tmr_ctrl, 0);
+ gfar_phc_clock = -1;
ptp_clock_unregister(etsects->clock);
iounmap(etsects->regs);
release_resource(etsects->rsrc);
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 06/28] bfin_mac: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (4 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 05/28] gianfar: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 07/28] ixp4xx_eth: " Richard Cochran
` (24 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/adi/bfin_mac.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index ab4daec..db22278 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -548,6 +548,25 @@ static int bfin_mac_ethtool_setwol(struct net_device *dev,
return 0;
}
+static int bfin_mac_ethtool_get_ts_info(struct net_device *dev,
+ struct ethtool_ts_info *info);
+{
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_HARDWARE |
+ SOF_TIMESTAMPING_RX_HARDWARE |
+ SOF_TIMESTAMPING_SYS_HARDWARE;
+ info->phc_index = -1;
+ info->tx_types =
+ (1 << HWTSTAMP_TX_OFF) |
+ (1 << HWTSTAMP_TX_ON);
+ info->rx_filters =
+ (1 << HWTSTAMP_FILTER_NONE) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_EVENT) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L2_EVENT) |
+ (1 << HWTSTAMP_FILTER_PTP_V2_L4_EVENT);
+ return 0;
+}
+
static const struct ethtool_ops bfin_mac_ethtool_ops = {
.get_settings = bfin_mac_ethtool_getsettings,
.set_settings = bfin_mac_ethtool_setsettings,
@@ -555,6 +574,7 @@ static const struct ethtool_ops bfin_mac_ethtool_ops = {
.get_drvinfo = bfin_mac_ethtool_getdrvinfo,
.get_wol = bfin_mac_ethtool_getwol,
.set_wol = bfin_mac_ethtool_setwol,
+ .get_ts_info = bfin_mac_ethtool_get_ts_info,
};
/**************************************************************************/
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 07/28] ixp4xx_eth: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (5 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 06/28] bfin_mac: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 08/28] ethtool: Add a common function for drivers with transmit time stamping Richard Cochran
` (23 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 3 ++
drivers/net/ethernet/xscale/ixp4xx_eth.c | 29 +++++++++++++++++++++++++
drivers/ptp/ptp_ixp46x.c | 3 ++
3 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h b/arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h
index 292d55e..cf03614 100644
--- a/arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h
+++ b/arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h
@@ -75,4 +75,7 @@ struct ixp46x_ts_regs {
#define TX_SNAPSHOT_LOCKED (1<<0)
#define RX_SNAPSHOT_LOCKED (1<<1)
+/* The ptp_ixp46x module will set this variable */
+extern int ixp46x_phc_index;
+
#endif
diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c
index 41a8b5a..482648f 100644
--- a/drivers/net/ethernet/xscale/ixp4xx_eth.c
+++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c
@@ -1002,12 +1002,41 @@ static int ixp4xx_nway_reset(struct net_device *dev)
return phy_start_aneg(port->phydev);
}
+int ixp46x_phc_index = -1;
+
+static int ixp4xx_get_ts_info(struct net_device *dev,
+ struct ethtool_ts_info *info)
+{
+ if (!cpu_is_ixp46x()) {
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_SOFTWARE |
+ SOF_TIMESTAMPING_RX_SOFTWARE |
+ SOF_TIMESTAMPING_SOFTWARE;
+ info->phc_index = -1;
+ return 0;
+ }
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_HARDWARE |
+ SOF_TIMESTAMPING_RX_HARDWARE |
+ SOF_TIMESTAMPING_RAW_HARDWARE;
+ info->phc_index = ixp46x_phc_index;
+ info->tx_types =
+ (1 << HWTSTAMP_TX_OFF) |
+ (1 << HWTSTAMP_TX_ON);
+ info->rx_filters =
+ (1 << HWTSTAMP_FILTER_NONE) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_SYNC) |
+ (1 << HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ);
+ return 0;
+}
+
static const struct ethtool_ops ixp4xx_ethtool_ops = {
.get_drvinfo = ixp4xx_get_drvinfo,
.get_settings = ixp4xx_get_settings,
.set_settings = ixp4xx_set_settings,
.nway_reset = ixp4xx_nway_reset,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ixp4xx_get_ts_info,
};
diff --git a/drivers/ptp/ptp_ixp46x.c b/drivers/ptp/ptp_ixp46x.c
index 6f2782b..9d13a71 100644
--- a/drivers/ptp/ptp_ixp46x.c
+++ b/drivers/ptp/ptp_ixp46x.c
@@ -284,6 +284,7 @@ static void __exit ptp_ixp_exit(void)
{
free_irq(MASTER_IRQ, &ixp_clock);
free_irq(SLAVE_IRQ, &ixp_clock);
+ ixp46x_phc_clock = -1;
ptp_clock_unregister(ixp_clock.ptp_clock);
}
@@ -302,6 +303,8 @@ static int __init ptp_ixp_init(void)
if (IS_ERR(ixp_clock.ptp_clock))
return PTR_ERR(ixp_clock.ptp_clock);
+ ixp46x_phc_clock = ptp_clock_index(ixp_clock.ptp_clock);
+
__raw_writel(DEFAULT_ADDEND, &ixp_clock.regs->addend);
__raw_writel(1, &ixp_clock.regs->trgt_lo);
__raw_writel(0, &ixp_clock.regs->trgt_hi);
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 08/28] ethtool: Add a common function for drivers with transmit time stamping.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (6 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 07/28] ixp4xx_eth: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 19:27 ` Ben Hutchings
2012-04-03 17:47 ` [PATCH V3 net-next 09/28] ax88796: Support the get_ts_info ethtool method Richard Cochran
` (22 subsequent siblings)
30 siblings, 1 reply; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Currently, most drivers do not support transmit SO_TIMESTAMPING. For those
that do support it, there is one appropriate response to the get_ts_info
query. This patch adds a common function providing this response.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
include/linux/ethtool.h | 1 +
net/core/ethtool.c | 11 +++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 1769714..560a247 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -811,6 +811,7 @@ struct net_device;
/* Some generic methods drivers may use in their ethtool_ops */
u32 ethtool_op_get_link(struct net_device *dev);
+int ethtool_op_get_ts_info(struct net_device *dev, struct ethtool_ts_info *eti);
/**
* ethtool_rxfh_indir_default - get default value for RX flow hash indirection
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index a723b13..beacdd9 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -38,6 +38,17 @@ u32 ethtool_op_get_link(struct net_device *dev)
}
EXPORT_SYMBOL(ethtool_op_get_link);
+int ethtool_op_get_ts_info(struct net_device *dev, struct ethtool_ts_info *info)
+{
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_SOFTWARE |
+ SOF_TIMESTAMPING_RX_SOFTWARE |
+ SOF_TIMESTAMPING_SOFTWARE;
+ info->phc_index = -1;
+ return 0;
+}
+EXPORT_SYMBOL(ethtool_op_get_ts_info);
+
/* Handlers for each ethtool command */
#define ETHTOOL_DEV_FEATURE_WORDS ((NETDEV_FEATURE_COUNT + 31) / 32)
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* Re: [PATCH V3 net-next 08/28] ethtool: Add a common function for drivers with transmit time stamping.
2012-04-03 17:47 ` [PATCH V3 net-next 08/28] ethtool: Add a common function for drivers with transmit time stamping Richard Cochran
@ 2012-04-03 19:27 ` Ben Hutchings
0 siblings, 0 replies; 37+ messages in thread
From: Ben Hutchings @ 2012-04-03 19:27 UTC (permalink / raw)
To: Richard Cochran
Cc: netdev, David Miller, Martin Porter, Jacob Keller, Jeff Kirsher,
John Ronciak, e1000-devel
On Tue, 2012-04-03 at 19:47 +0200, Richard Cochran wrote:
> Currently, most drivers do not support transmit SO_TIMESTAMPING. For those
> that do support it, there is one appropriate response to the get_ts_info
> query. This patch adds a common function providing this response.
>
> Signed-off-by: Richard Cochran <richardcochran@gmail.com>
[...]
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
--
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] 37+ messages in thread
* [PATCH V3 net-next 09/28] ax88796: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (7 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 08/28] ethtool: Add a common function for drivers with transmit time stamping Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 10/28] davinci_emac: " Richard Cochran
` (21 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/8390/ax88796.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c
index c30adcc..211efbf 100644
--- a/drivers/net/ethernet/8390/ax88796.c
+++ b/drivers/net/ethernet/8390/ax88796.c
@@ -502,6 +502,7 @@ static const struct ethtool_ops ax_ethtool_ops = {
.get_settings = ax_get_settings,
.set_settings = ax_set_settings,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
#ifdef CONFIG_AX88796_93CX6
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 10/28] davinci_emac: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (8 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 09/28] ax88796: Support the get_ts_info ethtool method Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 11/28] dnet: " Richard Cochran
` (20 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/ti/davinci_emac.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index 174a334..8aa3332 100644
--- a/drivers/net/ethernet/ti/davinci_emac.c
+++ b/drivers/net/ethernet/ti/davinci_emac.c
@@ -627,6 +627,7 @@ static const struct ethtool_ops ethtool_ops = {
.get_link = ethtool_op_get_link,
.get_coalesce = emac_get_coalesce,
.set_coalesce = emac_set_coalesce,
+ .get_ts_info = ethtool_op_get_ts_info,
};
/**
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 11/28] dnet: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (9 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 10/28] davinci_emac: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 12/28] e100: " Richard Cochran
` (19 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/dnet.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index b276469..290b26f 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -815,6 +815,7 @@ static const struct ethtool_ops dnet_ethtool_ops = {
.set_settings = dnet_set_settings,
.get_drvinfo = dnet_get_drvinfo,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static const struct net_device_ops dnet_netdev_ops = {
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 12/28] e100: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (10 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 11/28] dnet: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 13/28] etherh: " Richard Cochran
` (18 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/intel/e100.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c
index 8a1ba85..eb6b97d 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -2735,6 +2735,7 @@ static const struct ethtool_ops e100_ethtool_ops = {
.set_phys_id = e100_set_phys_id,
.get_ethtool_stats = e100_get_ethtool_stats,
.get_sset_count = e100_get_sset_count,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static int e100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 13/28] etherh: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (11 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 12/28] e100: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 14/28] fec_mpc52xx: " Richard Cochran
` (17 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/8390/etherh.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/8390/etherh.c b/drivers/net/ethernet/8390/etherh.c
index 48c4948..89cba45 100644
--- a/drivers/net/ethernet/8390/etherh.c
+++ b/drivers/net/ethernet/8390/etherh.c
@@ -635,6 +635,7 @@ static const struct ethtool_ops etherh_ethtool_ops = {
.get_settings = etherh_get_settings,
.set_settings = etherh_set_settings,
.get_drvinfo = etherh_get_drvinfo,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static const struct net_device_ops etherh_netdev_ops = {
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 14/28] fec_mpc52xx: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (12 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 13/28] etherh: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 15/28] fec: " Richard Cochran
` (16 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/freescale/fec_mpc52xx.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx.c b/drivers/net/ethernet/freescale/fec_mpc52xx.c
index 7b34d8c..97f947b 100644
--- a/drivers/net/ethernet/freescale/fec_mpc52xx.c
+++ b/drivers/net/ethernet/freescale/fec_mpc52xx.c
@@ -811,6 +811,7 @@ static const struct ethtool_ops mpc52xx_fec_ethtool_ops = {
.get_link = ethtool_op_get_link,
.get_msglevel = mpc52xx_fec_get_msglevel,
.set_msglevel = mpc52xx_fec_set_msglevel,
+ .get_ts_info = ethtool_op_get_ts_info,
};
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 15/28] fec: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (13 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 14/28] fec_mpc52xx: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 16/28] fs_enet: " Richard Cochran
` (15 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/freescale/fec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c
index a12b3f5..7fa0227 100644
--- a/drivers/net/ethernet/freescale/fec.c
+++ b/drivers/net/ethernet/freescale/fec.c
@@ -1161,6 +1161,7 @@ static const struct ethtool_ops fec_enet_ethtool_ops = {
.set_settings = fec_enet_set_settings,
.get_drvinfo = fec_enet_get_drvinfo,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static int fec_enet_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 16/28] fs_enet: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (14 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 15/28] fec: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 17/28] ll_temac: " Richard Cochran
` (14 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
.../net/ethernet/freescale/fs_enet/fs_enet-main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
index e4e6cd2..2b7633f 100644
--- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
+++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
@@ -963,6 +963,7 @@ static const struct ethtool_ops fs_ethtool_ops = {
.get_msglevel = fs_get_msglevel,
.set_msglevel = fs_set_msglevel,
.get_regs = fs_get_regs,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static int fs_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 17/28] ll_temac: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (15 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 16/28] fs_enet: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 18/28] macb: " Richard Cochran
` (13 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/xilinx/ll_temac_main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index d21591a..1eaf712 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -1000,6 +1000,7 @@ static const struct ethtool_ops temac_ethtool_ops = {
.set_settings = temac_set_settings,
.nway_reset = temac_nway_reset,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static int __devinit temac_of_probe(struct platform_device *op)
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 18/28] macb: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (16 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 17/28] ll_temac: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 19/28] mv643xx_eth: " Richard Cochran
` (12 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/cadence/macb.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index c4834c2..1466bc4 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -1213,6 +1213,7 @@ static const struct ethtool_ops macb_ethtool_ops = {
.set_settings = macb_set_settings,
.get_drvinfo = macb_get_drvinfo,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 19/28] mv643xx_eth: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (17 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 18/28] macb: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 20/28] pxa168_eth: " Richard Cochran
` (11 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/marvell/mv643xx_eth.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
index 75af1af..153d332 100644
--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
@@ -1666,6 +1666,7 @@ static const struct ethtool_ops mv643xx_eth_ethtool_ops = {
.get_strings = mv643xx_eth_get_strings,
.get_ethtool_stats = mv643xx_eth_get_ethtool_stats,
.get_sset_count = mv643xx_eth_get_sset_count,
+ .get_ts_info = ethtool_op_get_ts_info,
};
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 20/28] pxa168_eth: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (18 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 19/28] mv643xx_eth: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 21/28] r6040: " Richard Cochran
` (10 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/marvell/pxa168_eth.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c
index 45a6333..44bad60 100644
--- a/drivers/net/ethernet/marvell/pxa168_eth.c
+++ b/drivers/net/ethernet/marvell/pxa168_eth.c
@@ -1457,6 +1457,7 @@ static const struct ethtool_ops pxa168_ethtool_ops = {
.set_settings = pxa168_set_settings,
.get_drvinfo = pxa168_get_drvinfo,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static const struct net_device_ops pxa168_eth_netdev_ops = {
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 21/28] r6040: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (19 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 20/28] pxa168_eth: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 22/28] r8169: " Richard Cochran
` (9 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/rdc/r6040.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index b96e192..a26307f 100644
--- a/drivers/net/ethernet/rdc/r6040.c
+++ b/drivers/net/ethernet/rdc/r6040.c
@@ -973,6 +973,7 @@ static const struct ethtool_ops netdev_ethtool_ops = {
.get_settings = netdev_get_settings,
.set_settings = netdev_set_settings,
.get_link = ethtool_op_get_link,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static const struct net_device_ops r6040_netdev_ops = {
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 22/28] r8169: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (20 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 21/28] r6040: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 23/28] smsc911x: " Richard Cochran
` (8 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/realtek/r8169.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 27c358c..074a574 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -1854,6 +1854,7 @@ static const struct ethtool_ops rtl8169_ethtool_ops = {
.get_strings = rtl8169_get_strings,
.get_sset_count = rtl8169_get_sset_count,
.get_ethtool_stats = rtl8169_get_ethtool_stats,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static void rtl8169_get_mac_version(struct rtl8169_private *tp,
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 23/28] smsc911x: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (21 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 22/28] r8169: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 24/28] smsc9420: " Richard Cochran
` (7 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/smsc/smsc911x.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index 4a69710..519ed8e 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2070,6 +2070,7 @@ static const struct ethtool_ops smsc911x_ethtool_ops = {
.get_eeprom_len = smsc911x_ethtool_get_eeprom_len,
.get_eeprom = smsc911x_ethtool_get_eeprom,
.set_eeprom = smsc911x_ethtool_set_eeprom,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static const struct net_device_ops smsc911x_netdev_ops = {
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 24/28] smsc9420: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (22 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 23/28] smsc911x: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 25/28] stmmac: " Richard Cochran
` (6 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/smsc/smsc9420.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c
index 3838647..f80ec68 100644
--- a/drivers/net/ethernet/smsc/smsc9420.c
+++ b/drivers/net/ethernet/smsc/smsc9420.c
@@ -469,6 +469,7 @@ static const struct ethtool_ops smsc9420_ethtool_ops = {
.set_eeprom = smsc9420_ethtool_set_eeprom,
.get_regs_len = smsc9420_ethtool_getregslen,
.get_regs = smsc9420_ethtool_getregs,
+ .get_ts_info = ethtool_op_get_ts_info,
};
/* Sets the device MAC address to dev_addr */
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 25/28] stmmac: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (23 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 24/28] smsc9420: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 26/28] tg3: " Richard Cochran
` (5 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
.../net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index f98e151..ce43184 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
@@ -481,6 +481,7 @@ static const struct ethtool_ops stmmac_ethtool_ops = {
.get_wol = stmmac_get_wol,
.set_wol = stmmac_set_wol,
.get_sset_count = stmmac_get_sset_count,
+ .get_ts_info = ethtool_op_get_ts_info,
};
void stmmac_set_ethtool_ops(struct net_device *netdev)
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 26/28] tg3: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (24 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 25/28] stmmac: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 27/28] ucc_geth: " Richard Cochran
` (4 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/broadcom/tg3.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 7b71387..8609798 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -12233,6 +12233,7 @@ static const struct ethtool_ops tg3_ethtool_ops = {
.get_rxfh_indir_size = tg3_get_rxfh_indir_size,
.get_rxfh_indir = tg3_get_rxfh_indir,
.set_rxfh_indir = tg3_set_rxfh_indir,
+ .get_ts_info = ethtool_op_get_ts_info,
};
static struct rtnl_link_stats64 *tg3_get_stats64(struct net_device *dev,
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 27/28] ucc_geth: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (25 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 26/28] tg3: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:47 ` [PATCH V3 net-next 28/28] usbnet: " Richard Cochran
` (3 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c
index a97257f..37b0353 100644
--- a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c
+++ b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c
@@ -415,6 +415,7 @@ static const struct ethtool_ops uec_ethtool_ops = {
.get_ethtool_stats = uec_get_ethtool_stats,
.get_wol = uec_get_wol,
.set_wol = uec_set_wol,
+ .get_ts_info = ethtool_op_get_ts_info,
};
void uec_set_ethtool_ops(struct net_device *netdev)
--
1.7.2.5
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH V3 net-next 28/28] usbnet: Support the get_ts_info ethtool method.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (26 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 27/28] ucc_geth: " Richard Cochran
@ 2012-04-03 17:47 ` Richard Cochran
2012-04-03 17:58 ` [PATCH] Add the command to show the time stamping capabilities Richard Cochran
` (2 subsequent siblings)
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:47 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/usb/usbnet.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index b7b3f5b..db99536 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -884,6 +884,7 @@ static const struct ethtool_ops usbnet_ethtool_ops = {
.get_drvinfo = usbnet_get_drvinfo,
.get_msglevel = usbnet_get_msglevel,
.set_msglevel = usbnet_set_msglevel,
+ .get_ts_info = ethtool_op_get_ts_info,
};
/*-------------------------------------------------------------------------*/
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH] Add the command to show the time stamping capabilities.
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (27 preceding siblings ...)
2012-04-03 17:47 ` [PATCH V3 net-next 28/28] usbnet: " Richard Cochran
@ 2012-04-03 17:58 ` Richard Cochran
2012-05-15 18:08 ` Ben Hutchings
2012-04-03 18:02 ` [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
2012-04-03 20:25 ` David Miller
30 siblings, 1 reply; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 17:58 UTC (permalink / raw)
To: netdev
Cc: e1000-devel, Martin Porter, John Ronciak, Ben Hutchings,
David Miller, Jacob Keller
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
ethtool-copy.h | 24 +++++++++++
ethtool.8.in | 7 +++
ethtool.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++++
internal.h | 1 +
net_tstamp-copy.h | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++
test-cmdline.c | 3 +
6 files changed, 251 insertions(+), 0 deletions(-)
create mode 100644 net_tstamp-copy.h
diff --git a/ethtool-copy.h b/ethtool-copy.h
index d904c1a..2e32222 100644
--- a/ethtool-copy.h
+++ b/ethtool-copy.h
@@ -680,6 +680,29 @@ struct ethtool_sfeatures {
struct ethtool_set_features_block features[0];
};
+/**
+ * struct ethtool_ts_info - holds a device's timestamping and PHC association
+ * @cmd: command number = %ETHTOOL_GET_TS_INFO
+ * @so_timestamping: bit mask of the sum of the supported SO_TIMESTAMPING flags
+ * @phc_index: device index of the associated PHC, or -1 if there is none
+ * @tx_types: bit mask of the supported hwtstamp_tx_types enumeration values
+ * @rx_filters: bit mask of the supported hwtstamp_rx_filters enumeration values
+ *
+ * The bits in the 'tx_types' and 'rx_filters' fields correspond to
+ * the 'hwtstamp_tx_types' and 'hwtstamp_rx_filters' enumeration values,
+ * respectively. For example, if the device supports HWTSTAMP_TX_ON,
+ * then (1 << HWTSTAMP_TX_ON) in 'tx_types' will be set.
+ */
+struct ethtool_ts_info {
+ __u32 cmd;
+ __u32 so_timestamping;
+ __s32 phc_index;
+ __u32 tx_types;
+ __u32 tx_reserved[3];
+ __u32 rx_filters;
+ __u32 rx_reserved[3];
+};
+
/*
* %ETHTOOL_SFEATURES changes features present in features[].valid to the
* values of corresponding bits in features[].requested. Bits in .requested
@@ -786,6 +809,7 @@ enum ethtool_sfeatures_retval_bits {
#define ETHTOOL_SET_DUMP 0x0000003e /* Set dump settings */
#define ETHTOOL_GET_DUMP_FLAG 0x0000003f /* Get dump settings */
#define ETHTOOL_GET_DUMP_DATA 0x00000040 /* Get dump data */
+#define ETHTOOL_GET_TS_INFO 0x00000041 /* Get time stamping and PHC info */
/* compatibility with older code */
#define SPARC_ETH_GSET ETHTOOL_GSET
diff --git a/ethtool.8.in b/ethtool.8.in
index 63d5d48..20fb8e9 100644
--- a/ethtool.8.in
+++ b/ethtool.8.in
@@ -292,6 +292,9 @@ ethtool \- query or control network driver and hardware settings
.I devname
.BI \ N
.HP
+.B ethtool \-T|\-\-timestamping
+.I devname
+.HP
.B ethtool \-x|\-\-show\-rxfh\-indir
.I devname
.HP
@@ -745,6 +748,10 @@ is indicated, then ethtool fetches the dump data and directs it to a
.B \-W \-\-set\-dump
Sets the dump flag for the device.
.TP
+.B \-T \-\-timestamping
+Show the device's time stamping capabilities and associated PTP
+hardware clock.
+.TP
.B \-x \-\-show\-rxfh\-indir
Retrieves the receive flow hash indirection table.
.TP
diff --git a/ethtool.c b/ethtool.c
index e80b38b..c6292a6 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -1115,6 +1115,91 @@ static int dump_rxfhash(int fhash, u64 val)
return 0;
}
+#define N_SOTS 7
+
+static char *so_timestamping_labels[N_SOTS] = {
+ "hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)",
+ "software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)",
+ "hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)",
+ "software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)",
+ "software-system-clock (SOF_TIMESTAMPING_SOFTWARE)",
+ "hardware-legacy-clock (SOF_TIMESTAMPING_SYS_HARDWARE)",
+ "hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)",
+};
+
+#define N_TX_TYPES (HWTSTAMP_TX_ONESTEP_SYNC + 1)
+
+static char *tx_type_labels[N_TX_TYPES] = {
+ "off (HWTSTAMP_TX_OFF)",
+ "on (HWTSTAMP_TX_ON)",
+ "one-step-sync (HWTSTAMP_TX_ONESTEP_SYNC)",
+};
+
+#define N_RX_FILTERS (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ + 1)
+
+static char *rx_filter_labels[N_RX_FILTERS] = {
+ "none (HWTSTAMP_FILTER_NONE)",
+ "all (HWTSTAMP_FILTER_ALL)",
+ "some (HWTSTAMP_FILTER_SOME)",
+ "ptpv1-l4-event (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)",
+ "ptpv1-l4-sync (HWTSTAMP_FILTER_PTP_V1_L4_SYNC)",
+ "ptpv1-l4-delay-req (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ)",
+ "ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)",
+ "ptpv2-l4-sync (HWTSTAMP_FILTER_PTP_V2_L4_SYNC)",
+ "ptpv2-l4-delay-req (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ)",
+ "ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)",
+ "ptpv2-l2-sync (HWTSTAMP_FILTER_PTP_V2_L2_SYNC)",
+ "ptpv2-l2-delay-req (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ)",
+ "ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT)",
+ "ptpv2-sync (HWTSTAMP_FILTER_PTP_V2_SYNC)",
+ "ptpv2-delay-req (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)",
+};
+
+static int dump_tsinfo(const struct ethtool_ts_info *info)
+{
+ int i;
+
+ fprintf(stdout, "Capabilities:\n");
+
+ for (i = 0; i < N_SOTS; i++) {
+ if (info->so_timestamping & (1 << i))
+ fprintf(stdout, "\t%s\n", so_timestamping_labels[i]);
+ }
+
+ fprintf(stdout, "PTP Hardware Clock: ");
+
+ if (info->phc_index < 0)
+ fprintf(stdout, "none\n");
+ else
+ fprintf(stdout, "%d\n", info->phc_index);
+
+ fprintf(stdout, "Hardware Transmit Timestamp Modes:");
+
+ if (!info->tx_types)
+ fprintf(stdout, " none\n");
+ else
+ fprintf(stdout, "\n");
+
+ for (i = 0; i < N_TX_TYPES; i++) {
+ if (info->tx_types & (1 << i))
+ fprintf(stdout, "\t%s\n", tx_type_labels[i]);
+ }
+
+ fprintf(stdout, "Hardware Receive Filter Modes:");
+
+ if (!info->rx_filters)
+ fprintf(stdout, " none\n");
+ else
+ fprintf(stdout, "\n");
+
+ for (i = 0; i < N_RX_FILTERS; i++) {
+ if (info->rx_filters & (1 << i))
+ fprintf(stdout, "\t%s\n", rx_filter_labels[i]);
+ }
+
+ return 0;
+}
+
static struct ethtool_gstrings *
get_stringset(struct cmd_context *ctx, enum ethtool_stringset set_id,
ptrdiff_t drvinfo_offset)
@@ -3077,6 +3162,23 @@ static int do_sprivflags(struct cmd_context *ctx)
return 0;
}
+static int do_tsinfo(struct cmd_context *ctx)
+{
+ struct ethtool_ts_info info;
+
+ if (ctx->argc != 0)
+ exit_bad_args();
+
+ fprintf(stdout, "Time stamping parameters for %s:\n", ctx->devname);
+ info.cmd = ETHTOOL_GET_TS_INFO;
+ if (send_ioctl(ctx, &info)) {
+ perror("Cannot get device time stamping settings");
+ return -1;
+ }
+ dump_tsinfo(&info);
+ return 0;
+}
+
int send_ioctl(struct cmd_context *ctx, void *cmd)
{
#ifndef TEST_ETHTOOL
@@ -3206,6 +3308,7 @@ static const struct option {
" [ action %d ]\n"
" [ loc %d]] |\n"
" delete %d\n" },
+ { "-T|--timestamping", 1, do_tsinfo, "Show time stamping capabilities" },
{ "-x|--show-rxfh-indir", 1, do_grxfhindir,
"Show Rx flow hash indirection" },
{ "-X|--set-rxfh-indir", 1, do_srxfhindir,
diff --git a/internal.h b/internal.h
index 867c0ea..d72cdf5 100644
--- a/internal.h
+++ b/internal.h
@@ -25,6 +25,7 @@ typedef __uint8_t u8;
typedef __int32_t s32;
#include "ethtool-copy.h"
+#include "net_tstamp-copy.h"
#if __BYTE_ORDER == __BIG_ENDIAN
static inline u16 cpu_to_be16(u16 value)
diff --git a/net_tstamp-copy.h b/net_tstamp-copy.h
new file mode 100644
index 0000000..ae5df12
--- /dev/null
+++ b/net_tstamp-copy.h
@@ -0,0 +1,113 @@
+/*
+ * Userspace API for hardware time stamping of network packets
+ *
+ * Copyright (C) 2008,2009 Intel Corporation
+ * Author: Patrick Ohly <patrick.ohly@intel.com>
+ *
+ */
+
+#ifndef _NET_TIMESTAMPING_H
+#define _NET_TIMESTAMPING_H
+
+#include <linux/socket.h> /* for SO_TIMESTAMPING */
+
+/* SO_TIMESTAMPING gets an integer bit field comprised of these values */
+enum {
+ SOF_TIMESTAMPING_TX_HARDWARE = (1<<0),
+ SOF_TIMESTAMPING_TX_SOFTWARE = (1<<1),
+ SOF_TIMESTAMPING_RX_HARDWARE = (1<<2),
+ SOF_TIMESTAMPING_RX_SOFTWARE = (1<<3),
+ SOF_TIMESTAMPING_SOFTWARE = (1<<4),
+ SOF_TIMESTAMPING_SYS_HARDWARE = (1<<5),
+ SOF_TIMESTAMPING_RAW_HARDWARE = (1<<6),
+ SOF_TIMESTAMPING_MASK =
+ (SOF_TIMESTAMPING_RAW_HARDWARE - 1) |
+ SOF_TIMESTAMPING_RAW_HARDWARE
+};
+
+/**
+ * struct hwtstamp_config - %SIOCSHWTSTAMP parameter
+ *
+ * @flags: no flags defined right now, must be zero
+ * @tx_type: one of HWTSTAMP_TX_*
+ * @rx_type: one of one of HWTSTAMP_FILTER_*
+ *
+ * %SIOCSHWTSTAMP expects a &struct ifreq with a ifr_data pointer to
+ * this structure. dev_ifsioc() in the kernel takes care of the
+ * translation between 32 bit userspace and 64 bit kernel. The
+ * structure is intentionally chosen so that it has the same layout on
+ * 32 and 64 bit systems, don't break this!
+ */
+struct hwtstamp_config {
+ int flags;
+ int tx_type;
+ int rx_filter;
+};
+
+/* possible values for hwtstamp_config->tx_type */
+enum hwtstamp_tx_types {
+ /*
+ * No outgoing packet will need hardware time stamping;
+ * should a packet arrive which asks for it, no hardware
+ * time stamping will be done.
+ */
+ HWTSTAMP_TX_OFF,
+
+ /*
+ * Enables hardware time stamping for outgoing packets;
+ * the sender of the packet decides which are to be
+ * time stamped by setting %SOF_TIMESTAMPING_TX_SOFTWARE
+ * before sending the packet.
+ */
+ HWTSTAMP_TX_ON,
+
+ /*
+ * Enables time stamping for outgoing packets just as
+ * HWTSTAMP_TX_ON does, but also enables time stamp insertion
+ * directly into Sync packets. In this case, transmitted Sync
+ * packets will not received a time stamp via the socket error
+ * queue.
+ */
+ HWTSTAMP_TX_ONESTEP_SYNC,
+};
+
+/* possible values for hwtstamp_config->rx_filter */
+enum hwtstamp_rx_filters {
+ /* time stamp no incoming packet at all */
+ HWTSTAMP_FILTER_NONE,
+
+ /* time stamp any incoming packet */
+ HWTSTAMP_FILTER_ALL,
+
+ /* return value: time stamp all packets requested plus some others */
+ HWTSTAMP_FILTER_SOME,
+
+ /* PTP v1, UDP, any kind of event packet */
+ HWTSTAMP_FILTER_PTP_V1_L4_EVENT,
+ /* PTP v1, UDP, Sync packet */
+ HWTSTAMP_FILTER_PTP_V1_L4_SYNC,
+ /* PTP v1, UDP, Delay_req packet */
+ HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ,
+ /* PTP v2, UDP, any kind of event packet */
+ HWTSTAMP_FILTER_PTP_V2_L4_EVENT,
+ /* PTP v2, UDP, Sync packet */
+ HWTSTAMP_FILTER_PTP_V2_L4_SYNC,
+ /* PTP v2, UDP, Delay_req packet */
+ HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ,
+
+ /* 802.AS1, Ethernet, any kind of event packet */
+ HWTSTAMP_FILTER_PTP_V2_L2_EVENT,
+ /* 802.AS1, Ethernet, Sync packet */
+ HWTSTAMP_FILTER_PTP_V2_L2_SYNC,
+ /* 802.AS1, Ethernet, Delay_req packet */
+ HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ,
+
+ /* PTP v2/802.AS1, any layer, any kind of event packet */
+ HWTSTAMP_FILTER_PTP_V2_EVENT,
+ /* PTP v2/802.AS1, any layer, Sync packet */
+ HWTSTAMP_FILTER_PTP_V2_SYNC,
+ /* PTP v2/802.AS1, any layer, Delay_req packet */
+ HWTSTAMP_FILTER_PTP_V2_DELAY_REQ,
+};
+
+#endif /* _NET_TIMESTAMPING_H */
diff --git a/test-cmdline.c b/test-cmdline.c
index 4718842..b89ab4e 100644
--- a/test-cmdline.c
+++ b/test-cmdline.c
@@ -172,6 +172,9 @@ static struct test_case {
{ 1, "-U devname foo" },
{ 1, "-N" },
{ 1, "-U" },
+ { 0, "-T devname" },
+ { 0, "--timestamping devname" },
+ { 1, "-T" },
{ 0, "-x devname" },
{ 0, "--show-rxfh-indir devname" },
{ 1, "-x" },
--
1.7.2.5
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 37+ messages in thread
* Re: [PATCH] Add the command to show the time stamping capabilities.
2012-04-03 17:58 ` [PATCH] Add the command to show the time stamping capabilities Richard Cochran
@ 2012-05-15 18:08 ` Ben Hutchings
0 siblings, 0 replies; 37+ messages in thread
From: Ben Hutchings @ 2012-05-15 18:08 UTC (permalink / raw)
To: Richard Cochran
Cc: netdev, David Miller, Martin Porter, Jacob Keller, Jeff Kirsher,
John Ronciak, e1000-devel
Sorry for the delay in handling this.
I've applied this with a minor change: I renamed the long option to
--show-time-stamping, for consistency with other 'show' options and to
allow for future addition of other time stamping options.
Ben.
--
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] 37+ messages in thread
* Re: [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (28 preceding siblings ...)
2012-04-03 17:58 ` [PATCH] Add the command to show the time stamping capabilities Richard Cochran
@ 2012-04-03 18:02 ` Richard Cochran
2012-04-03 20:25 ` David Miller
30 siblings, 0 replies; 37+ messages in thread
From: Richard Cochran @ 2012-04-03 18:02 UTC (permalink / raw)
To: netdev
Cc: David Miller, Ben Hutchings, Martin Porter, Jacob Keller,
Jeff Kirsher, John Ronciak, e1000-devel
On Tue, Apr 03, 2012 at 07:47:24PM +0200, Richard Cochran wrote:
> Changes in V3:
> - works without ethtool_ops
> - does not require special privileges
> - neated user space tool output
neaten (it looks neater now, and more like what Ben was asking for)
Richard
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks
2012-04-03 17:47 [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
` (29 preceding siblings ...)
2012-04-03 18:02 ` [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks Richard Cochran
@ 2012-04-03 20:25 ` David Miller
2012-04-04 5:14 ` Richard Cochran
30 siblings, 1 reply; 37+ messages in thread
From: David Miller @ 2012-04-03 20:25 UTC (permalink / raw)
To: richardcochran
Cc: mporter, e1000-devel, netdev, jacob.e.keller, john.ronciak,
bhutchings
From: Richard Cochran <richardcochran@gmail.com>
Date: Tue, 3 Apr 2012 19:47:24 +0200
> The new feature has been tested on the following hardware:
>
> igb Hardware time stamping in the MAC
I don't know how, it doesn't even build.
drivers/net/ethernet/intel/igb/igb_ethtool.c: In function ‘igb_ethtool_get_ts_info’:
drivers/net/ethernet/intel/igb/igb_ethtool.c:2195:13: error: ‘struct igb_adapter’ has no member named ‘ptp_clock’
drivers/net/ethernet/intel/igb/igb_ethtool.c:2196:3: error: implicit declaration of function ‘ptp_clock_index’ [-Werror=implicit-function-declaration]
drivers/net/ethernet/intel/igb/igb_ethtool.c:2196:44: error: ‘struct igb_adapter’ has no member named ‘ptp_clock’
If these patches depend upon changes not in my tree, and you haven't
even mentioned this, I'm going to be _extremely_ irritated.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks
2012-04-03 20:25 ` David Miller
@ 2012-04-04 5:14 ` Richard Cochran
2012-04-04 5:36 ` David Miller
0 siblings, 1 reply; 37+ messages in thread
From: Richard Cochran @ 2012-04-04 5:14 UTC (permalink / raw)
To: David Miller
Cc: mporter, e1000-devel, netdev, jacob.e.keller, john.ronciak,
bhutchings
On Tue, Apr 03, 2012 at 04:25:42PM -0400, David Miller wrote:
> If these patches depend upon changes not in my tree, and you haven't
> even mentioned this, I'm going to be _extremely_ irritated.
Sorry for being so irritating, and not being clear enough about
this. I did mention that
Patch number 3 applies on top of my recent two igb/phc patches.
Patch number 12 applies on top of my recent e100 patch.
Jeff accepted all of those 'recent patches' into his queue, so perhaps
he would take #3 and #12.
Or should I just drop them for now?
Thanks,
Richard
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH V3 net-next 00/28] ethtool: support time stamping and phc clocks
2012-04-04 5:14 ` Richard Cochran
@ 2012-04-04 5:36 ` David Miller
0 siblings, 0 replies; 37+ messages in thread
From: David Miller @ 2012-04-04 5:36 UTC (permalink / raw)
To: richardcochran
Cc: mporter, e1000-devel, netdev, jacob.e.keller, john.ronciak,
bhutchings
From: Richard Cochran <richardcochran@gmail.com>
Date: Wed, 4 Apr 2012 07:14:32 +0200
> On Tue, Apr 03, 2012 at 04:25:42PM -0400, David Miller wrote:
>
>> If these patches depend upon changes not in my tree, and you haven't
>> even mentioned this, I'm going to be _extremely_ irritated.
>
> Sorry for being so irritating, and not being clear enough about
> this. I did mention that
>
> Patch number 3 applies on top of my recent two igb/phc patches.
> Patch number 12 applies on top of my recent e100 patch.
>
> Jeff accepted all of those 'recent patches' into his queue, so perhaps
> he would take #3 and #12.
>
> Or should I just drop them for now?
Yes, you can drop them and then send them later through Jeff once
the infrastructure hits my tree.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply [flat|nested] 37+ messages in thread