max_inline_data in ibv_rc_pingpong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yishay, Doug,
I've noticed something irregular in ibv_rc_pingpong and I see that you are listed as the maintainers of libibverbs.
It seems that max_inline_data isn't configured prior to invoking ibv_create_qp(), but it is queried directly after.
This means that for a value of zero it will always be zero, or very small, depending on the vendor implementation.
Is there some background I'm missing?

        {
                struct ibv_qp_attr attr;
                struct ibv_qp_init_attr init_attr = {
                        .send_cq = ctx->cq,
                        .recv_cq = ctx->cq,
                        .cap     = {
                                .max_send_wr  = 1,
                                .max_recv_wr  = rx_depth,
                                .max_send_sge = 1,
                                .max_recv_sge = 1
                        },
                        .qp_type = IBV_QPT_RC
                };

                ctx->qp = ibv_create_qp(ctx->pd, &init_attr);
                if (!ctx->qp)  {
                        fprintf(stderr, "Couldn't create QP\n");
                        goto clean_cq;
                }

                ibv_query_qp(ctx->qp, &attr, IBV_QP_CAP, &init_attr);
                if (init_attr.cap.max_inline_data >= size) {
                        ctx->send_flags |= IBV_SEND_INLINE;
                }
        }


Thanks,
Ram

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux