mainline inclusion
commit ba4580a6c4f16ab7791e4d809eda91d586c1f04f
category: bugfix
bugzilla: https://gitee.com/src-openeuler/perftest/issues/IBGXBU
Reference: 8ff29c1603
----------------------------
When there are several network interface with different subnet address,
perftest tools will always choose default route even I add --source_ip
option to ask perftest to bind an interface.
I found that there are two options that use the same name "--source_ip".
Therefore, change --source_ip to --bind_source_ip to fix init connection
establishment with specific interface.
Signed-off-by: Guofeng Yue <yueguofeng@h-partners.com>
(cherry picked from commit 7fa54f81bfd69faf7d7aac57311ca0ea0063aaf7)
The previous TD lock-free patch introduced ibv_create_cq_ex() to
perftest, but it breaks the provider devices which do not support
this API yet. For these devices calling this API leads to an errno
of EOPNOTSUPP. So add a check of errno, and if it is EOPNOTSUPP,
use ibv_create_cq() as a fallback.
Fixes: b6f957f ("Perftest: Add support for TD lock-free mode")
(cherry picked from commit c6e2261f2d5be0856a7e2be14ae794a0ef8649df)
When users manually specifies use_srq in perftest command, the rx_depth will
be checked.
If rx_depth is less than the number of qps, the process will throw an error
and exit.
Url: https://github.com/linux-rdma/perftest/commit/lc358f240129f686ebd616a8b2a75f1561846c6c
Signed-off-by:Xinghai Cen <cenxinghai@partners.com>
(cherry picked from commit 662ad4a698723579fb79aaf6a341040bfbefeac1)
This commit replace current patches with the community version patches
to reduce the workload of maintaining perftest in the future.
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Devices which are not in the device list does not support new io
(ibv_wr_xx).
Add patch to support the ibv_wr_xx() API test for hns roce.
These patches also set a correct max inline size for hns.
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>