net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
Subsystems (3)
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
@@ -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
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 ine1000e_config_hwtstamp. Align the indentation ofnet_device_ops.Reviewed-by Vadim Fedorenko <[email protected]>Reviewed-by Simon Horman <[email protected]>Reviewed-by Vitaly Lifshits <[email protected]>Signed-off-by Piotr Wejman <[email protected]>---
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 ine1000e_systim_reset
- Link to v2: https://lore.kernel.org/netdev/[email protected]/Changes in v2:
- amend commit message
- use extack for error reporting
- renamee1000_mii_ioctltoe1000_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(-)