net: define PKTINFO timestamping option in all archs
Subsystems (9)
PATCH 1/1 net: define PKTINFO timestamping option in all archs
From: Willem de Bruijn <[email protected]>
The newly introduced timestamping option SCM_TIMESTAMPING_PKTINFO is defined in asm-generic/socket.h. Also define it in the architecture specific versions.
--- arch/alpha/include/uapi/asm/socket.h | 2 ++ arch/frv/include/uapi/asm/socket.h | 2 ++ arch/ia64/include/uapi/asm/socket.h | 2 ++ arch/m32r/include/uapi/asm/socket.h | 2 ++ arch/mips/include/uapi/asm/socket.h | 2 ++ arch/mn10300/include/uapi/asm/socket.h | 2 ++ arch/parisc/include/uapi/asm/socket.h | 2 ++ arch/powerpc/include/uapi/asm/socket.h | 2 ++ arch/s390/include/uapi/asm/socket.h | 2 ++ arch/sparc/include/uapi/asm/socket.h | 2 ++ arch/xtensa/include/uapi/asm/socket.h | 2 ++ 11 files changed, 22 insertions(+)
arch/alpha/include/uapi/asm/socket.h +2 -0
@@ -105,4 +105,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _UAPI_ASM_SOCKET_H */
arch/frv/include/uapi/asm/socket.h +2 -0
@@ -98,5 +98,7 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _ASM_SOCKET_H */
arch/ia64/include/uapi/asm/socket.h +2 -0
@@ -107,4 +107,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _ASM_IA64_SOCKET_H */
arch/m32r/include/uapi/asm/socket.h +2 -0
@@ -98,4 +98,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _ASM_M32R_SOCKET_H */
arch/mips/include/uapi/asm/socket.h +2 -0
@@ -116,4 +116,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _UAPI_ASM_SOCKET_H */
arch/mn10300/include/uapi/asm/socket.h +2 -0
@@ -98,4 +98,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _ASM_SOCKET_H */
arch/parisc/include/uapi/asm/socket.h +2 -0
@@ -97,4 +97,6 @@#define SO_COOKIE 0x4032 +#define SCM_TIMESTAMPING_PKTINFO 0x4033 +#endif /* _UAPI_ASM_SOCKET_H */
arch/powerpc/include/uapi/asm/socket.h +2 -0
@@ -105,4 +105,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _ASM_POWERPC_SOCKET_H */
arch/s390/include/uapi/asm/socket.h +2 -0
@@ -104,4 +104,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _ASM_SOCKET_H */
arch/sparc/include/uapi/asm/socket.h +2 -0
@@ -94,6 +94,8 @@#define SO_COOKIE 0x003b +#define SCM_TIMESTAMPING_PKTINFO 0x003c +/* Security levels - as per NRL IPv6 - don't actually do anything */ #define SO_SECURITY_AUTHENTICATION 0x5001#define SO_SECURITY_ENCRYPTION_TRANSPORT 0x5002
arch/xtensa/include/uapi/asm/socket.h +2 -0
@@ -109,4 +109,6 @@#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#endif /* _XTENSA_SOCKET_H */
Signature · 1 line
2.13.0.303.g4ebf302169-goog
David Miller
maintainerFrom: Willem de Bruijn <[email protected]>
Date: Sun, 21 May 2017 23:31:47 -0400
Quoted 10 lines
From: Willem de Bruijn <[email protected]>
The newly introduced timestamping option
SCM_TIMESTAMPING_PKTINFOis defined inasm-generic/socket.h. Also define it in the architecture specific versions.Fixes aad9c8c470f2 ("net: add new control message for incoming HW-timestamped packets")Reported-by Stephen Rothwell <[email protected]>CC Miroslav Lichvar <[email protected]>Signed-off-by Willem de Bruijn <[email protected]>
I pushed a fix for this about 15 minutes ago :-)
Quoted 9 lines · David Miller
From: Willem de Bruijn <[email protected]>
Date: Sun, 21 May 2017 23:31:47 -0400Quoted 6 lines
From: Willem de Bruijn <[email protected]>
The newly introduced timestamping option
SCM_TIMESTAMPING_PKTINFOis defined inasm-generic/socket.h. Also define it in the architecture specific versions.
Quoted 6 lines
Quoted 4 lines
Fixes aad9c8c470f2 ("net: add new control message for incoming HW-timestamped packets")Reported-by Stephen Rothwell <[email protected]>CC Miroslav Lichvar <[email protected]>Signed-off-by Willem de Bruijn <[email protected]>I pushed a fix for this about 15 minutes ago :-).
Thanks, David!
Then ignore this one. Apologies for not spotting this sooner.