mad.c (3ce60f443b143e649aa26cd3f668d645434647ac) | mad.c (2019d70e919f01c43975b8d9ea2803b890eabba9) |
---|---|
1/* 2 * Copyright (c) 2013-2015, 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: --- 535 unchanged lines hidden (view full) --- 544 props->lmc = out_mad->data[34] & 0x7; 545 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18)); 546 props->sm_sl = out_mad->data[36] & 0xf; 547 props->state = out_mad->data[32] & 0xf; 548 props->phys_state = out_mad->data[33] >> 4; 549 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20)); 550 props->gid_tbl_len = out_mad->data[50]; 551 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg); | 1/* 2 * Copyright (c) 2013-2015, 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: --- 535 unchanged lines hidden (view full) --- 544 props->lmc = out_mad->data[34] & 0x7; 545 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18)); 546 props->sm_sl = out_mad->data[36] & 0xf; 547 props->state = out_mad->data[32] & 0xf; 548 props->phys_state = out_mad->data[33] >> 4; 549 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20)); 550 props->gid_tbl_len = out_mad->data[50]; 551 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg); |
552 props->pkey_tbl_len = dev->port_caps[port - 1].pkey_table_len; | 552 props->pkey_tbl_len = dev->pkey_table_len; |
553 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46)); 554 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48)); 555 props->active_width = out_mad->data[31] & 0xf; 556 props->active_speed = out_mad->data[35] >> 4; 557 props->max_mtu = out_mad->data[41] & 0xf; 558 props->active_mtu = out_mad->data[36] >> 4; 559 props->subnet_timeout = out_mad->data[51] & 0x1f; 560 props->max_vl_num = out_mad->data[37] >> 4; --- 54 unchanged lines hidden --- | 553 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46)); 554 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48)); 555 props->active_width = out_mad->data[31] & 0xf; 556 props->active_speed = out_mad->data[35] >> 4; 557 props->max_mtu = out_mad->data[41] & 0xf; 558 props->active_mtu = out_mad->data[36] >> 4; 559 props->subnet_timeout = out_mad->data[51] & 0x1f; 560 props->max_vl_num = out_mad->data[37] >> 4; --- 54 unchanged lines hidden --- |