]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: enetc: report software timestamping via SO_TIMESTAMPING
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 24 Mar 2022 16:12:10 +0000 (18:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Mar 2022 22:37:09 +0000 (15:37 -0700)
Let user space properly determine that the enetc driver provides
software timestamps.

Fixes: 4caefbce06d1 ("enetc: add software timestamping")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://lore.kernel.org/r/20220324161210.4122281-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c

index fa5b4f885b177dce634ea4a4bb3be3d9ead91d13..60ec64bfb3f0b52b77187bd52fe1efdd3c63e96d 100644 (file)
@@ -674,7 +674,10 @@ static int enetc_get_ts_info(struct net_device *ndev,
 #ifdef CONFIG_FSL_ENETC_PTP_CLOCK
        info->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE |
                                SOF_TIMESTAMPING_RX_HARDWARE |
-                               SOF_TIMESTAMPING_RAW_HARDWARE;
+                               SOF_TIMESTAMPING_RAW_HARDWARE |
+                               SOF_TIMESTAMPING_TX_SOFTWARE |
+                               SOF_TIMESTAMPING_RX_SOFTWARE |
+                               SOF_TIMESTAMPING_SOFTWARE;
 
        info->tx_types = (1 << HWTSTAMP_TX_OFF) |
                         (1 << HWTSTAMP_TX_ON) |