]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Expand definition of target SGE
authorSean Hefty <sean.hefty@intel.com>
Sun, 21 Oct 2012 06:43:13 +0000 (23:43 -0700)
committerSean Hefty <sean.hefty@intel.com>
Sun, 21 Oct 2012 06:43:13 +0000 (23:43 -0700)
commitdc7ee3e330888f8043317c1af6ff32f7c8e6012d
tree134799972a9b123f7a629b2a58b8f87a86ed1773
parent7b6ff5c4894f54b221d877adcd709795dffb2fe9
rsocket: Expand definition of target SGE

During connection establishment, rsocket exchanges a
target SGE.  The target SGE contains the address, rkey,
and length of the target SGL.  The target SGL is the
location where rsocket publishes data buffers at the
remote peer.

The length contained in the target SGE is the number of
entries in the target SGL, which is currently set to 2.
Divide the length field into 3 separate values.

bits 31:16 - reserved
bits 15:8  - use for direct data placement algorithm
bits 7:0   - use for target SGL size

Bits 15 and 7 are used as scaling factors.  If set, then
the size specified in the corresponding lower bits is
multiplied by 128.

Backwards compatibility is maintained, since we never use
a value greater than 2 anyway.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>