]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Modify when control messages are available
authorSean Hefty <sean.hefty@intel.com>
Thu, 17 Apr 2014 05:33:38 +0000 (22:33 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 30 Apr 2014 03:12:22 +0000 (20:12 -0700)
commitdfb5886db5975d209be6b31656c95b0d9c608195
treecfb4e06d73107deeb818771d285c201b7e0eb692
parent5ac6f3eab852606575f9affa515ec77b978a001c
rsocket: Modify when control messages are available

Rsockets currently tracks how many control messages (i.e.
entries in the send queue) that are available using a
single ctrl_avail counter.  Seems simple enough.

However, control messages currently require the use of
inline data.  In order to support control messages that
do not use inline data, we need to associate each
control message with a specific data buffer.  This will
become easier to manage if we modify how we track when
control messages are available.

We replace the single ctrl_avail counter with two new
counters.  The new counters conceptually treat control
messages as if each message had its own sequence number.
The sequence number will then be able to correspond to
a specific data buffer in a follow up patch.

ctrl_seqno will be used to indicate the current control
message being sent.  ctrl_max_seqno will track the
highest control message that may be sent.

A side effect of this change is that we will be able to
see how many control messages have been sent.  This also
separates the updating of the control count on the
sending  side, versus the receiving side.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/rsocket.c