Lines Matching defs:attr
335 * recv queue. Should not exceed device->attr.max_queue_depth.
454 struct ibv_device_attr attr;
950 num_cqe = spdk_min(num_cqe, device->attr.max_cqe);
959 if (required_num_wr > device->attr.max_cqe) {
961 required_num_wr, device->attr.max_cqe);
1005 qp_init_attr.cap.max_send_sge = spdk_min((uint32_t)device->attr.max_sge, NVMF_DEFAULT_TX_SGE);
1006 qp_init_attr.cap.max_recv_sge = spdk_min((uint32_t)device->attr.max_sge, NVMF_DEFAULT_RX_SGE);
1326 port->device->attr.max_qp_wr, port->device->attr.max_qp_rd_atom);
1327 max_queue_depth = spdk_min(max_queue_depth, port->device->attr.max_qp_wr);
1328 max_read_depth = spdk_min(max_read_depth, port->device->attr.max_qp_init_rd_atom);
1826 if ((device->attr.device_cap_flags & IBV_DEVICE_MEM_MGT_EXTENSIONS) != 0) {
1870 if ((device->attr.device_cap_flags & IBV_DEVICE_MEM_MGT_EXTENSIONS) != 0) {
2534 return device->attr.vendor_id == SPDK_RDMA_RXE_VENDOR_ID_OLD ||
2535 device->attr.vendor_id == SPDK_RDMA_RXE_VENDOR_ID_NEW;
2557 rc = ibv_query_device(device->context, &device->attr);
2565 if ((device->attr.device_cap_flags & IBV_DEVICE_MEM_MGT_EXTENSIONS) == 0) {
2567 SPDK_WARNLOG("but the device with vendor ID %u does not.\n", device->attr.vendor_id);
2580 device->attr.device_cap_flags &= ~(IBV_DEVICE_MEM_MGT_EXTENSIONS);
2829 max_device_sge = spdk_min(max_device_sge, device->attr.max_sge);
4058 if (rtransport->rdma_opts.no_srq == false && device->num_srq < device->attr.max_srq) {
4059 if ((int)rtransport->rdma_opts.max_srq_depth > device->attr.max_srq_wr) {
4061 rtransport->rdma_opts.max_srq_depth, device->context->device->name, device->attr.max_srq_wr);
4063 poller->max_srq_depth = spdk_min((int)rtransport->rdma_opts.max_srq_depth, device->attr.max_srq_wr);
4069 srq_init_attr.srq_init_attr.attr.max_wr = poller->max_srq_depth;
4070 srq_init_attr.srq_init_attr.attr.max_sge = spdk_min(device->attr.max_sge, NVMF_DEFAULT_RX_SGE);