Go to the source code of this file.
|
| DOCA_EXPERIMENTAL doca_error_t | doca_sta_io_non_offload_register_cb (struct doca_sta_io *sta_io, doca_sta_io_non_offload_cb_t non_offload_cb, union doca_data user_data) |
| |
| DOCA_EXPERIMENTAL doca_error_t | doca_sta_io_task_non_offload_set_rdma_write_send_conf (struct doca_sta_io *sta_io, doca_sta_task_completion_cb_t task_completion_cb, doca_sta_task_completion_cb_t task_error_cb) |
| | This method sets the STA IO non offload RDMA WRITE tasks configuration. More...
|
| |
| DOCA_EXPERIMENTAL doca_error_t | doca_sta_io_task_non_offload_set_rdma_read_conf (struct doca_sta_io *sta_io, doca_sta_task_completion_cb_t task_completion_cb, doca_sta_task_completion_cb_t task_error_cb) |
| | This method sets the STA IO non offload RDMA READ tasks configuration. More...
|
| |
| DOCA_EXPERIMENTAL doca_error_t | doca_sta_io_task_non_offload_rdma_write_send_alloc_init (struct doca_sta_io *sta_io, union doca_data user_data, struct doca_sta_qp_handle *qp_handle, doca_sta_nvmef_completion_t completion, union doca_data non_offload_user_data, struct doca_sta_producer_task_send **task) |
| | This method allocates and initializes a STA IO RDMA WRITE with RDMA SEND task. More...
|
| |
| DOCA_EXPERIMENTAL doca_error_t | doca_sta_io_task_non_offload_rdma_send_alloc_init (struct doca_sta_io *sta_io, union doca_data user_data, struct doca_sta_qp_handle *qp_handle, doca_sta_nvmef_completion_t completion, union doca_data non_offload_user_data, struct doca_sta_producer_task_send **task) |
| | This method allocates and initializes a STA IO RDMA SEND task. More...
|
| |
| DOCA_EXPERIMENTAL doca_error_t | doca_sta_io_task_non_offload_rdma_read_alloc_init (struct doca_sta_io *sta_io, union doca_data user_data, struct doca_sta_qp_handle *qp_handle, union doca_data non_offload_user_data, struct doca_sta_producer_task_send **task) |
| | This method allocates and initializes a STA IO RDMA READ task. More...
|
| |
◆ DOCA_STA_NVMEF_COMPLETION_SIZE
| #define DOCA_STA_NVMEF_COMPLETION_SIZE (16) |
◆ doca_sta_io_non_offload_cb_t
| typedef void(* doca_sta_io_non_offload_cb_t) (struct doca_sta_qp_handle *qp_handle, union doca_data user_data, const uint8_t *nvme_cmd, uint8_t *payload, uint32_t payload_len, bool payload_valid, union doca_data non_offload_user_data) |
Function to execute on new STA IO non-offload command notification.
This function is called by doca_pe_progress() when related task received a new non-offload command from DPA.
- Parameters
-
| [in] | qp_handle | STA QP. |
| [in] | nvme_cmd | NVME command. |
| [in] | payload | The payload data (if any) belonged to the nvme command. |
| [in] | payload_len | The payload length of the payload. The maximum length of the payload buffer can be obtained by calling to doca_sta_get_max_io_size API. |
| [in] | payload_valid | The hint to denote if the nvme command has been retrieved from initiator and stored in the payload buffer. |
| [in] | non_offload_user_data | The user data attached to the nvme command. |
Definition at line 55 of file doca_sta_io_non_offload.h.
◆ doca_sta_nvmef_completion_t
◆ doca_sta_io_non_offload_register_cb()
◆ doca_sta_io_task_non_offload_rdma_read_alloc_init()
| DOCA_EXPERIMENTAL doca_error_t doca_sta_io_task_non_offload_rdma_read_alloc_init |
( |
struct doca_sta_io * |
sta_io, |
|
|
union doca_data |
user_data, |
|
|
struct doca_sta_qp_handle * |
qp_handle, |
|
|
union doca_data |
non_offload_user_data, |
|
|
struct doca_sta_producer_task_send ** |
task |
|
) |
| |
This method allocates and initializes a STA IO RDMA READ task.
- Parameters
-
| [in] | sta_io | The STA IO context to config. |
| [in] | user_data | doca_data to attach to the task. |
| [in] | qp_handle | The handle of the QP that should be disconnected. |
| [in] | non_offload_user_data | doca_data attached to the original nvme command. |
| [out] | task | memcpy task to allocate |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_NO_MEMORY - No more tasks to allocate
◆ doca_sta_io_task_non_offload_rdma_send_alloc_init()
This method allocates and initializes a STA IO RDMA SEND task.
- Parameters
-
| [in] | sta_io | The STA IO context to config. |
| [in] | user_data | doca_data to attach to the task. |
| [in] | qp_handle | The handle of the QP that should be disconnected. |
| [in] | non_offload_user_data | doca_data attached to the original nvme command. |
| [out] | task | memcpy task to allocate |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_NO_MEMORY - No more tasks to allocate
◆ doca_sta_io_task_non_offload_rdma_write_send_alloc_init()
This method allocates and initializes a STA IO RDMA WRITE with RDMA SEND task.
- Parameters
-
| [in] | sta_io | The STA IO context to config. |
| [in] | user_data | doca_data to attach to the task. |
| [in] | qp_handle | The handle of the QP that should be disconnected. |
| [in] | non_offload_user_data | doca_data attached to the original nvme command. |
| [out] | task | memcpy task to allocate |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_NO_MEMORY - No more tasks to allocate
◆ doca_sta_io_task_non_offload_set_rdma_read_conf()
This method sets the STA IO non offload RDMA READ tasks configuration.
- Parameters
-
| [in] | sta_io | The STA IO context to config |
| [in] | task_completion_cb | Task completion callback |
| [in] | task_error_cb | Task error callback |
- Returns
- DOCA_SUCCESS - in case of success. Error code - in case of failure. see doca_error_t.
◆ doca_sta_io_task_non_offload_set_rdma_write_send_conf()
This method sets the STA IO non offload RDMA WRITE tasks configuration.
- Parameters
-
| [in] | sta_io | The STA IO context to config |
| [in] | task_completion_cb | Task completion callback |
| [in] | task_error_cb | Task error callback |
- Returns
- DOCA_SUCCESS - in case of success. Error code - in case of failure. see doca_error_t.