[openib-general] Re: openIB gen2 user space verbs API

Michael S. Tsirkin mst at mellanox.co.il
Sat Apr 16 10:23:03 PDT 2005


Quoting r. Roland Dreier <roland at topspin.com>:
> Subject: Re: openIB gen2 user space verbs API
> 
>     Sayantan> In VAPI, the query QP is used to find the inline size.
> 
>     Sayantan> Is there another way to find out the inline size in Gen2
>     Sayantan> verbs?
> 
> It's not implemented yet, but I would have ibv_create_qp():
> 
> struct ibv_qp *ibv_create_qp(struct ibv_pd *pd,
> 			     struct ibv_qp_init_attr *qp_init_attr);
> 
> to pass the max inline size back in the qp_init_attr->qp_cap.max_inline_data
> member.
> 
> I'll code this up on Monday, it's pretty trivial.
> 
>  - R.

An application would need to know what values is it legal to pass to
create_qp.
Maybe it makes sence to implement something like query_hca, and let
it return the maximum legal value?

-- 
MST - Michael S. Tsirkin



More information about the general mailing list