Add PF_SMC, AF_SMC from Linux 4.11 to bits/socket.h

Message ID alpine.DEB.2.20.1705011201240.11474@digraph.polyomino.org.uk
State Committed
Headers

Commit Message

Joseph Myers May 1, 2017, 12:01 p.m. UTC
  This patch adds the PF_SMC / AF_SMC macros from Linux 4.11 to
sysdeps/unix/sysv/linux/bits/socket.h.

Tested for x86_64.

2017-05-01  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
	(PF_MAX): Set to 44.
	(AF_SMC): New macro.
  

Comments

Dmitry V. Levin May 1, 2017, 2:21 p.m. UTC | #1
On Mon, May 01, 2017 at 12:01:41PM +0000, Joseph Myers wrote:
> This patch adds the PF_SMC / AF_SMC macros from Linux 4.11 to
> sysdeps/unix/sysv/linux/bits/socket.h.
> 
> Tested for x86_64.
> 
> 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
> 	(PF_MAX): Set to 44.
> 	(AF_SMC): New macro.

Looks fine, thanks.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
index 6d6d56e..ec2bf85 100644
--- a/sysdeps/unix/sysv/linux/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
@@ -84,7 +84,8 @@  typedef __socklen_t socklen_t;
 #define PF_VSOCK	40	/* vSockets.  */
 #define PF_KCM		41	/* Kernel Connection Multiplexor.  */
 #define PF_QIPCRTR	42	/* Qualcomm IPC Router.  */
-#define PF_MAX		43	/* For now..  */
+#define PF_SMC		43	/* SMC sockets.  */
+#define PF_MAX		44	/* For now..  */
 
 /* Address families.  */
 #define AF_UNSPEC	PF_UNSPEC
@@ -133,6 +134,7 @@  typedef __socklen_t socklen_t;
 #define AF_VSOCK	PF_VSOCK
 #define AF_KCM		PF_KCM
 #define AF_QIPCRTR	PF_QIPCRTR
+#define AF_SMC		PF_SMC
 #define AF_MAX		PF_MAX
 
 /* Socket level values.  Others are defined in the appropriate headers.