[ofa-general] ***SPAM*** [PATCH 1/3 v2] libibverbs : add new verbs: create_qp_expanded

Jack Morgenstein jackm at dev.mellanox.co.il
Tue Jul 22 00:09:30 PDT 2008


On Monday 21 July 2008 23:25, ronli at voltaire.com wrote:
> +struct ibv_create_qp_expanded {
> +	__u32 command;
> +	__u16 in_words;
> +	__u16 out_words;
> +	__u64 response;
> +	__u64 user_handle;
> +	__u32 pd_handle;
> +	__u32 send_cq_handle;
> +	__u32 recv_cq_handle;
> +	__u32 srq_handle;
> +	__u32 max_send_wr;
> +	__u32 max_recv_wr;
> +	__u32 max_send_sge;
> +	__u32 max_recv_sge;
> +	__u32 max_inline_data;
> +	__u8  sq_sig_all;
> +	__u8  qp_type;
> +	__u8  is_srq;


> +	__u8  create_flags;
should be:
	__u8 reserved;
	__u32 create_flags;
	__u32 reserved1;

The reserved1 field is needed for the proper alignment of the u64 driver_data field
in all situations.

> +	__u64 driver_data[0];
> +};
> +

- Jack



More information about the general mailing list