diff mbox

[21/21] RDS: Add AF and PF #defines for RDS sockets

Message ID 1233022678-9259-22-git-send-email-andy.grover@oracle.com
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Andy Grover Jan. 27, 2009, 2:17 a.m. UTC
RDS is a reliable datagram protocol used for IPC on Oracle
database clusters. This adds address and protocol family numbers
for it.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
---
 include/linux/socket.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Comments

Rémi Denis-Courmont Jan. 27, 2009, 7:27 a.m. UTC | #1
On Tuesday 27 January 2009 04:17:58 ext Andy Grover, you wrote:
> RDS is a reliable datagram protocol used for IPC on Oracle
> database clusters. This adds address and protocol family numbers
> for it.
>
> Signed-off-by: Andy Grover <andy.grover@oracle.com>
> ---
>  include/linux/socket.h |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/socket.h b/include/linux/socket.h
> index 20fc4bb..fda91af 100644
> --- a/include/linux/socket.h
> +++ b/include/linux/socket.h
> @@ -191,7 +191,8 @@ struct ucred {
>  #define AF_RXRPC	33	/* RxRPC sockets 		*/
>  #define AF_ISDN		34	/* mISDN sockets 		*/
>  #define AF_PHONET	35	/* Phonet sockets		*/
> -#define AF_MAX		36	/* For now.. */
> +#define AF_RDS		36	/* RDS sockets 			*/
> +#define AF_MAX		37	/* For now.. */
>
>  /* Protocol families, same as address families. */
>  #define PF_UNSPEC	AF_UNSPEC
> @@ -229,6 +230,7 @@ struct ucred {
>  #define PF_RXRPC	AF_RXRPC
>  #define PF_ISDN		AF_ISDN
>  #define PF_PHONET	AF_PHONET
> +#define PF_RDS		AF_RDS
>  #define PF_MAX		AF_MAX
>
>  /* Maximum queue length specifiable by listen.  */

You also need to add lock class declaration to net/core/sock.c, I believe.
Andrew Grover Jan. 27, 2009, 7:31 p.m. UTC | #2
On Mon, Jan 26, 2009 at 11:27 PM, Rémi Denis-Courmont
<remi.denis-courmont@nokia.com> wrote:
> You also need to add lock class declaration to net/core/sock.c, I believe.

Very true, thanks.

Regards -- Andy
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/socket.h b/include/linux/socket.h
index 20fc4bb..fda91af 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -191,7 +191,8 @@  struct ucred {
 #define AF_RXRPC	33	/* RxRPC sockets 		*/
 #define AF_ISDN		34	/* mISDN sockets 		*/
 #define AF_PHONET	35	/* Phonet sockets		*/
-#define AF_MAX		36	/* For now.. */
+#define AF_RDS		36	/* RDS sockets 			*/
+#define AF_MAX		37	/* For now.. */
 
 /* Protocol families, same as address families. */
 #define PF_UNSPEC	AF_UNSPEC
@@ -229,6 +230,7 @@  struct ucred {
 #define PF_RXRPC	AF_RXRPC
 #define PF_ISDN		AF_ISDN
 #define PF_PHONET	AF_PHONET
+#define PF_RDS		AF_RDS
 #define PF_MAX		AF_MAX
 
 /* Maximum queue length specifiable by listen.  */