diff options
author | 2025-05-08 17:36:59 +0300 | |
---|---|---|
committer | 2025-05-09 16:42:29 -0700 | |
commit | 17c6c5a09df0da4f7133ac0099aa9b4c892f89fc (patch) | |
tree | b9ed896e3793213f4824db5d3ee979d904925de6 /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
parent | net: dpaa2-eth: add ndo_hwtstamp_get() implementation (diff) | |
download | linux-rng-17c6c5a09df0da4f7133ac0099aa9b4c892f89fc.tar.xz linux-rng-17c6c5a09df0da4f7133ac0099aa9b4c892f89fc.zip |
net: gianfar: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()
New timestamping API was introduced in commit 66f7223039c0 ("net: add
NDOs for configuring hardware timestamping") from kernel v6.6. It is
time to convert the gianfar driver to the new API, so that the
ndo_eth_ioctl() path can be removed completely.
Don't propagate the unnecessary "config.flags = 0;" assignment to
gfar_hwtstamp_get(), because dev_get_hwtstamp() provides a zero
initialized struct kernel_hwtstamp_config.
After removing timestamping logic from gfar_ioctl(), the rest is
equivalent to phy_do_ioctl_running(), so provide that directly as our
ndo_eth_ioctl() implementation.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # LS1021A
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250508143659.1944220-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_dcb_lib.c')
0 files changed, 0 insertions, 0 deletions