[ofa-general] RE: [PATCH 1/1 v2] librdmacm: add support for create qp expanded (with changelog this time)
Jack Morgenstein
jackm at dev.mellanox.co.il
Sun Aug 3 04:17:34 PDT 2008
On Sunday 03 August 2008 13:36, Ron Livne wrote:
> If I'll eliminate the expanded parameter,
> I'll have to call ibv_create_qp_expanded with create_flags = 0.
> This is not a good idea because it will not be compatible with an older
> kernel.
>
Not so.
In rdma_create_qp_common, just change:
+ qp = expanded ?
+ ibv_create_qp_expanded(pd, qp_init_attr, create_flags) :
+ ibv_create_qp(pd, qp_init_attr);
to
+ qp = create_flags ?
+ ibv_create_qp_expanded(pd, qp_init_attr, create_flags) :
+ ibv_create_qp(pd, qp_init_attr);
(i.e., just use the old ibv_create_qp if there are no create_flags set).
- Jack
More information about the general
mailing list