| /spdk/test/nvme/simple_copy/ |
| H A D | simple_copy.c | 35 static void cleanup(struct simple_copy_context *context); 99 struct simple_copy_context *context = arg; in write_complete() local 101 context->writes_completed++; in write_complete() 105 context->error++; in write_complete() 113 struct simple_copy_context *context = arg; in read_complete() local 114 struct ns_entry *ns_entry = context->ns_entry; in read_complete() 119 context->reads_completed++; in read_complete() 120 context->error++; in read_complete() 124 rc = memcmp(context->write_bufs[context in read_complete() 136 struct simple_copy_context *context = arg; simple_copy_complete() local 157 struct simple_copy_context context; simple_copy_test() local 353 cleanup(struct simple_copy_context * context) cleanup() argument [all...] |
| /spdk/test/unit/lib/rdma/common.c/ |
| H A D | common_ut.c | 26 struct ibv_context *context; member 52 ctx_list[i++] = ut_dev->context; in rdma_get_devices() 71 ibv_alloc_pd(struct ibv_context *context) in ibv_alloc_pd() argument 77 if (ut_dev->context == context && !ut_dev->removed) { in ibv_alloc_pd() 89 pd->context = context; in ibv_alloc_pd() 103 ut_rdma_add_dev(struct ibv_context *context) in ut_rdma_add_dev() argument 112 ut_dev->context = context; in ut_rdma_add_dev() 126 _rdma_get_dev(struct ibv_context *context) in _rdma_get_dev() argument 131 if (dev->context == context) { in _rdma_get_dev() 158 pd2 = spdk_rdma_utils_get_pd(ut_dev2->context); in test_spdk_rdma_pd() [all …]
|
| /spdk/python/spdk/sma/ |
| H A D | sma.py | 29 def wrapper(self, request, context): argument 31 return f(self, request, context) 66 def CreateDevice(self, request, context): argument 84 context.set_details(ex.message) 85 context.set_code(ex.code) 88 context.set_details('Method is not implemented by selected device type') 89 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 93 def DeleteDevice(self, request, context): argument 108 context.set_details(ex.message) 109 context.set_code(ex.code) [all …]
|
| /spdk/module/bdev/iscsi/ |
| H A D | bdev_iscsi.c | 51 static void bdev_iscsi_readcapacity16(struct iscsi_context *context, struct bdev_iscsi_lun *lun); 70 struct iscsi_context *context; member 93 struct iscsi_context *context; member 152 iscsi_destroy_context(lun->context); in _iscsi_free_lun() 169 iscsi_destroy_context(req->context); in _bdev_iscsi_conn_req_free() 261 bdev_iscsi_command_cb(struct iscsi_context *context, int status, void *_task, void *_iscsi_io) in bdev_iscsi_command_cb() argument 273 bdev_iscsi_readcapacity16(context, iscsi_io->lun); in bdev_iscsi_command_cb() 312 bdev_iscsi_readcapacity16_cb(struct iscsi_context *context, int status, void *_task, in bdev_iscsi_readcapacity16_cb() argument 322 SPDK_ERRLOG("iSCSI error: %s\n", iscsi_get_error(context)); in bdev_iscsi_readcapacity16_cb() 344 bdev_iscsi_readcapacity16(struct iscsi_context *context, struct bdev_iscsi_lun *lun) in bdev_iscsi_readcapacity16() argument [all …]
|
| /spdk/lib/rdma_utils/ |
| H A D | rdma_utils.c | 21 struct ibv_context *context; 133 if (pd->context->device->transport_type == IBV_TRANSPORT_IWARP) { in spdk_rdma_utils_create_mem_map() 237 rdma_add_dev(struct ibv_context *context) in rdma_add_dev() 247 dev->pd = ibv_alloc_pd(context); in rdma_add_dev() 254 dev->context = context; in rdma_add_dev() 327 * If a context exists only in the new array, create a device for it, in rdma_sync_dev_list() 328 * or if a context exists only in the old array, try removing the in rdma_sync_dev_list() 349 if (dev->context == g_ctx_list[j]) { in rdma_sync_dev_list() 374 spdk_rdma_utils_get_pd(struct ibv_context *context) in spdk_rdma_utils_get_pd() 19 struct ibv_context *context; global() member 235 rdma_add_dev(struct ibv_context * context) rdma_add_dev() argument 372 spdk_rdma_utils_get_pd(struct ibv_context * context) spdk_rdma_utils_get_pd() argument [all...] |
| /spdk/lib/mlx5/ |
| H A D | mlx5_crypto.c | 48 struct ibv_context *context; in mlx5_crypto_devs_free() 181 SPDK_ERRLOG("Failed to get VPORT context for device %s. Assuming ROCE is disabled\n", in spdk_mlx5_crypto_devs_get() 243 spdk_mlx5_device_query_caps(struct ibv_context *context, struct spdk_mlx5_device_caps *caps) in spdk_mlx5_crypto_keytag_create() 254 rc = mlx5dv_devx_general_cmd(context, in, sizeof(in), out, sizeof(out)); in spdk_mlx5_crypto_keytag_create() 281 rc = mlx5dv_devx_general_cmd(context, in, sizeof(in), out, sizeof(out)); in spdk_mlx5_crypto_keytag_create() 358 dek->devx_obj = mlx5dv_devx_obj_create(pd->context, in, sizeof(in), out, sizeof(out)); in mlx5_crypto_get_dek_by_pd() 480 SPDK_ERRLOG("Failed to create DEK on dev %s, rc %d\n", pd->context->device->name, rc); 486 SPDK_ERRLOG("Failed to query DEK on dev %s, rc %d\n", pd->context->device->name, rc); 490 SPDK_ERRLOG("DEK on dev %s in bad state %d, oapque %"PRIu64"\n", pd->context->device->name, 497 dek->context 37 struct ibv_context *context; global() member [all...] |
| /spdk/module/bdev/nvme/ |
| H A D | bdev_nvme_rpc.c | 1428 nvme_health_info_cleanup(struct spdk_nvme_health_info_context *context, bool response) in free_rpc_get_controller_health_info() 1431 spdk_jsonrpc_send_error_response(context->request, SPDK_JSONRPC_ERROR_INTERNAL_ERROR, 1435 free(context); 1443 struct spdk_nvme_health_info_context *context = cb_arg; in nvme_health_info_cleanup() 1444 struct spdk_jsonrpc_request *request = context->request; in nvme_health_info_cleanup() 1446 struct spdk_nvme_ctrlr *ctrlr = context->ctrlr; 1452 nvme_health_info_cleanup(context, true); in get_health_log_page_completion() 1458 nvme_health_info_cleanup(context, true); in get_health_log_page_completion() 1464 health_page = &(context->health_page); in get_health_log_page_completion() 1517 nvme_health_info_cleanup(context, fals in get_health_log_page_completion() 1436 nvme_health_info_cleanup(struct spdk_nvme_health_info_context * context,bool response) nvme_health_info_cleanup() argument 1451 struct spdk_nvme_health_info_context *context = cb_arg; get_health_log_page_completion() local 1529 get_health_log_page(struct spdk_nvme_health_info_context * context) get_health_log_page() argument 1545 struct spdk_nvme_health_info_context *context = cb_arg; get_temperature_threshold_feature_completion() local 1556 get_temperature_threshold_feature(struct spdk_nvme_health_info_context * context) get_temperature_threshold_feature() argument 1570 struct spdk_nvme_health_info_context *context; get_controller_health_info() local [all...] |
| /spdk/module/accel/mlx5/ |
| H A D | accel_mlx5.c | 59 struct ibv_context *context; 856 SPDK_DEBUGLOG(accel_mlx5, "no reqs in pool, dev %s\n", dev->dev_ctx->context->device->name); in accel_mlx5_qp_create() 862 SPDK_DEBUGLOG(accel_mlx5, "dev %s qp %p is full\n", dev->dev_ctx->context->device->name, in accel_mlx5_qp_create() 1518 dev->dev_ctx->context->device->name); 1524 SPDK_DEBUGLOG(accel_mlx5, "no reqs in psv pool, dev %s\n", dev->dev_ctx->context->device->name); 1692 SPDK_DEBUGLOG(accel_mlx5, "dev %s qp %p is full\n", qp->dev->dev_ctx->context->device->name, 2341 dev->dev_ctx->context->device->name); 2430 SPDK_ERRLOG("Error %"PRId64" on CQ, dev %s\n", rc, dev->dev_ctx->context->device->name); 2574 SPDK_ERRLOG("Failed to get mkey pool channel, dev %s\n", dev_ctx->context->device->name); 2584 SPDK_ERRLOG("Failed to get crypto mkey pool channel, dev %s\n", dev_ctx->context 40 struct ibv_context *context; global() member [all...] |
| /spdk/test/unit/lib/nvmf/transport.c/ |
| H A D | transport_ut.c | 47 struct rdma_cm_id **id, void *context, 61 DEFINE_STUB(ibv_query_device, int, (struct ibv_context *context, 63 DEFINE_STUB(ibv_alloc_pd, struct ibv_pd *, (struct ibv_context *context), NULL); 65 DEFINE_STUB(ibv_get_async_event, int, (struct ibv_context *context, struct ibv_async_event *event), 73 DEFINE_STUB(ibv_create_cq, struct ibv_cq *, (struct ibv_context *context, int cqe,
|
| /spdk/lib/nvmf/ |
| H A D | rdma.c | 455 struct ibv_context *context; 954 if (device->context->device->transport_type == IBV_TRANSPORT_IWARP) { in nvmf_rdma_resize_cq() 1307 port = event->listen_id->context; in nvmf_rdma_connect() 1387 event->id->context = &rqpair->qpair; in nvmf_rdma_connect() 2544 create_ib_device(struct spdk_nvmf_rdma_transport *rtransport, struct ibv_context *context, in create_ib_device() 2556 device->context = context; in create_ib_device() 2557 rc = ibv_query_device(device->context, &device->attr); in create_ib_device() 2584 /* set up device context async ev fd as NON_BLOCKING */ in create_ib_device() 2585 flag = fcntl(device->context in create_ib_device() 456 struct ibv_context *context; global() member 2502 create_ib_device(struct spdk_nvmf_rdma_transport * rtransport,struct ibv_context * context,struct spdk_nvmf_rdma_device ** new_device) create_ib_device() argument 3181 nvmf_rdma_find_ib_device(struct spdk_nvmf_rdma_transport * rtransport,struct ibv_context * context) nvmf_rdma_find_ib_device() argument 3200 nvmf_rdma_check_devices_context(struct spdk_nvmf_rdma_transport * rtransport,struct ibv_context * context) nvmf_rdma_check_devices_context() argument [all...] |
| H A D | nvmf_fc.h | 97 * ABTS handling context 249 /* New QP create context. */ 315 void *context; /* Vendor specific context data */ 313 void *context; /* Vendor specific context data */ global() member
|
| /spdk/.github/ISSUE_TEMPLATE/ |
| H A D | bug_report.md | 37 <!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
| /spdk/test/common/lib/ |
| H A D | test_rdma.c | 80 spdk_rdma_utils_get_pd(struct ibv_context *context) in spdk_rdma_utils_get_pd() argument
|
| /spdk/lib/rdma_provider/ |
| H A D | rdma_provider_verbs.c | 124 if (errno == EINVAL && spdk_rdma_qp->qp->context->device->transport_type == IBV_TRANSPORT_IWARP) { in spdk_rdma_provider_qp_queue_send_wrs()
|
| /spdk/doc/ |
| H A D | virtio.md | 16 and context switching overhead of QEMU and guest kernel, significantly boosting
|
| H A D | notify.md | 35 One containing the type of the event, like "spdk_bdev_register", second with context,
|
| H A D | concurrency.md | 41 in SPDK consists of a function pointer and a pointer to some context. Messages 82 `spdk_msg_fn`, which is a function pointer and a context pointer, that can 89 and also some per-thread context associated with that object that was accessed 98 memory address, and `spdk_io_channel` is the per-thread context associated with
|
| H A D | bdev_module.md | 34 the function that returns context size (`get_ctx_size`) - scratch space that 71 * The JSON write context will be initialized with an open object, so the bdev 138 context of `submit_request`.
|
| H A D | nvme_multipath.md | 28 qpair is created as a dynamic context of an I/O channel for an NVMe-oF controller. 32 an additional abstraction to submit I/O to a namespace, and consists of an I/O qpair context and a
|
| H A D | userspace.md | 62 overhead due to forced context switches. Operations in SPDK are almost
|
| H A D | memory.md | 55 User space drivers run in the context of a regular process and so have access
|
| H A D | nvme_spec.md | 55 context pointer that will be called when a completion for the resulting command
|
| /spdk/test/unit/lib/nvme/nvme_rdma.c/ |
| H A D | nvme_rdma_ut.c | 129 ibv_query_device(struct ibv_context *context, in ibv_query_device() argument 590 DEFINE_STUB(ibv_create_cq, struct ibv_cq *, (struct ibv_context *context, int cqe, void *cq_context, 598 struct ibv_context context = { in test_nvme_rdma_poller_create() local 609 poller_1 = nvme_rdma_poll_group_get_poller(&group, &context); in test_nvme_rdma_poller_create() 614 CU_ASSERT(poller_1->device == &context); in test_nvme_rdma_poller_create() 626 poller_3 = nvme_rdma_poll_group_get_poller(&group, &context); in test_nvme_rdma_poller_create() 976 CU_ASSERT(rqpair.cm_id->context == &rqpair.qpair); in test_nvme_rdma_qpair_init()
|
| /spdk/rpmbuild/ |
| H A D | spdk.spec | 53 polled mode instead of relying on interrupts, which avoids kernel context switches and
|
| /spdk/lib/nvme/ |
| H A D | nvme_rdma.c | 507 event_qpair = entry->evt->id->context; in nvme_rdma_poll_events() 516 event_qpair = event->id->context; in nvme_rdma_validate_cm_event() 763 rqpair->cm_id->context = rqpair; in nvme_rdma_reset_failed_recvs() 2050 if (entry->evt->id->context == rqpair) { in nvme_rdma_ctrlr_delete_io_qpair()
|