File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ opal_btl_usnic_post_segment(
80
80
#endif
81
81
82
82
assert (channel_id == USNIC_DATA_CHANNEL );
83
+ assert (channel -> credits > 1 );
83
84
84
85
/* Send the segment */
85
86
ret = fi_send (channel -> ep ,
@@ -135,6 +136,7 @@ opal_btl_usnic_post_ack(
135
136
#endif
136
137
137
138
assert (channel_id == USNIC_PRIORITY_CHANNEL );
139
+ assert (channel -> credits > 1 );
138
140
139
141
ret = fi_send (channel -> ep ,
140
142
sseg -> ss_ptr ,
@@ -241,6 +243,7 @@ opal_btl_usnic_endpoint_send_segment(
241
243
receives its ACK. To find a unique slot in this array, use
242
244
(seq % WINDOW_SIZE). */
243
245
sfi = WINDOW_SIZE_MOD (sseg -> ss_base .us_btl_header -> pkt_seq );
246
+ assert (NULL == endpoint -> endpoint_sent_segs [sfi ]);
244
247
endpoint -> endpoint_sent_segs [sfi ] = sseg ;
245
248
sseg -> ss_ack_pending = true;
246
249
You can’t perform that action at this time.
0 commit comments