提交 366380a0 编写于 作者: J Jason Gunthorpe

RDMA/mlx4: Fix uABI structure layouts for 32/64 compat

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.

Fixes: 09d208b2 ("IB/mlx4: Add report for RSS capabilities by vendor channel")
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
上级 71e80a47
......@@ -183,6 +183,7 @@ struct mlx4_uverbs_ex_query_device_resp {
__u32 response_length;
__u64 hca_core_clock_offset;
__u32 max_inl_recv_sz;
__u32 reserved;
struct mlx4_ib_rss_caps rss_caps;
struct mlx4_ib_tso_caps tso_caps;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册