linux-rdma / perftest

Infiniband Verbs Performance Tests
Other
536 stars 273 forks source link

Perftest: Fix verification of max_inline_data for *_create_qp_ex() #178

Closed HelloTcc closed 1 year ago

HelloTcc commented 1 year ago

As described in the link, the ibv_create_qp_ex returns the actual QP value via qp_init_attr_ex: https://github.com/linux-rdma/rdma-core/blob/master/libibverbs/man/ibv_create_qp_ex.3

Currently, qp_init_attr.cap.max_inline_data is used for validation both in _create_qp() and _create_qp_ex(). But actually, when entering the create_qp_ex path, the variable qp_init_attr is not used. So the current check for the *_create_qp_ex() branch is meaningless.

The qp_init_attr_ex.cap.max_inline_data is used to check the max_inline_data in *_create_qp_ex() path in this patch. And related printing error has also been fixed.

Fixes: 13f71777e6f0 ("Added new post_send API usage for RC,UC,UD,XRC") Signed-off-by: Chengchang Tang tangchengchang@huawei.com

HassanKhadour commented 1 year ago

Hi HelloTcc, thanks for your contribution!