History

RDMA/mlx5: Fix definition of mlx5_ib_create_qp_resp

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.

Jason Gunthorpe committed 8 years ago

Commit 41d902c1 parent 689a8e32 files · +3 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/mlx5-abi.h+1−0
@@ -335,6 +335,7 @@ struct mlx5_ib_create_qp_rss { · 334 unmodified lines
335 335
336struct mlx5_ib_create_qp_resp {336struct mlx5_ib_create_qp_resp {
337 __u32 bfreg_index;337 __u32 bfreg_index;
338 __u32 reserved;
338};339};
339 340
340struct mlx5_ib_alloc_mw {341struct mlx5_ib_alloc_mw {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t