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. Signed-off-by: Wen Gu <guwen@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -160,6 +160,8 @@ enum {
|
||||
SMC_NLA_LGR_D_CHID, /* u16 */
|
||||
SMC_NLA_LGR_D_PAD, /* flag */
|
||||
SMC_NLA_LGR_D_V2_COMMON, /* nest */
|
||||
SMC_NLA_LGR_D_EXT_GID, /* u64 */
|
||||
SMC_NLA_LGR_D_PEER_EXT_GID, /* u64 */
|
||||
__SMC_NLA_LGR_D_MAX,
|
||||
SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1
|
||||
};
|
||||
|
||||
@@ -107,6 +107,8 @@ struct smcd_diag_dmbinfo { /* SMC-D Socket internals */
|
||||
__aligned_u64 my_gid; /* My GID */
|
||||
__aligned_u64 token; /* Token of DMB */
|
||||
__aligned_u64 peer_token; /* Token of remote DMBE */
|
||||
__aligned_u64 peer_gid_ext; /* Peer GID (extended part) */
|
||||
__aligned_u64 my_gid_ext; /* My GID (extended part) */
|
||||
};
|
||||
|
||||
#endif /* _UAPI_SMC_DIAG_H_ */
|
||||
|
||||
Reference in New Issue
Block a user