ss<<"Failed to create queue pair for device '"<<getContext().getDeviceName()<<"', errno = "<<strerror(errno);
ss<<"Failed to create queue pair for device '"<<getContext().getDeviceName()<<"': ";
if(errno==EINVAL)
{
ss<<"Invalid pd, send_cq, recv_cq, srq or invalid value provided in max_send_wr, max_recv_wr, max_send_sge, max_recv_sge or in max_inline_data, "<<strerror(errno)<<"("<<errno<<")";
}
elseif(errno==ENOMEM)
{
ss<<"Not enough resources to complete this operation, "<<strerror(errno)<<"("<<errno<<")";
}
elseif(errno==ENOSYS)
{
ss<<"QP with this Transport Service Type isn't supported by this RDMA device, "<<strerror(errno)<<"("<<errno<<")";
}
elseif(errno==EPERM)
{
ss<<"Not enough permissions to create a QP with this Transport Service Type, "<<strerror(errno)<<"("<<errno<<")";