@@ -214,17 +214,15 @@ ucs_status_t uct_rc_iface_query(uct_rc_iface_t *iface,
214214 iface_attr -> iface_addr_len = 0 ;
215215 iface_attr -> ep_addr_len = sizeof (uct_rc_ep_address_t );
216216 iface_attr -> max_conn_priv = 0 ;
217- iface_attr -> cap .flags = UCT_IFACE_FLAG_AM_SHORT |
218- UCT_IFACE_FLAG_AM_BCOPY |
219- UCT_IFACE_FLAG_AM_ZCOPY |
220- UCT_IFACE_FLAG_PUT_SHORT |
221- UCT_IFACE_FLAG_PUT_BCOPY |
222- UCT_IFACE_FLAG_PUT_ZCOPY |
223- UCT_IFACE_FLAG_GET_BCOPY |
224- UCT_IFACE_FLAG_GET_ZCOPY |
225- UCT_IFACE_FLAG_PENDING |
226- UCT_IFACE_FLAG_CONNECT_TO_EP |
227- UCT_IFACE_FLAG_CB_SYNC |
217+ iface_attr -> cap .flags = UCT_IFACE_FLAG_AM_BCOPY |
218+ UCT_IFACE_FLAG_AM_ZCOPY |
219+ UCT_IFACE_FLAG_PUT_BCOPY |
220+ UCT_IFACE_FLAG_PUT_ZCOPY |
221+ UCT_IFACE_FLAG_GET_BCOPY |
222+ UCT_IFACE_FLAG_GET_ZCOPY |
223+ UCT_IFACE_FLAG_PENDING |
224+ UCT_IFACE_FLAG_CONNECT_TO_EP |
225+ UCT_IFACE_FLAG_CB_SYNC |
228226 UCT_IFACE_FLAG_EVENT_SEND_COMP |
229227 UCT_IFACE_FLAG_EVENT_RECV ;
230228
@@ -278,7 +276,7 @@ ucs_status_t uct_rc_iface_query(uct_rc_iface_t *iface,
278276 iface_attr -> cap .get .max_iov = uct_ib_iface_get_max_iov (& iface -> super );
279277
280278 /* AM */
281- iface_attr -> cap .am .max_short = max_inline - sizeof (uct_rc_hdr_t );
279+ iface_attr -> cap .am .max_short = uct_ib_iface_hdr_size ( max_inline , sizeof (uct_rc_hdr_t ) );
282280 iface_attr -> cap .am .max_bcopy = iface -> super .config .seg_size - sizeof (uct_rc_hdr_t );
283281 iface_attr -> cap .am .min_zcopy = 0 ;
284282 iface_attr -> cap .am .max_zcopy = iface -> super .config .seg_size - sizeof (uct_rc_hdr_t );
@@ -291,6 +289,14 @@ ucs_status_t uct_rc_iface_query(uct_rc_iface_t *iface,
291289 /* Tag Offload */
292290 uct_rc_iface_tag_query (iface , iface_attr , max_inline , tag_max_iov );
293291
292+ if (iface_attr -> cap .am .max_short ) {
293+ iface_attr -> cap .flags |= UCT_IFACE_FLAG_AM_SHORT ;
294+ }
295+
296+ if (iface_attr -> cap .put .max_short ) {
297+ iface_attr -> cap .flags |= UCT_IFACE_FLAG_PUT_SHORT ;
298+ }
299+
294300 return UCS_OK ;
295301}
296302
0 commit comments