rss_caps in struct mlx4_uverbs_ex_query_device_resp is misaligned on 32 bit compared to 64 bit, add explicit padding. The rss caps were introduced recently and are very rarely used in user space, mainly for DPDK. We don't expect there to be a real 32 bit user, so this change is done without compat considerations.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -183,6 +183,7 @@ struct mlx4_uverbs_ex_query_device_resp { · 182 unmodified lines | ||
| 183 | 183 | __u32 response_length; |
| 184 | 184 | __u64 hca_core_clock_offset; |
| 185 | 185 | __u32 max_inl_recv_sz; |
| 186 | + __u32 reserved; | |
| 186 | 187 | struct mlx4_ib_rss_caps rss_caps; |
| 187 | 188 | struct mlx4_ib_tso_caps tso_caps; |
| 188 | 189 | }; |