This structure is pushed down the ex and the non-ex path, so it needs to be aligned to 8 bytes to go through ex without implicit padding. Old user space will provide 4 bytes of resp on !ex and 8 bytes on ex, so take the approach of just copying the minimum length. New user space will consistently provide 8 bytes in both cases.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -335,6 +335,7 @@ struct mlx5_ib_create_qp_rss { · 334 unmodified lines | ||
| 335 | 335 | |
| 336 | 336 | struct mlx5_ib_create_qp_resp { |
| 337 | 337 | __u32 bfreg_index; |
| 338 | + __u32 reserved; | |
| 338 | 339 | }; |
| 339 | 340 | |
| 340 | 341 | struct mlx5_ib_alloc_mw { |