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
38 38
39#define RDS_IB_ABI_VERSION 0x30139#define RDS_IB_ABI_VERSION 0x301
40 40
41#define SOL_RDS 276
42
41/*43/*
42 * setsockopt/getsockopt for SOL_RDS44 * setsockopt/getsockopt for SOL_RDS
43 */45 */
@@ -48,6 +50,14 @@ · 4 unmodified lines
48#define RDS_RECVERR 550#define RDS_RECVERR 5
49#define RDS_CONG_MONITOR 651#define RDS_CONG_MONITOR 6
50#define RDS_GET_MR_FOR_DEST 752#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)
51 61
52/*62/*
53 * Control message types for SOL_RDS.63 * 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