History

net/smc: support extended GID in SMC-D lgr netlink attribute

Virtual ISM devices introduced in SMCv2.1 requires a 128 bit extended GID vs. the existing ISM 64bit GID. So the 2nd 64 bit of extended GID should be included in SMC-D linkgroup netlink attribute as well.

Wen Gu committed 2 years ago

Commit 01fd1611 parent b40584d4 files · +12 −0Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/smc.h +2 −0
  2. include/uapi/linux/smc_diag.h +2 −0
include/uapi/linux/smc.h+2−0
@@ -160,6 +160,8 @@ enum { · 159 unmodified lines
160160 SMC_NLA_LGR_D_CHID, /* u16 */
161161 SMC_NLA_LGR_D_PAD, /* flag */
162162 SMC_NLA_LGR_D_V2_COMMON, /* nest */
163+ SMC_NLA_LGR_D_EXT_GID, /* u64 */
164+ SMC_NLA_LGR_D_PEER_EXT_GID, /* u64 */
163165 __SMC_NLA_LGR_D_MAX,
164166 SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1
165167 };
include/uapi/linux/smc_diag.h+2−0
@@ -107,6 +107,8 @@ struct smcd_diag_dmbinfo { /* SMC-D Socket internals */ · 106 unmodified lines
107107 __aligned_u64 my_gid; /* My GID */
108108 __aligned_u64 token; /* Token of DMB */
109109 __aligned_u64 peer_token; /* Token of remote DMBE */
110+ __aligned_u64 peer_gid_ext; /* Peer GID (extended part) */
111+ __aligned_u64 my_gid_ext; /* My GID (extended part) */
110112 };
111113
112114 #endif /* _UAPI_SMC_DIAG_H_ */

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