[ofa-general] Re: [RFC 1/1] libmthca: CQ/DMA race on Altix

Michael S. Tsirkin mst at dev.mellanox.co.il
Wed Jul 18 21:58:41 PDT 2007


> Quoting akepner at sgi.com <akepner at sgi.com>:
> Subject: Re: [RFC 1/1] libmthca: CQ/DMA race on Altix
>
> ...
>
> @@ -50,6 +51,14 @@ struct mthca_alloc_pd_resp {
>  	__u32				reserved;
>  };
>  
> +struct mthca_reg_mr_abi_ver_2 {
> +	struct ibv_reg_mr		ibv_cmd;
> +	__u32				mr_attrs;
> +#define MTHCA_MR_DMAFLUSH		0x1 
> +/* flush in-flight DMA on a write to memory region (IA64_SGI_SN2 only) */
> +	__u32				reserved;
> +};
> +
>  struct mthca_create_cq {
>  	struct ibv_create_cq		ibv_cmd;
>  	__u32				lkey;

Aren't there some unused bits in mr_attrs that we can use instead of
breaking the ABI?

-- 
MST



More information about the general mailing list