Skip to contentSkip to conversation

net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()

PATCH In review Piotr Wejman 2 participants 2 messages Feb 22, 2025 – Mar 24, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()

Update the driver to use the new hardware timestamping API added in commit 66f7223039c0 ("net: add NDOs for configuring hardware timestamping"). Use Netlink extack for error reporting in e1000e_config_hwtstamp. Align the indentation of net_device_ops.

---
Changes in v4:
- fix line wrappnig
- Linke to v3: https://lore.kernel.org/netdev/[email protected]/

Changes in v3:
- remove new lines at the end of the extack
- add error print in e1000e_systim_reset
- Link to v2: https://lore.kernel.org/netdev/[email protected]/

Changes in v2:
- amend commit message
- use extack for error reporting
- rename e1000_mii_ioctl to e1000_ioctl
- Link to v1: https://lore.kernel.org/netdev/[email protected]/

 drivers/net/ethernet/intel/e1000e/e1000.h  |  2 +-
 drivers/net/ethernet/intel/e1000e/netdev.c | 75 +++++++++++-----------
 2 files changed, 38 insertions(+), 39 deletions(-)
drivers/net/ethernet/intel/e1000e/e1000.h +1 -1
index ba9c19e6994c..952898151565 100644
@@ -319,7 +319,7 @@ struct e1000_adapter {
 	u16 tx_ring_count;
 	u16 rx_ring_count;
 
-	struct hwtstamp_config hwtstamp_config;
+	struct kernel_hwtstamp_config hwtstamp_config;
 	struct delayed_work systim_overflow_work;
 	struct sk_buff *tx_hwtstamp_skb;
 	unsigned long tx_hwtstamp_start;
drivers/net/ethernet/intel/e1000e/netdev.c +37 -38

179 lines not on this page · raw message

Signature · 1 line
2.25.1
Tested-by on v4 1/1
#1 lore raw
Quoted 25 lines · Piotr Wejman

Update the driver to use the new hardware timestamping API added in commit 66f7223039c0 ("net: add NDOs for configuring hardware timestamping"). Use Netlink extack for error reporting in e1000e_config_hwtstamp. Align the indentation of net_device_ops.

---
Changes in v4:
- fix line wrappnig
- Linke to v3: https://lore.kernel.org/netdev/[email protected]/

Changes in v3:
- remove new lines at the end of the extack
- add error print in e1000e_systim_reset
- Link to v2: https://lore.kernel.org/netdev/[email protected]/

Changes in v2:
- amend commit message
- use extack for error reporting
- rename e1000_mii_ioctl to e1000_ioctl
- Link to v1: https://lore.kernel.org/netdev/[email protected]/

Quoted 4 lines
  drivers/net/ethernet/intel/e1000e/e1000.h  |  2 +-
  drivers/net/ethernet/intel/e1000e/netdev.c | 75 +++++++++++-----------
  2 files changed, 38 insertions(+), 39 deletions(-)