Skip to contentSkip to conversation

RDS: Add AF and PF defines for RDS sockets

PATCH In review Andy Grover 5 participants 7 messages Aug 26, 2008 – Sep 11, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDS: Add AF and PF defines for RDS sockets

RDS is a reliable datagram protocol used for IPC on Oracle database clusters. This adds address and protocol family numbers for it.

---
 include/linux/socket.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
include/linux/socket.h +3 -1
index dc5086f..e1f7764 100644
@@ -190,7 +190,8 @@ struct ucred {
 #define AF_IUCV		32	/* IUCV sockets			*/
 #define AF_RXRPC	33	/* RxRPC sockets 		*/
 #define AF_ISDN		34	/* mISDN sockets 		*/
-#define AF_MAX		35	/* For now.. */
+#define AF_RDS		35	/* RDS sockets 			*/
+#define AF_MAX		36	/* For now.. */
 
 /* Protocol families, same as address families. */
 #define PF_UNSPEC	AF_UNSPEC
@@ -227,6 +228,7 @@ struct ucred {
 #define PF_IUCV		AF_IUCV
 #define PF_RXRPC	AF_RXRPC
 #define PF_ISDN		AF_ISDN
+#define PF_RDS		AF_RDS
 #define PF_MAX		AF_MAX
 
 /* Maximum queue length specifiable by listen.  */
Signature · 1 line
1.5.4.rc3
#1 lore raw

Hi Andy,

Quoted 3 lines

RDS is a reliable datagram protocol used for IPC on Oracle database clusters. This adds address and protocol family numbers for it.

and where is the protocol? Adding new constants without posting the implementation normally doesn't fly anymore.

Regards

Marcel

maintainer
#2 lore raw

From: Marcel Holtmann <[email protected]>
Date: Tue, 26 Aug 2008 06:16:28 +0200

Quoted 2 lines

and where is the protocol? Adding new constants without posting the implementation normally doesn't fly anymore.

That's correct :)

#3 lore raw
Quoted 7 lines · David Miller

From: Marcel Holtmann <[email protected]>
Date: Tue, 26 Aug 2008 06:16:28 +0200

Quoted 2 lines

and where is the protocol? Adding new constants without posting the implementation normally doesn't fly anymore.

That's correct :)

That's kind of unfortunate, and leads to the problems we have with compatibility for AF_ISDN, where userspace built for the _older_ versions has a different value.

Is there really any harm in reserving it up-front?

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
maintainer
#4 lore raw

From: David Woodhouse <[email protected]>
Date: Thu, 28 Aug 2008 08:06:40 +0100

Quoted 7 lines · David Miller
Quoted 6 lines

From: Marcel Holtmann <[email protected]>
Date: Tue, 26 Aug 2008 06:16:28 +0200

Quoted 2 lines

and where is the protocol? Adding new constants without posting the implementation normally doesn't fly anymore.

Quoted 7 lines
Quoted 1 line

That's correct :)

That's kind of unfortunate, and leads to the problems we have with compatibility for AF_ISDN, where userspace built for the _older_ versions has a different value.

Is there really any harm in reserving it up-front?

If you're commiting a userspace to a kernel component that hasn't been blessed upstream yet, you're already up the creek without a paddle.

#5 lore raw

(reviving an old thread, new comments at bottom)

Quoted 16 lines · David Miller

From: David Woodhouse <[email protected]>
Date: Thu, 28 Aug 2008 08:06:40 +0100

Quoted 13 lines · David Miller
Quoted 7 lines

From: Marcel Holtmann <[email protected]>
Date: Tue, 26 Aug 2008 06:16:28 +0200

Quoted 2 lines

and where is the protocol? Adding new constants without posting the implementation normally doesn't fly anymore.

That's correct :)

That's kind of unfortunate, and leads to the problems we have with compatibility for AF_ISDN, where userspace built for the _older_ versions has a different value.

Quoted 5 lines
Quoted 1 line

Is there really any harm in reserving it up-front?

If you're commiting a userspace to a kernel component that hasn't been blessed upstream yet, you're already up the creek without a paddle.

The RDS protocol is already in production use by Oracle, and has been in the OFED distribution for a long time. It's under active development, and we'll be submitting it soon for mainline.

So userspace is already committed to a kernel component that isn't in mainline, and we *are* up a creek a little bit. User code has to do some hacky things to determine RDS's protocol number (it's variable). The sooner we get an actual number allocated, the sooner userspace can start using it, and start the clock ticking on when it can remove the old variable protocol num hack.

Basically: we're gonna submit the code. Who knows how many rounds of reviews it will take before it goes in, but we're committed to getting it in. We just want a number now so userspace can start doing things correctly right away.

Let me know and I can repost the patch.

Regards -- Andy

maintainer
#6 lore raw

From: "Andrew Grover" <[email protected]>
Date: Thu, 11 Sep 2008 11:44:39 -0700

Quoted 21 lines

(reviving an old thread, new comments at bottom)

Quoted 18 lines · David Miller

From: David Woodhouse <[email protected]>
Date: Thu, 28 Aug 2008 08:06:40 +0100

Quoted 14 lines · David Miller
Quoted 7 lines

From: Marcel Holtmann <[email protected]>
Date: Tue, 26 Aug 2008 06:16:28 +0200

Quoted 2 lines

and where is the protocol? Adding new constants without posting the implementation normally doesn't fly anymore.

That's correct :)

That's kind of unfortunate, and leads to the problems we have with compatibility for AF_ISDN, where userspace built for the _older_ versions has a different value.

Is there really any harm in reserving it up-front?

Quoted 7 lines
Quoted 3 lines

If you're commiting a userspace to a kernel component that hasn't been blessed upstream yet, you're already up the creek without a paddle.

The RDS protocol is already in production use by Oracle, and has been in the OFED distribution for a long time. It's under active development, and we'll be submitting it soon for mainline.

So?!??! Upstream doesn't give a crap about what someone is happening internally. It doesn't matter, it's irrelevant.

Quoted 2 lines

We just want a number now so userspace can start doing things correctly right away.

N-O spells "no".