]> 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>
Thu, 17 Apr 2014 15:37:47 +0000 (08:37 -0700)
commit8528325dd11bd0afbd0914ffbf1b0410e9069855
treeefcbaa1f674e8166f36fe2274c9c14e195a30159
parent4243da0ad9206c662b3a3c8ba7a9f4b2b7269d3f
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.