aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-08-25 12:32:17 -0400
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:16:52 -0400
commitfd128dfa50cfc4f2959dc4aa5d7468d33b988332 (patch)
treeaf53d62ccf9558091ea1d19d5653f913e642d472
parent20c72bd5f5f902e5a8745d51573699605bf8d21c (diff)
RDS: Add rds.h to exported headers list
Also, a number of changes were made based on the assumption that rds.h wasn't exported, so roll these back. Signed-off-by: Andy Grover <andy.grover@oracle.com>
-rw-r--r--include/linux/Kbuild1
-rw-r--r--include/linux/rds.h12
2 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 626b629429ff..c7fbf298ad68 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -302,6 +302,7 @@ header-y += quota.h
302header-y += radeonfb.h 302header-y += radeonfb.h
303header-y += random.h 303header-y += random.h
304header-y += raw.h 304header-y += raw.h
305header-y += rds.h
305header-y += reboot.h 306header-y += reboot.h
306header-y += reiserfs_fs.h 307header-y += reiserfs_fs.h
307header-y += reiserfs_xattr.h 308header-y += reiserfs_xattr.h
diff --git a/include/linux/rds.h b/include/linux/rds.h
index a2a5edb4a276..f371f885a352 100644
--- a/include/linux/rds.h
+++ b/include/linux/rds.h
@@ -95,7 +95,7 @@
95struct rds_info_counter { 95struct rds_info_counter {
96 u_int8_t name[32]; 96 u_int8_t name[32];
97 u_int64_t value; 97 u_int64_t value;
98} __packed; 98} __attribute__((packed));
99 99
100#define RDS_INFO_CONNECTION_FLAG_SENDING 0x01 100#define RDS_INFO_CONNECTION_FLAG_SENDING 0x01
101#define RDS_INFO_CONNECTION_FLAG_CONNECTING 0x02 101#define RDS_INFO_CONNECTION_FLAG_CONNECTING 0x02
@@ -110,7 +110,7 @@ struct rds_info_connection {
110 __be32 faddr; 110 __be32 faddr;
111 u_int8_t transport[TRANSNAMSIZ]; /* null term ascii */ 111 u_int8_t transport[TRANSNAMSIZ]; /* null term ascii */
112 u_int8_t flags; 112 u_int8_t flags;
113} __packed; 113} __attribute__((packed));
114 114
115struct rds_info_flow { 115struct rds_info_flow {
116 __be32 laddr; 116 __be32 laddr;
@@ -118,7 +118,7 @@ struct rds_info_flow {
118 u_int32_t bytes; 118 u_int32_t bytes;
119 __be16 lport; 119 __be16 lport;
120 __be16 fport; 120 __be16 fport;
121} __packed; 121} __attribute__((packed));
122 122
123#define RDS_INFO_MESSAGE_FLAG_ACK 0x01 123#define RDS_INFO_MESSAGE_FLAG_ACK 0x01
124#define RDS_INFO_MESSAGE_FLAG_FAST_ACK 0x02 124#define RDS_INFO_MESSAGE_FLAG_FAST_ACK 0x02
@@ -131,7 +131,7 @@ struct rds_info_message {
131 __be16 lport; 131 __be16 lport;
132 __be16 fport; 132 __be16 fport;
133 u_int8_t flags; 133 u_int8_t flags;
134} __packed; 134} __attribute__((packed));
135 135
136struct rds_info_socket { 136struct rds_info_socket {
137 u_int32_t sndbuf; 137 u_int32_t sndbuf;
@@ -141,7 +141,7 @@ struct rds_info_socket {
141 __be16 connected_port; 141 __be16 connected_port;
142 u_int32_t rcvbuf; 142 u_int32_t rcvbuf;
143 u_int64_t inum; 143 u_int64_t inum;
144} __packed; 144} __attribute__((packed));
145 145
146struct rds_info_tcp_socket { 146struct rds_info_tcp_socket {
147 __be32 local_addr; 147 __be32 local_addr;
@@ -153,7 +153,7 @@ struct rds_info_tcp_socket {
153 u_int32_t last_sent_nxt; 153 u_int32_t last_sent_nxt;
154 u_int32_t last_expected_una; 154 u_int32_t last_expected_una;
155 u_int32_t last_seen_una; 155 u_int32_t last_seen_una;
156} __packed; 156} __attribute__((packed));
157 157
158#define RDS_IB_GID_LEN 16 158#define RDS_IB_GID_LEN 16
159struct rds_info_rdma_connection { 159struct rds_info_rdma_connection {