Go to the source code of this file.
◆ doca_sta_io_as_ctx()
Convert doca_sta_io instance into a generalized context for use with doca core objects.
- Parameters
-
| [in] | sta_io | - Pointer to doca_sta_io instance. |
- Returns
- Non NULL upon success, NULL otherwise.
◆ doca_sta_io_create()
Create a DOCA STA IO Context.
This function creates a DOCA STA IO context attached to a DOCA STA context (control context). The IO context allows the user to perform IO transactions using the offload engine.
- Parameters
-
| [in] | sta | - Previously created STA context |
| [out] | sta_io | - created IO context |
- Returns
- DOCA_SUCCESS - in case of success Error code - in case of failure. see doca_error_t.
◆ doca_sta_io_destroy()
Destroy a DOCA STA IO context.
This function destroys STA IO context created by doca_sta_io_create()
- Parameters
-
| [in] | sta_io | - Previously created STA IO context |
- Returns
- DOCA_SUCCESS - in case of success Error code - in case of failure. see doca_error_t.
◆ doca_sta_io_task_disconnect_alloc_init()
| DOCA_EXPERIMENTAL doca_error_t doca_sta_io_task_disconnect_alloc_init |
( |
struct doca_sta_io * |
sta_io, |
|
|
union doca_data |
user_data, |
|
|
struct doca_sta_qp_handle * |
qp_handle, |
|
|
struct doca_sta_producer_task_send ** |
task |
|
) |
| |
This method allocates and initializes a STA IO disconnect 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 |
| [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_disconnect_set_conf()
This method sets the STA IO disconnect 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.