o15-0.2-1.11: SA response to a SubnAdmGetMulti() containing MultiPathRecord shall have PathRecord attribute ID.
Signed-off-by: Daniel Klein <[email protected]> Signed-off-by: Yevgeny Kliteynik <[email protected]> Signed-off-by: Alex Netes <[email protected]> Signed-off-by: Hal Rosenstock <[email protected]> diff --git a/libvendor/osm_vendor_ibumad.c b/libvendor/osm_vendor_ibumad.c index 63b9594..f0427a3 100644 --- a/libvendor/osm_vendor_ibumad.c +++ b/libvendor/osm_vendor_ibumad.c @@ -415,10 +415,18 @@ static void *umad_receiver(void *p_ptr) * and make sure that attribute ID, attribute * modifier and transaction ID are the same in * request and response. + * + * Exception for o15-0.2-1.11: + * SA response to a SubnAdmGetMulti() containing a + * MultiPathRecord shall have PathRecord attribute ID. */ p_req_mad = osm_madw_get_mad_ptr(p_req_madw); if (PF(ib_mad_is_response(p_req_mad) || - p_mad->attr_id != p_req_mad->attr_id || + (p_mad->attr_id != p_req_mad->attr_id && + !(p_mad->mgmt_class == IB_MCLASS_SUBN_ADM && + p_req_mad->attr_id == + IB_MAD_ATTR_MULTIPATH_RECORD && + p_mad->attr_id == IB_MAD_ATTR_PATH_RECORD)) || p_mad->attr_mod != p_req_mad->attr_mod || p_mad->trans_id != p_req_mad->trans_id)) { OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
