Re: [PATCH net-next v5 12/16] net: Replace hwtstamp_source by timestamping layer

From
Florian Fainelli <florian.fainelli@broadcom.com>
Date
2023-10-09 21:24:21
Also in
linux-doc, lkml
Reply to
Köry Maincent, 2023-10-09
On 10/9/23 08:51, Köry Maincent wrote:
From: Kory Maincent <kory.maincent@bootlin.com>

Replace hwtstamp_source which is only used by the kernel_hwtstamp_config
structure by the more widely use timestamp_layer structure. This is done
to prepare the support of selectable timestamping source.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
[snip]
quoted hunk ↗ jump to hunk
   * Prefer using this structure for in-kernel processing of hardware
   * timestamping configuration, over the inextensible struct hwtstamp_config
@@ -33,7 +28,7 @@ struct kernel_hwtstamp_config {
  	int rx_filter;
  	struct ifreq *ifr;
  	bool copied_to_user;
-	enum hwtstamp_source source;
It would be kind of nice to keep using the enum internally such that we can catch unhandled values, which the compiler is usually quite good at figuring.
-- 
Florian

Attachments

Thread (61 messages) 61 messages, 11 authors, last reply 2023-10-20
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