[openib-general] IPoIB completion handler

Hal Rosenstock halr at voltaire.com
Tue Jan 11 11:32:20 PST 2005


Hi Roland,

I have a couple of questions on the IPoIB completion handler:

Why key off bit in wc.wr_id rather than use wc.opcode to determine where
the completed operation was a receive or transmit ?

Also, when wc.status != success, wr_id cannot be trusted but is still
used to determine operation type (receive/transmit) and more importantly
the index into transmit/receive ring. Can't the index be determined
based on rotating around the rings based on the number of receive or
transmit completions "seen" without using the wr_id ? Are there other
better ways of doing this ?

Thanks.

-- Hal





More information about the general mailing list