cm.c (094619449a16672f9815964e1ad39e11ff84ae2c) | cm.c (e7d087fce63fada387afcc6c31a2eaf81452baee) |
---|---|
1/* 2 * Copyright (c) 2012 Mellanox Technologies. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 279 unchanged lines hidden (view full) --- 288int mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, 289 struct ib_mad *mad) 290{ 291 struct id_map_entry *id; 292 u32 sl_cm_id; 293 int pv_cm_id = -1; 294 295 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || | 1/* 2 * Copyright (c) 2012 Mellanox Technologies. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 279 unchanged lines hidden (view full) --- 288int mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, 289 struct ib_mad *mad) 290{ 291 struct id_map_entry *id; 292 u32 sl_cm_id; 293 int pv_cm_id = -1; 294 295 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || |
296 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || 297 mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { | 296 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || 297 mad->mad_hdr.attr_id == CM_MRA_ATTR_ID || 298 mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { |
298 sl_cm_id = get_local_comm_id(mad); 299 id = id_map_get(ibdev, &pv_cm_id, slave_id, sl_cm_id); 300 if (id) 301 goto cont; 302 id = id_map_alloc(ibdev, slave_id, sl_cm_id); 303 if (IS_ERR(id)) { 304 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n", 305 __func__, slave_id, sl_cm_id); --- 143 unchanged lines hidden --- | 299 sl_cm_id = get_local_comm_id(mad); 300 id = id_map_get(ibdev, &pv_cm_id, slave_id, sl_cm_id); 301 if (id) 302 goto cont; 303 id = id_map_alloc(ibdev, slave_id, sl_cm_id); 304 if (IS_ERR(id)) { 305 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n", 306 __func__, slave_id, sl_cm_id); --- 143 unchanged lines hidden --- |