public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* Are the PathRecord reserved components really reserved?
@ 2014-08-25  8:44 Vangelis Tasoulas
       [not found] ` <53FAF771.407-S8y2klWGCOFhl2p70BpVqQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Vangelis Tasoulas @ 2014-08-25  8:44 UTC (permalink / raw)
  To: Linux RDMA Mailing List

[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

Hello,

I am looking into the OFED code for the component mask bits of the
PathRecord requests and I need some further explanation.

The IB specification in section "15.2.5.16 PathRecord, table 207
PathRecord" defines the first two components as "Reserved". Each one of
them is 32 bits long and the description of the first one is "Reserved"
while the description of the second reserved component is "Offset for
alignment".

However, in the file "include/rdma/ib_sa.h" where the component mask
bits for the Path Records are defined, the 1st and 2nd component are
combined together under the name IB_SA_PATH_REC_SERVICE_ID.


#define IB_SA_PATH_REC_SERVICE_ID   (IB_SA_COMP_MASK( 0) |\
                                     IB_SA_COMP_MASK( 1))


The same definition exists in the OpenSM code in file
"include/iba/ib_types.h"


/* Path Record Component Masks */
#define  IB_PR_COMPMASK_SERVICEID_MSB     (CL_HTON64(((uint64_t)1)<<0))
#define  IB_PR_COMPMASK_SERVICEID_LSB     (CL_HTON64(((uint64_t)1)<<1))
.....
.....
#define  IB_PR_COMPMASK_SERVICEID (IB_PR_COMPMASK_SERVICEID_MSB | \
                                   IB_PR_COMPMASK_SERVICEID_LSB)


Why are these fields named as "SERVICE_ID"? I would expect something
like IB_SA_PATH_REC_RESERVED_1 and IB_SA_PATH_REC_RESERVED_2 according
to the specs. Are they really reserved or used, and if they are used,
when does this happen?

Vangelis


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-25 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25  8:44 Are the PathRecord reserved components really reserved? Vangelis Tasoulas
     [not found] ` <53FAF771.407-S8y2klWGCOFhl2p70BpVqQ@public.gmane.org>
2014-08-25 14:49   ` Weiny, Ira
     [not found]     ` <2807E5FD2F6FDA4886F6618EAC48510E0CAD282C-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-08-25 20:27       ` Vangelis Tasoulas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox