main.c (7492052a186b11be024800eabedef25dcb882613) | main.c (33023fb85a42b53bf778bc025f9667b582282be4) |
---|---|
1/* 2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 503 unchanged lines hidden (view full) --- 512 props->vendor_part_id = dev->dev->persist->pdev->device; 513 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); 514 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); 515 516 props->max_mr_size = ~0ull; 517 props->page_size_cap = dev->dev->caps.page_size_cap; 518 props->max_qp = dev->dev->quotas.qp; 519 props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE; | 1/* 2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 503 unchanged lines hidden (view full) --- 512 props->vendor_part_id = dev->dev->persist->pdev->device; 513 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); 514 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); 515 516 props->max_mr_size = ~0ull; 517 props->page_size_cap = dev->dev->caps.page_size_cap; 518 props->max_qp = dev->dev->quotas.qp; 519 props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE; |
520 props->max_sge = min(dev->dev->caps.max_sq_sg, 521 dev->dev->caps.max_rq_sg); | 520 props->max_send_sge = dev->dev->caps.max_sq_sg; 521 props->max_recv_sge = dev->dev->caps.max_rq_sg; |
522 props->max_sge_rd = MLX4_MAX_SGE_RD; 523 props->max_cq = dev->dev->quotas.cq; 524 props->max_cqe = dev->dev->caps.max_cqes; 525 props->max_mr = dev->dev->quotas.mpt; 526 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; 527 props->max_qp_rd_atom = dev->dev->caps.max_qp_dest_rdma; 528 props->max_qp_init_rd_atom = dev->dev->caps.max_qp_init_rdma; 529 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; --- 2905 unchanged lines hidden --- | 522 props->max_sge_rd = MLX4_MAX_SGE_RD; 523 props->max_cq = dev->dev->quotas.cq; 524 props->max_cqe = dev->dev->caps.max_cqes; 525 props->max_mr = dev->dev->quotas.mpt; 526 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; 527 props->max_qp_rd_atom = dev->dev->caps.max_qp_dest_rdma; 528 props->max_qp_init_rd_atom = dev->dev->caps.max_qp_init_rdma; 529 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; --- 2905 unchanged lines hidden --- |