History

net/rds: Declare SO_RDS_TRANSPORT and RDS_TRANS_* constants in uapi/linux/rds.h

User space applications that desire to explicitly select the underlying transport for a PF_RDS socket may do so by using the SO_RDS_TRANSPORT socket option at the SOL_RDS level before bind(). The integer argument provided to the socket option would be one of the RDS_TRANS_* values, e.g., RDS_TRANS_TCP. This commit exports the constant values need by such applications via <linux/rds.h>

Sowmini Varadhan committed 11 years ago

Commit a28c2571 parent f16e9d82 files · +10 −5Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/rds.h+10−0
@@ -38,6 +38,8 @@ · 37 unmodified lines
3838
3939 #define RDS_IB_ABI_VERSION 0x301
4040
41+#define SOL_RDS 276
42+
4143 /*
4244 * setsockopt/getsockopt for SOL_RDS
4345 */
@@ -48,6 +50,14 @@ · 4 unmodified lines
4850 #define RDS_RECVERR 5
4951 #define RDS_CONG_MONITOR 6
5052 #define RDS_GET_MR_FOR_DEST 7
53+#define SO_RDS_TRANSPORT 8
54+
55+/* supported values for SO_RDS_TRANSPORT */
56+#define RDS_TRANS_IB 0
57+#define RDS_TRANS_IWARP 1
58+#define RDS_TRANS_TCP 2
59+#define RDS_TRANS_COUNT 3
60+#define RDS_TRANS_NONE (~0)
5161
5262 /*
5363 * Control message types for SOL_RDS.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t