[openib-general] can i post a send request with 0 bytes with the inline bit enabled?

Dotan Barak dotanb at mellanox.co.il
Mon Nov 21 23:58:21 PST 2005


> 
> 
> > i post a SR using the ibv_send_wr.
> > 
> > in the struct ibv_send_wr:
> > 	num_sge <-- 0
> > 	i don't put any value in sg_list because no one should check
> > this value ...
> 
> Is the error reported by the return code from ibv_post_send() or 
> is it in a work completion? What is the error code?
> 
> Have you followed the code path from ibv_post_send() down through the 
> mthca library to make sure that an sqe list of size 0 is handled 
> correctly?

i can post the send request without any problems, but i get the
following completion with error:

local QP operation err (QPN 8a0406, WQE @ 00000002, CQN 9d0084, index 0)
  [ 0] 008a0406
  [ 4] 00000000
  [ 8] 00000000
  [ c] 00000000
  [10] 02700000
  [14] 00000000
  [18] 00000002
  [1c] ff000000> 

i looked into the code of the mthca library:

in regular post (without inline) with sge list of size 0: the variables
wqe and size are not being changed
in post with inline enabled and with sge list of size 0: the variables
wqe and size were changed:
wqe += sizeof(struct mthca_inline_seg) - the size is 4
size += 1

Dotan



More information about the general mailing list