provider.c (7731b8bc94e599c9a79e428f3359ff2c34b7576a) provider.c (33023fb85a42b53bf778bc025f9667b582282be4)
1/*
2 * Copyright (c) 2009-2010 Chelsio, Inc. 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:

--- 329 unchanged lines hidden (view full) ---

338 props->fw_ver = dev->rdev.lldi.fw_vers;
339 props->device_cap_flags = dev->device_cap_flags;
340 props->page_size_cap = T4_PAGESIZE_MASK;
341 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor;
342 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device;
343 props->max_mr_size = T4_MAX_MR_SIZE;
344 props->max_qp = dev->rdev.lldi.vr->qp.size / 2;
345 props->max_qp_wr = dev->rdev.hw_queue.t4_max_qp_depth;
1/*
2 * Copyright (c) 2009-2010 Chelsio, Inc. 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:

--- 329 unchanged lines hidden (view full) ---

338 props->fw_ver = dev->rdev.lldi.fw_vers;
339 props->device_cap_flags = dev->device_cap_flags;
340 props->page_size_cap = T4_PAGESIZE_MASK;
341 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor;
342 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device;
343 props->max_mr_size = T4_MAX_MR_SIZE;
344 props->max_qp = dev->rdev.lldi.vr->qp.size / 2;
345 props->max_qp_wr = dev->rdev.hw_queue.t4_max_qp_depth;
346 props->max_sge = T4_MAX_RECV_SGE;
346 props->max_send_sge = min(T4_MAX_SEND_SGE, T4_MAX_WRITE_SGE);
347 props->max_recv_sge = T4_MAX_RECV_SGE;
347 props->max_sge_rd = 1;
348 props->max_res_rd_atom = dev->rdev.lldi.max_ird_adapter;
349 props->max_qp_rd_atom = min(dev->rdev.lldi.max_ordird_qp,
350 c4iw_max_read_depth);
351 props->max_qp_init_rd_atom = props->max_qp_rd_atom;
352 props->max_cq = dev->rdev.lldi.vr->qp.size;
353 props->max_cqe = dev->rdev.hw_queue.t4_max_cq_depth;
354 props->max_mr = c4iw_num_stags(&dev->rdev);

--- 339 unchanged lines hidden ---
348 props->max_sge_rd = 1;
349 props->max_res_rd_atom = dev->rdev.lldi.max_ird_adapter;
350 props->max_qp_rd_atom = min(dev->rdev.lldi.max_ordird_qp,
351 c4iw_max_read_depth);
352 props->max_qp_init_rd_atom = props->max_qp_rd_atom;
353 props->max_cq = dev->rdev.lldi.vr->qp.size;
354 props->max_cqe = dev->rdev.hw_queue.t4_max_cq_depth;
355 props->max_mr = c4iw_num_stags(&dev->rdev);

--- 339 unchanged lines hidden ---