Functions | |
| ocs_cxn_t * | ocs_hal_cxn_alloc (ocs_hal_t *hal, uint32_t conn_hdl) |
| Gets a free connection structure. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_connect (ocs_hal_t *hal, ocs_cxn_t *cxn, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port, uint16_t window_size, uint8_t window_scale, cxn_cb_t cxn_cb, void *ul_arg) |
| Establish a TCP connection from an initiator to a target. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_reject (ocs_hal_t *hal, uint32_t conn_hdl, cxn_cb_t cxn_cb, void *ul_arg) |
| Rejects an incoming connection on a target. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_get_info (ocs_hal_t *hal, ocs_cxn_t *cxn, cxn_cb_t cxn_cb, void *ul_arg) |
| Retrieves information about an incoming context. More... | |
| static void | ocs_hal_cxn_cq_select (ocs_hal_t *hal, ocs_cxn_t *cxn) |
| Assign a CQ for the connection. More... | |
| static void | ocs_hal_cxn_cq_release (ocs_hal_t *hal, ocs_cxn_t *cxn) |
| Release a CQ for the connection. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_offload (ocs_hal_t *hal, ocs_cxn_t *cxn, uint32_t tcp_window_size, uint8_t data_digest, uint8_t hdr_digest, uint32_t max_rcv_dsl, cxn_cb_t cxn_cb, void *ul_arg) |
| Offloads an incoming connection on a target. More... | |
| uint32_t | ocs_hal_cxn_get_free_wq_cnt (ocs_hal_t *hal, ocs_cxn_t *cxn) |
| Returns the number of free entries on the work queue for this connection. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_close (ocs_hal_t *hal, ocs_cxn_t *cxn, uint8_t sendRst, cxn_cb_t cxn_cb, void *ul_arg) |
| Invalidates a connection and optionally sends a TCP Reset. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_upload (ocs_hal_t *hal, ocs_cxn_t *cxn, uint8_t graceful, cxn_cb_t cxn_cb, void *ul_arg) |
| uploads an incoming connection on a target. More... | |
| ocs_hal_rtn_e | ocs_hal_cxn_free (ocs_hal_t *hal, ocs_cxn_t *cxn) |
| Frees a connection object for re-use. More... | |
| ocs_cxn_t* ocs_hal_cxn_alloc | ( | ocs_hal_t * | hal, |
| uint32_t | conn_hdl | ||
| ) |
| ocs_hal_rtn_e ocs_hal_cxn_close | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn, | ||
| uint8_t | sendRst, | ||
| cxn_cb_t | cxn_cb, | ||
| void * | ul_arg | ||
| ) |
Invalidates a connection and optionally sends a TCP Reset.
| hal | Hardware context. |
| cxn | Pointer to the connection object. |
| sendRst | Non-zero sends a TCP reset on the connection. |
| cxn_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to cxn_cb(). |
| ocs_hal_rtn_e ocs_hal_cxn_connect | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn, | ||
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port, | ||
| uint16_t | window_size, | ||
| uint8_t | window_scale, | ||
| cxn_cb_t | cxn_cb, | ||
| void * | ul_arg | ||
| ) |
Establish a TCP connection from an initiator to a target.
| hal | Hardware context. |
| cxn | Pointer to the connection object. |
| ipaddr | Target IP address. |
| tcp_port | Target TCP port. |
| window_size | TCP Window size to use for the connection. |
| window_scale | TCP window scale value to use for the connection. |
| cxn_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to cxn_cb(). |
|
static |
|
static |
| ocs_hal_rtn_e ocs_hal_cxn_free | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn | ||
| ) |
| uint32_t ocs_hal_cxn_get_free_wq_cnt | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn | ||
| ) |
| ocs_hal_rtn_e ocs_hal_cxn_get_info | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn, | ||
| cxn_cb_t | cxn_cb, | ||
| void * | ul_arg | ||
| ) |
Retrieves information about an incoming context.
| hal | Hardware context. |
| cxn | Pointer to the connection object. |
| cxn_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to cxn_cb(). |
| ocs_hal_rtn_e ocs_hal_cxn_offload | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn, | ||
| uint32_t | tcp_window_size, | ||
| uint8_t | data_digest, | ||
| uint8_t | hdr_digest, | ||
| uint32_t | max_rcv_dsl, | ||
| cxn_cb_t | cxn_cb, | ||
| void * | ul_arg | ||
| ) |
Offloads an incoming connection on a target.
| hal | Hardware context. |
| cxn | Pointer to the connection object. |
| tcp_window_size | TCP window size. |
| data_digest | Set to 1 to enable data digests. |
| hdr_digest | Set to 1 to enable header digests. |
| max_rcv_dsl | Maximum receive data segment length. |
| cxn_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to cxn_cb(). |
| ocs_hal_rtn_e ocs_hal_cxn_reject | ( | ocs_hal_t * | hal, |
| uint32_t | conn_hdl, | ||
| cxn_cb_t | cxn_cb, | ||
| void * | ul_arg | ||
| ) |
Rejects an incoming connection on a target.
| hal | Hardware context. |
| conn_hdl | Connection handle received from the firmware. |
| cxn_cb | Pointer to the function to call when the operation completes. Parameter may be NULL. |
| ul_arg | Pointer to the argument to pass back to cxn_cb(). |
| ocs_hal_rtn_e ocs_hal_cxn_upload | ( | ocs_hal_t * | hal, |
| ocs_cxn_t * | cxn, | ||
| uint8_t | graceful, | ||
| cxn_cb_t | cxn_cb, | ||
| void * | ul_arg | ||
| ) |
uploads an incoming connection on a target.
| hal | Hardware context. |
| cxn | Pointer to the connection object. |
| graceful | If TRUE, then a graceful teardown of the socket is performed. |
| cxn_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to cxn_cb(). |