]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Dedicate a fixed number of SQEs for control messages
authorSean Hefty <sean.hefty@intel.com>
Thu, 17 Apr 2014 15:37:47 +0000 (08:37 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 30 Apr 2014 03:12:22 +0000 (20:12 -0700)
commit5ac6f3eab852606575f9affa515ec77b978a001c
tree3986bbc00f7e9396ea8f940c8d5550b241f203da
parentd62a52590741da993c5ac3c39c82601c273175d9
rsocket: Dedicate a fixed number of SQEs for control messages

The number of SQEs allocated for control messages is set
to 1 of 2 constant values (either 4 or 2).  A default
value is used unless the size of the SQ is below a certain
threshold (16 entries).  This results in additional code
complexity, and it is highly unlikely that the SQ would
ever be allocated smaller than 16 entries.

Simplify the code to use a single constant value for the
number of SQEs allocated for control messages.  This will
also help in subsequent patches that will need to deal
with HCAs that do not support inline data.

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