History

RDMA/mlx4: Fix create qp command alignment

Avoid extra padding by replacing the order of inl_recv_sz and reserved, otherwise 'mlx4_ib_create_qp' structure might be larger than legacy user input leading to copy of some garbage data from the user space buffer.

Maor Gottlieb committed 9 years ago

Commit 55f24671 parent fba02e61 file · +1 −1Browse files

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

Unified · Split

include/uapi/rdma/mlx4-abi.h+1−1
@@ -111,8 +111,8 @@ struct mlx4_ib_create_qp { · 110 unmodified lines
111 __u8 log_sq_bb_count;111 __u8 log_sq_bb_count;
112 __u8 log_sq_stride;112 __u8 log_sq_stride;
113 __u8 sq_no_prefetch;113 __u8 sq_no_prefetch;
114 __u32 inl_recv_sz;
115 __u8 reserved;114 __u8 reserved;
115 __u32 inl_recv_sz;
116};116};
117 117
118struct mlx4_ib_create_wq {118struct mlx4_ib_create_wq {

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