// This file is part of mlnx-ofed. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/mlnx-ofed/master/COPYRIGHT. No part of mlnx-ofed, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2016 The developers of mlnx-ofed. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/mlnx-ofed/master/COPYRIGHT.


#[repr(C)]
pub struct ibv_exp_create_srq
{
	pub hdr: ex_hdr,
	pub comp_mask: __u64,
	pub user_handle: __u64,
	pub srq_type: __u32,
	pub pd_handle: __u32,
	pub max_wr: __u32,
	pub max_sge: __u32,
	pub srq_limit: __u32,
	pub cq_handle: __u32,
	pub xrcd_handle: __u32,
	pub reserved: __u32,
	pub driver_data: __IncompleteArrayField<__u64>,
}

impl Default for ibv_exp_create_srq
{
	#[inline(always)]
	fn default() -> Self
	{
		unsafe { zeroed() }
	}
}

impl Debug for ibv_exp_create_srq
{
	#[inline(always)]
	fn fmt(&self, f: &mut Formatter) -> Result
	{
		write!(f, "ibv_exp_create_srq {{ hdr: {:?}, driver_data: {:?} }}", self.hdr, self.driver_data)
	}
}
