diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-08 00:06:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-08 00:06:28 -0400 |
commit | e2a322a0c8ce3d825e8a56c063ce3f81b719083c (patch) | |
tree | 7d03e7ffef08c3c779734c64bc4d4f6ba649ce2f | |
parent | 6d4c407744dd0338da5d5d76f40dce5adabfb30a (diff) | |
parent | d4f0006a08f52b5320f038780286ef312535fc64 (diff) |
Merge branch 'net-smc-userspace-breakage-fixes'
Eugene Syromiatnikov says:
====================
net/smc: userspace breakage fixes
These two patches correct some userspace-affecting issues introduced
during 4.19 development cycle, specifically:
* New structure "struct smcd_diag_dmbinfo" has been defined in a way
that would lead to different layout of the structure on most 32-bit
ABIs in comparison with layout on 64-bit ABIs;
* One of the commits renamed an UAPI-exposed field name.
Changes since v1:
* Managed not to forget to add --cover-letter.
* Commit ID format in commit message has been changed in accordance
with Sergei Shtylyov's recommendations.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/uapi/linux/smc_diag.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/include/uapi/linux/smc_diag.h b/include/uapi/linux/smc_diag.h index ac9e8c96d9bd..8cb3a6fef553 100644 --- a/include/uapi/linux/smc_diag.h +++ b/include/uapi/linux/smc_diag.h | |||
@@ -18,14 +18,17 @@ struct smc_diag_req { | |||
18 | * on the internal clcsock, and more SMC-related socket data | 18 | * on the internal clcsock, and more SMC-related socket data |
19 | */ | 19 | */ |
20 | struct smc_diag_msg { | 20 | struct smc_diag_msg { |
21 | __u8 diag_family; | 21 | __u8 diag_family; |
22 | __u8 diag_state; | 22 | __u8 diag_state; |
23 | __u8 diag_mode; | 23 | union { |
24 | __u8 diag_shutdown; | 24 | __u8 diag_mode; |
25 | __u8 diag_fallback; /* the old name of the field */ | ||
26 | }; | ||
27 | __u8 diag_shutdown; | ||
25 | struct inet_diag_sockid id; | 28 | struct inet_diag_sockid id; |
26 | 29 | ||
27 | __u32 diag_uid; | 30 | __u32 diag_uid; |
28 | __u64 diag_inode; | 31 | __aligned_u64 diag_inode; |
29 | }; | 32 | }; |
30 | 33 | ||
31 | /* Mode of a connection */ | 34 | /* Mode of a connection */ |
@@ -99,11 +102,11 @@ struct smc_diag_fallback { | |||
99 | }; | 102 | }; |
100 | 103 | ||
101 | struct smcd_diag_dmbinfo { /* SMC-D Socket internals */ | 104 | struct smcd_diag_dmbinfo { /* SMC-D Socket internals */ |
102 | __u32 linkid; /* Link identifier */ | 105 | __u32 linkid; /* Link identifier */ |
103 | __u64 peer_gid; /* Peer GID */ | 106 | __aligned_u64 peer_gid; /* Peer GID */ |
104 | __u64 my_gid; /* My GID */ | 107 | __aligned_u64 my_gid; /* My GID */ |
105 | __u64 token; /* Token of DMB */ | 108 | __aligned_u64 token; /* Token of DMB */ |
106 | __u64 peer_token; /* Token of remote DMBE */ | 109 | __aligned_u64 peer_token; /* Token of remote DMBE */ |
107 | }; | 110 | }; |
108 | 111 | ||
109 | #endif /* _UAPI_SMC_DIAG_H_ */ | 112 | #endif /* _UAPI_SMC_DIAG_H_ */ |