Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80b14dee authored by Richard Cochran's avatar Richard Cochran Committed by David S. Miller
Browse files

net: Add a new socket option for a future transmit time.



This patch introduces SO_TXTIME. User space enables this option in
order to pass a desired future transmit time in a CMSG when calling
sendmsg(2). The argument to this socket option is a 8-bytes long struct
provided by the uapi header net_tstamp.h defined as:

struct sock_txtime {
	clockid_t 	clockid;
	u32		flags;
};

Note that new fields were added to struct sock by filling a 2-bytes
hole found in the struct. For that reason, neither the struct size or
number of cachelines were altered.

Signed-off-by: default avatarRichard Cochran <rcochran@linutronix.de>
Signed-off-by: default avatarJesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c47d8c2f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -112,4 +112,7 @@

#define SO_ZEROCOPY		60

#define SO_TXTIME		61
#define SCM_TXTIME		SO_TXTIME

#endif /* _UAPI_ASM_SOCKET_H */
+3 −0
Original line number Diff line number Diff line
@@ -114,4 +114,7 @@

#define SO_ZEROCOPY		60

#define SO_TXTIME		61
#define SCM_TXTIME		SO_TXTIME

#endif /* _ASM_IA64_SOCKET_H */
+3 −0
Original line number Diff line number Diff line
@@ -123,4 +123,7 @@

#define SO_ZEROCOPY		60

#define SO_TXTIME		61
#define SCM_TXTIME		SO_TXTIME

#endif /* _UAPI_ASM_SOCKET_H */
+3 −0
Original line number Diff line number Diff line
@@ -104,4 +104,7 @@

#define SO_ZEROCOPY		0x4035

#define SO_TXTIME		0x4036
#define SCM_TXTIME		SO_TXTIME

#endif /* _UAPI_ASM_SOCKET_H */
+3 −0
Original line number Diff line number Diff line
@@ -111,4 +111,7 @@

#define SO_ZEROCOPY		60

#define SO_TXTIME		61
#define SCM_TXTIME		SO_TXTIME

#endif /* _ASM_SOCKET_H */
Loading