mlnx-ofed-libibverbs-sys 0.0.1

Low-level FFI bindings to the C-library Mellanox OFED libibverbs
// 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_qp_init_attr
{
	pub qp_context: *mut c_void,
	pub send_cq: *mut ibv_cq,
	pub recv_cq: *mut ibv_cq,
	pub srq: *mut ibv_srq,
	pub cap: ibv_qp_cap,
	pub qp_type: ibv_qp_type,
	pub sq_sig_all: c_int,
	pub comp_mask: u32,
	pub pd: *mut ibv_pd,
	pub xrcd: *mut ibv_xrcd,
	pub exp_create_flags: u32,
	pub max_inl_recv: u32,
	pub qpg: ibv_exp_qpg,
	pub max_atomic_arg: u32,
	pub max_inl_send_klms: u32,
	pub res_domain: *mut ibv_exp_res_domain,
	pub rx_hash_conf: *mut ibv_exp_rx_hash_conf,
	pub port_num: u8,
	pub peer_direct_attrs: *mut ibv_exp_peer_direct_attr,
	pub max_tso_header: u16,
	pub associated_qpn: u32,
}

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

impl Debug for ibv_exp_qp_init_attr
{
	#[inline(always)]
	fn fmt(&self, f: &mut Formatter) -> Result
	{
		write!(f, "ibv_exp_qp_init_attr {{ qp_context: {:?}, send_cq: {:?}, recv_cq: {:?}, srq: {:?}, cap: {:?}, qp_type: {:?}, pd: {:?}, xrcd: {:?}, qpg: {:?}, res_domain: {:?}, rx_hash_conf: {:?}, peer_direct_attrs: {:?} }}", self.qp_context, self.send_cq, self.recv_cq, self.srq, self.cap, self.qp_type, self.pd, self.xrcd, self.qpg, self.res_domain, self.rx_hash_conf, self.peer_direct_attrs)
	}
}