@@ -97,21 +97,6 @@ static inline void mca_pml_ob1_cid_hdr_prepare (mca_pml_ob1_cid_hdr_t *hdr, ompi
97
97
hdr -> hdr_src = ompi_comm_rank (comm );
98
98
}
99
99
100
- #define MCA_PML_OB1_EXT_CID_HDR_HTON (h ) \
101
- do { \
102
- MCA_PML_OB1_COMMON_HDR_HTON((h).hdr_common); \
103
- (h).hdr_src_comm_index = htons((h).hdr_src_comm_index); \
104
- ompi_comm_cid_hton(&(h).hdr_cid); \
105
- } while (0)
106
-
107
- #define MCA_PML_OB1_EXT_CID_HDR_NTOH (h ) \
108
- do { \
109
- MCA_PML_OB1_COMMON_HDR_NTOH((h).hdr_common); \
110
- (h).hdr_src_comm_index = ntonh((h).hdr_src_comm_index); \
111
- ompi_comm_cid_ntoh(&(h).hdr_cid); \
112
- } while (0)
113
-
114
-
115
100
/**
116
101
* Header definition for the first fragment, contains the
117
102
* attributes required to match the corresponding posted receive.
@@ -166,6 +151,24 @@ do { \
166
151
(h).hdr_seq = htons((h).hdr_seq); \
167
152
} while (0)
168
153
154
+ #define MCA_PML_OB1_EXT_MATCH_HDR_NTOH (h ) \
155
+ do {\
156
+ MCA_PML_OB1_COMMON_HDR_NTOH((h).hdr_common); \
157
+ (h).hdr_cid.cid_base = ntoh64((h).hdr_cid.cid_base); \
158
+ (h).hdr_cid.cid_sub.u64 = ntoh64((h).hdr_cid.cid_sub.u64); \
159
+ (h).hdr_src_comm_index = ntohs((h).hdr_src_comm_index); \
160
+ (h).hdr_src = ntohl((h).hdr_src); \
161
+ } while (0)
162
+
163
+ #define MCA_PML_OB1_EXT_MATCH_HDR_HTON (h ) \
164
+ do {\
165
+ MCA_PML_OB1_COMMON_HDR_HTON((h).hdr_common); \
166
+ (h).hdr_cid.cid_base = hton64((h).hdr_cid.cid_base); \
167
+ (h).hdr_cid.cid_sub.u64 = hton64((h).hdr_cid.cid_sub.u64); \
168
+ (h).hdr_src_comm_index = htons((h).hdr_src_comm_index); \
169
+ (h).hdr_src = htonl((h).hdr_src); \
170
+ } while (0)
171
+
169
172
struct mca_pml_ob1_ext_match_hdr_t {
170
173
mca_pml_ob1_cid_hdr_t hdr_ext_cid ;
171
174
@@ -531,7 +534,7 @@ ob1_hdr_ntoh(mca_pml_ob1_hdr_t *hdr, const uint8_t hdr_type)
531
534
532
535
MCA_PML_OB1_EXT_MATCH_HDR_NTOH (hdr -> hdr_cid );
533
536
/* now swap the real header */
534
- ob1_hdr_ntoh (next_hdr , hext_hdr -> hdr_common .hdr_type );
537
+ ob1_hdr_ntoh (next_hdr , next_hdr -> hdr_common .hdr_type );
535
538
break ;
536
539
}
537
540
default :
@@ -586,7 +589,7 @@ ob1_hdr_hton_intr(mca_pml_ob1_hdr_t *hdr, const uint8_t hdr_type,
586
589
587
590
MCA_PML_OB1_EXT_MATCH_HDR_HTON (hdr -> hdr_cid );
588
591
/* now swap the real header */
589
- ob1_hdr_hton (next_hdr , hext_hdr -> hdr_common .hdr_type , proc );
592
+ ob1_hdr_hton (next_hdr , next_hdr -> hdr_common .hdr_type , proc );
590
593
break ;
591
594
}
592
595
default :
0 commit comments