diff options
author | Tony Lu <tonylu@linux.alibaba.com> | 2021-12-28 16:06:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-02 15:07:39 +0300 |
commit | 79d39fc503b43b566feae5bc9a57dfcffdf41bd1 (patch) | |
tree | f85d05a7cd1723eac013b692a79101aa684cb529 /include/uapi/linux/smc_diag.h | |
parent | 0237a3a683e4844ddc52782d83d439d6192e11f9 (diff) | |
download | linux-79d39fc503b43b566feae5bc9a57dfcffdf41bd1.tar.xz |
net/smc: Add netlink net namespace support
This adds net namespace ID to diag of linkgroup, helps us to distinguish
different namespaces, and net_cookie is unique in the whole system.
Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/smc_diag.h')
-rw-r--r-- | include/uapi/linux/smc_diag.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/uapi/linux/smc_diag.h b/include/uapi/linux/smc_diag.h index 8cb3a6fef553..c7008d87f1a4 100644 --- a/include/uapi/linux/smc_diag.h +++ b/include/uapi/linux/smc_diag.h @@ -84,11 +84,12 @@ struct smc_diag_conninfo { /* SMC_DIAG_LINKINFO */ struct smc_diag_linkinfo { - __u8 link_id; /* link identifier */ - __u8 ibname[IB_DEVICE_NAME_MAX]; /* name of the RDMA device */ - __u8 ibport; /* RDMA device port number */ - __u8 gid[40]; /* local GID */ - __u8 peer_gid[40]; /* peer GID */ + __u8 link_id; /* link identifier */ + __u8 ibname[IB_DEVICE_NAME_MAX]; /* name of the RDMA device */ + __u8 ibport; /* RDMA device port number */ + __u8 gid[40]; /* local GID */ + __u8 peer_gid[40]; /* peer GID */ + __aligned_u64 net_cookie; /* RDMA device net namespace */ }; struct smc_diag_lgrinfo { |