Re: [PATCH net-next v7 08/16] net: ethtool: Add a command to expose current time stamping layer

From
Jakub Kicinski <kuba@kernel.org>
Date
2023-11-19 02:25:16
Also in
linux-doc, lkml
Reply to
Kory Maincent, 2023-11-14
On Tue, 14 Nov 2023 12:28:36 +0100 Kory Maincent wrote:
quoted hunk ↗ jump to hunk
+		ops->get_ts_info(dev, &ts_info);
+		if (ts_info.so_timestamping &
+		    SOF_TIMESTAMPING_HARDWARE_MASK)
+			data->ts_layer = MAC_TIMESTAMPING;
+
+		if (ts_info.so_timestamping &
+		    SOF_TIMESTAMPING_SOFTWARE_MASK)
+			data->ts_layer = SOFTWARE_TIMESTAMPING;
How does this work? so_timestamping is capabilities, not what's
enabled now. So if driver supports SW stamping we always return
SOFTWARE?
Thread (78 messages) 78 messages, 9 authors, last reply 2023-11-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help