[ofa-general] Re: [PATCH] libibverbs/man: clarify GRH bytes offset in wc

Or Gerlitz ogerlitz at voltaire.com
Sat Aug 4 22:32:42 PDT 2007


On Sun, 5 Aug 2007, Or Gerlitz wrote:
> The man page of ibv_poll_cq says that if the IBV_WC_GRH bit is set in the
> work completion flag then GRH is present. I was wrongly thinking that only if
> the bit is set, the app data starts after 40 bytes offset, which is wrong.
> This patch clarifies this.
>
> Also, what about the inline related patch, have you applied it?

I have change the patch to make it clear that this relates only to UD QPs

Or.

------

Clarify that even when IBV_WC_GRH bit is not set in the wc flags, the
actual data starts at offset 40 from the posted receive buffer start.

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

--- libibverbs.orig/man/ibv_poll_cq.3	2007-06-21 17:39:11.000000000 +0300
+++ libibverbs/man/ibv_poll_cq.3	2007-08-05 08:30:29.000000000 +0300
@@ -69,6 +69,9 @@ The user should consume work completions
 overrun from occurrence.  In case of a CQ overrun, the async event
 .B IBV_EVENT_CQ_ERR
 will be triggered, and the CQ cannot be used.
+.PP
+Note that if the completion originated from UD QP, even if the IBV_WC_GRH bit not set,
+the data starts at offset 40 from the posted receive buffer start
 .SH "SEE ALSO"
 .BR ibv_post_send (3),
 .BR ibv_post_recv (3)



More information about the general mailing list