Skip to content

RFC New NDO methods ndo_hwtstamp_get/set

Maxim Georgiev netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 RFC Latest5 patches 11 repliesIn review
  2. v4 RFC5 patches 10 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: Add NDOs for hardware timestamp get/setinclude/linux/net_tstamp.h include/linux/netdevice.h net/core/dev_ioctl.c+63 -34 replies
2/5net: Add ifreq pointer field to kernel_hwtstamp_config structureinclude/linux/net_tstamp.h include/linux/netdevice.h net/core/dev_ioctl.c+89 -64 replies
3/5vlan/macvlan: Add ndo_hwtstamp_get/set support to vlan/macvlan code pathdrivers/net/macvlan.c net/8021q/vlan_dev.c+38 -250 replies
4/5bond: Add ndo_hwtstamp_get/set support to bond driverdrivers/net/bonding/bond_main.c+66 -400 replies
5/5netdevsim: Implement ndo_hwtstamp_get/set methods in netdevsim driverdrivers/net/netdevsim/ethtool.c drivers/net/netdevsim/netdev.c drivers/net/netdevsim/netdevsim.h+36 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [RFC PATCH net-next v6 0/5] New NDO methods ndo_hwtstamp_get/set

This stack of patches introduces a couple of new NDO methods, ndo_hwtstamp_get and ndo_hwtstamp_set. These new methods can be implemented by NIC drivers to allow setting and querying HW timestamp settings. Drivers implementing these methods will not need to handle SIOCGHWTSTAMP/SIOCSHWTSTAMP IOCTLs. The new NDO methods will handle copying request parameters between user address space and kernel space.

Maxim Georgiev (5):
net: Add NDOs for hardware timestamp get/set
net: Add ifreq pointer field to kernel_hwtstamp_config structure vlan/macvlan: Add ndo_hwtstamp_get/set support to vlan/macvlan code
path
bond: Add ndo_hwtstamp_get/set support to bond driver
netdevsim: Implement ndo_hwtstamp_get/set methods in netdevsim driver

 drivers/net/bonding/bond_main.c   | 106 +++++++++++++++++-----------
 drivers/net/macvlan.c             |  35 ++++------
 drivers/net/netdevsim/ethtool.c   |  11 +++
 drivers/net/netdevsim/netdev.c    |  24 +++++++
 drivers/net/netdevsim/netdevsim.h |   1 +
 include/linux/net_tstamp.h        |  17 +++++
 include/linux/netdevice.h         |  22 ++++++
 net/8021q/vlan_dev.c              |  28 ++++++--
 net/core/dev_ioctl.c              | 110 +++++++++++++++++++++++++++++-
 9 files changed, 286 insertions(+), 68 deletions(-)
Signature · 1 line
2.40.1