Functions | |
| int32_t | sli_cmd_iscsi_common_iface_create (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t vlan) |
| write a COMMON_ISCSI_NTWK_IFACE_CREATE command More... | |
| int32_t | sli_cmd_iscsi_common_iface_delete (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface) |
| write a COMMON_ISCSI_NTWK_IFACE_CREATE command More... | |
| int32_t | sli_cmd_iscsi_common_configure_stateless_ip_addr (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface, uint8_t isv4, uint32_t retries) |
| write a COMMON_ISCSI_NTWK_CONFIGURE_STATELESS_IP_ADDR command More... | |
| int32_t | sli_cmd_iscsi_common_release_stateless_ip_addr (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface, uint8_t isv4) |
| write a COMMON_ISCSI_NTWK_RELEASE_STATELESS_IP_ADDR command More... | |
| int32_t | sli_cmd_iscsi_common_discover_isns_server (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface, uint32_t retries) |
| write a COMMON_ISCSI_NTWK_DISCOVER_ISNS_SERVER command More... | |
| int32_t | sli_cmd_iscsi_common_discovered_isns_servers (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface) |
| write a COMMON_ISCSI_NTWK_DISCOVERED_ISNS_SERVERS command More... | |
| uint8_t | sli_iscsi_conv_hal_ip_addr_type (ocs_hal_ip_type_e ip_type) |
| Converts the IP address type field to the SLI4 equivalent value. More... | |
| ocs_hal_ip_type_e | sli_iscsi_conv_sli4_ip_addr_type (uint8_t ip_type) |
| Converts the SLI4 IP address type field to the HAL equivalent value. More... | |
| int32_t | sli_cmd_iscsi_common_set_route_table (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint8_t isadd, ocs_hal_ip_address_subnet_t *hal_ipsub, ocs_hal_ip_address_t *hal_gateway, ocs_dma_t *dma) |
| write a COMMON_ISCSI_NTWK_SET_ROUTE_TABLE command More... | |
| int32_t | sli_cmd_iscsi_common_get_route_table (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *dma) |
| write a COMMON_ISCSI_NTWK_GET_ROUTE_TABLE command More... | |
| int32_t | sli_cmd_iscsi_common_modify_ip_addr (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface, uint8_t isadd, ocs_hal_ip_address_subnet_t *ipaddr) |
| write a COMMON_ISCSI_NTWK_MODIFY_IP_ADDR command More... | |
| int32_t | sli_cmd_iscsi_common_get_default_gateway (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint8_t isv4) |
| write a COMMON_ISCSI_NTWK_GET_DEFAULT_GATEWAY command More... | |
| int32_t | sli_cmd_iscsi_common_modify_default_gateway (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint8_t isadd, ocs_hal_ip_address_t *gateway) |
| write a COMMON_ISCSI_NTWK_MODIFY_DEFAULT_GATEWAY command More... | |
| int32_t | sli_cmd_iscsi_common_get_all_if_id (sli4_t *sli4, void *buf, size_t size, uint64_t tag) |
| write a COMMON_ISCSI_NTWK_GET_ALL_IF_ID command More... | |
| int32_t | sli_cmd_iscsi_common_get_if_info (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t iface, uint8_t isv4) |
| write a COMMON_ISCSI_NTWK_GET_IF_INFO command More... | |
| int32_t | sli_cmd_iscsi_cleanup_v0 (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint16_t ulp_no, uint8_t hdrq_id, uint8_t dataq_id) |
| write a COMMON_ISCSI_CLEANUP (version 0) command More... | |
| int32_t | sli_cmd_iscsi_cleanup_v1 (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint16_t ulp_no, uint16_t hdrq_id, uint16_t dataq_id) |
| write a COMMON_ISCSI_CLEANUP (version 1) command More... | |
| static int32_t | sli_cmd_iscsi_set_fragnum_bits (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t num_bits) |
| write a COMMON_ISCSI_SET_FRAGNUM_BITS command More... | |
| int32_t | sli_cmd_iscsi_tgt_start_listen_server (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port) |
| write a ISCSI_TGT_START_LISTEN_SERVER command More... | |
| int32_t | sli_cmd_iscsi_tgt_stop_listen_server (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port) |
| write a ISCSI_TGT_STOP_LISTEN_SERVER command More... | |
| int32_t | sli_cmd_iscsi_tgt_get_connection_info (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl) |
| write a ISCSI_TGT_GET_CONNECTION_INFO command More... | |
| int32_t | sli_cmd_iscsi_tgt_connection_reject (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl) |
| write a ISCSI_TGT_CONNECTION_REJECT command More... | |
| int32_t | sli_cmd_iscsi_tgt_offload_connection_v0 (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl, uint32_t tcp_window_size, uint16_t ulp_no, uint16_t wq_id, uint16_t cq_id, uint8_t hdrq_id, uint8_t dataq_id, uint8_t nrs, ocs_hal_target_login_options_t *lgn_options) |
| write a ISCSI_TGT_OFFLOAD_CONNECTION command (version 0) More... | |
| int32_t | sli_cmd_iscsi_tgt_offload_connection_v1 (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl, uint32_t tcp_window_size, uint16_t ulp_no, uint16_t wq_id, uint16_t cq_id, uint16_t hdrq_id, uint16_t dataq_id, uint8_t nrs, ocs_hal_target_login_options_t *lgn_options) |
| write a ISCSI_TGT_OFFLOAD_CONNECTION command (version 1) More... | |
| int32_t | sli_cmd_iscsi_tgt_invalidate_connection (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl, uint16_t cid, uint8_t sendRst) |
| write a ISCSI_TGT_INVALIDATE_CONNECTION command More... | |
| int32_t | sli_cmd_iscsi_tgt_start_esi_listen (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port) |
| write a ISCSI_TGT_START_ESI_LISTEN command More... | |
| int32_t | sli_cmd_iscsi_tgt_stop_esi_listen (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port) |
| write a ISCSI_TGT_STOP_ESI_LISTEN command More... | |
| int32_t | sli_cmd_iscsi_ini_invalidate_connection (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl, uint16_t cid, uint8_t sendRst) |
| write a ISCSI_INI_INVALIDATE_CONNECTION command More... | |
| int32_t | sli_cmd_iscsi_tgt_isns_send_packet (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_hal_ip_address_t *isns_server, uint32_t tcp_port, void *packet, uint32_t pkt_length, ocs_dma_t *pkt_mem) |
| write a ISCSI_TGT_ISNS_SEND_PACKET command More... | |
| int32_t | sli_cmd_iscsi_wq_create (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *qmem, uint16_t cq_id, uint16_t ulp) |
| write a ISCSI_WQ_CREATE command More... | |
| int32_t | sli_cmd_iscsi_wq_destroy (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint16_t wq_id) |
| write a ISCSI_WQ_DESTROY command More... | |
| int32_t | sli_cmd_iscsi_ntwk_set_mtu (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t mtu) |
| write a ISCSI_NTWK_SET_MTU command More... | |
| int32_t | sli_cmd_iscsi_tcp_connect_v0 (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port, uint16_t cid, uint16_t cq_id, ocs_dma_t *data_out, uint16_t hdr_ring_id, uint16_t data_ring_id, uint8_t do_offload) |
| write a ISCSI_TCP_CONNECT_AND_OFFLOAD V0 command More... | |
| int32_t | sli_cmd_iscsi_tcp_disconnect (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl) |
| write a ISCSI_TCP_DISCONNECT command More... | |
| int32_t | sli_cmd_iscsi_get_connection_info (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_hdl) |
| write a ISCSI_GET_CONNECTION_INFO command More... | |
| int32_t | sli_cmd_iscsi_invalidate_cmds (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *msg_mem, ocs_hal_io_t **ios, uint16_t num_ios, ocs_hal_abort_type_e abort_type) |
| write a COMMON_ISCSI_INVALIDATE_COMMANDS command More... | |
| int32_t | sli_cmd_iscsi_remove_sgl_pages (sli4_t *sli4, void *buf, size_t size, uint64_t tag) |
| write a COMMON_ISCSI_CFG_REMOVE_SGL_PAGES command More... | |
| int32_t | sli_cmd_iscsi_defq_create (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *qmem, uint32_t num_entries, uint16_t cq_id, uint16_t buffer_size, uint16_t ulp) |
| write a ISCSI_DEFQ_CREATE command More... | |
| int32_t | sli_cmd_iscsi_defq_destroy (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint16_t rq_id) |
| write a ISCSI_DEFQ_DESTROY command More... | |
| int32_t | sli_iscsi_process_link_state (sli4_t *sli4, void *acqe) |
| Process an asynchronous Link State event entry. More... | |
| int32_t | sli_iscsi_process_iscsi (sli4_t *sli4, void *acqe) |
| Process an asynchronous iSCSI event entry. More... | |
| int32_t | sli_iscsi_cqe_parse (sli4_t *sli4, sli4_queue_t *cq, uint8_t *cqe, sli4_qentry_fields_t *fields) |
| Parse a iSCSI work queue CQ entry. More... | |
| int32_t | sli_iscsi_defq_alloc (sli4_t *sli4, sli4_queue_t *header, sli4_queue_t *payload, uint32_t n_entries, uint32_t hsize, uint32_t psize, sli4_queue_t *cq, uint16_t ulp) |
| allocate a receive queue More... | |
| int32_t | sli_iscsi_set_frag_bits (sli4_t *sli4) |
| Allocate the SGL pages assigned to the ICD table and post them to the chip. More... | |
| static int32_t | sli_iscsi_post_sgl_pages_v0 (sli4_t *sli4) |
| Allocate the SGL pages assigned to the ICD table and post them to the chip. More... | |
| static int32_t | sli_iscsi_post_sgl_pages_v1 (sli4_t *sli4) |
| Allocate the SGL pages assigned to the ICD table and post them to the chip. More... | |
| int32_t | sli_iscsi_post_sgl_pages (sli4_t *sli4) |
| Allocate the SGL pages assigned to the ICD table and post them to the chip. More... | |
| int32_t | sli_iscsi_io_get_icd_and_sgl (sli4_t *sli4, uint32_t io_offset, uint16_t *icd, void **sgl) |
| return the ICD and virtual SGL pointer for an IO at the specified offset into the ICD table. More... | |
| int32_t sli_cmd_iscsi_cleanup_v0 | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint16_t | ulp_no, | ||
| uint8_t | hdrq_id, | ||
| uint8_t | dataq_id | ||
| ) |
write a COMMON_ISCSI_CLEANUP (version 0) command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ulp_no | the Chute number TBD |
| hdrq_id | the receive header queue assigned to this connection |
| dataq_id | the receive data queue assigned to this connection |
Definition at line 671 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_cleanup_v1 | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint16_t | ulp_no, | ||
| uint16_t | hdrq_id, | ||
| uint16_t | dataq_id | ||
| ) |
write a COMMON_ISCSI_CLEANUP (version 1) command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ulp_no | the Chute number TBD |
| hdrq_id | the receive header queue assigned to this connection |
| dataq_id | the receive data queue assigned to this connection |
Definition at line 716 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_configure_stateless_ip_addr | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface, | ||
| uint8_t | isv4, | ||
| uint32_t | retries | ||
| ) |
write a COMMON_ISCSI_NTWK_CONFIGURE_STATELESS_IP_ADDR command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the portal interface handle |
| isv4 | set to non-zero for IPv4, otherwise IPv6 |
| retries | the number of retry attempts |
Definition at line 142 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_discover_isns_server | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface, | ||
| uint32_t | retries | ||
| ) |
write a COMMON_ISCSI_NTWK_DISCOVER_ISNS_SERVER command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the portal interface handle |
| retries | the number of retry attempts |
Definition at line 228 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_discovered_isns_servers | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface | ||
| ) |
write a COMMON_ISCSI_NTWK_DISCOVERED_ISNS_SERVERS command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the portal interface handle |
Definition at line 269 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_get_all_if_id | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag | ||
| ) |
write a COMMON_ISCSI_NTWK_GET_ALL_IF_ID command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
Definition at line 591 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_get_default_gateway | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint8_t | isv4 | ||
| ) |
write a COMMON_ISCSI_NTWK_GET_DEFAULT_GATEWAY command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| isv4 | set to non-zero for IPv4, otherwise IPv6 |
Definition at line 509 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_get_if_info | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface, | ||
| uint8_t | isv4 | ||
| ) |
write a COMMON_ISCSI_NTWK_GET_IF_INFO command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the interface handle to retrieve information |
| isv4 | set to non-zero for IPv4, otherwise IPv6 |
Definition at line 629 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_get_route_table | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_dma_t * | dma | ||
| ) |
write a COMMON_ISCSI_NTWK_GET_ROUTE_TABLE command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
Definition at line 427 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_iface_create | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | vlan | ||
| ) |
write a COMMON_ISCSI_NTWK_IFACE_CREATE command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| vlan | The vlan/priority |
Definition at line 65 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_iface_delete | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface | ||
| ) |
write a COMMON_ISCSI_NTWK_IFACE_CREATE command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the portal interface handle |
Definition at line 103 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_modify_default_gateway | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint8_t | isadd, | ||
| ocs_hal_ip_address_t * | gateway | ||
| ) |
write a COMMON_ISCSI_NTWK_MODIFY_DEFAULT_GATEWAY command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| isadd | set to non-zero for adding, otherwise removing |
| gateway | the IP address of the gateway to add/remove |
Definition at line 549 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_modify_ip_addr | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface, | ||
| uint8_t | isadd, | ||
| ocs_hal_ip_address_subnet_t * | ipaddr | ||
| ) |
write a COMMON_ISCSI_NTWK_MODIFY_IP_ADDR command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the portal interface handle |
| isadd | set to non-zero for adding an address, otherwise removing |
| ipaddr | the IP address and subnet mask |
Definition at line 462 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_release_stateless_ip_addr | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | iface, | ||
| uint8_t | isv4 | ||
| ) |
write a COMMON_ISCSI_NTWK_RELEASE_STATELESS_IP_ADDR command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| iface | the portal interface handle |
| isv4 | set to non-zero for IPv4, otherwise IPv6 |
Definition at line 187 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_common_set_route_table | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint8_t | isadd, | ||
| ocs_hal_ip_address_subnet_t * | hal_ipsub, | ||
| ocs_hal_ip_address_t * | hal_gateway, | ||
| ocs_dma_t * | dma | ||
| ) |
write a COMMON_ISCSI_NTWK_SET_ROUTE_TABLE command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| isadd | set to non-zero for adding, otherwise removing |
| ip_sub | the IP address and subnet to add/remove |
| gateway | the IP address of the gateway to add/remove |
Definition at line 385 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_defq_create | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_dma_t * | qmem, | ||
| uint32_t | num_entries, | ||
| uint16_t | cq_id, | ||
| uint16_t | buffer_size, | ||
| uint16_t | ulp | ||
| ) |
write a ISCSI_DEFQ_CREATE command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| qmem | DMA memory for the queue |
| num_entries | The number of entries in the queue. |
| cq_id | the completion queue id assigned for this work queue |
| buffer_size | buffer size pointed to by each RQE |
| ulp | The ULP to bind the queue to (if dual ULP aware). |
Definition at line 1836 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_defq_destroy | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint16_t | rq_id | ||
| ) |
write a ISCSI_DEFQ_DESTROY command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| rq_id | RQ_ID |
Definition at line 1910 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_get_connection_info | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl | ||
| ) |
write a ISCSI_GET_CONNECTION_INFO command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection handle |
Definition at line 1695 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_ini_invalidate_connection | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl, | ||
| uint16_t | cid, | ||
| uint8_t | sendRst | ||
| ) |
write a ISCSI_INI_INVALIDATE_CONNECTION command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection ID |
| cid | the wq_id assigned with the connection |
| sendRst | non-zero sends a TCP reset on the connection. |
Definition at line 1288 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_invalidate_cmds | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_dma_t * | msg_mem, | ||
| ocs_hal_io_t ** | ios, | ||
| uint16_t | num_ios, | ||
| ocs_hal_abort_type_e | abort_type | ||
| ) |
write a COMMON_ISCSI_INVALIDATE_COMMANDS command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| msg_mem | pointer to DMA memory required to build the non-embedded command |
| ios | pointer to an array of IOs to abort. |
| num_ios | The number of IOs to abort |
| abort_type | The type of abort to perform |
Definition at line 1739 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_ntwk_set_mtu | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | mtu | ||
| ) |
write a ISCSI_NTWK_SET_MTU command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| mtu | the MTU size to set (usually 1500 or 8342 bytes) |
Definition at line 1504 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_remove_sgl_pages | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag | ||
| ) |
write a COMMON_ISCSI_CFG_REMOVE_SGL_PAGES command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
Definition at line 1794 of file sli4_iscsi.c.
|
static |
write a COMMON_ISCSI_SET_FRAGNUM_BITS command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| num_bits | the number of bits for SGEs |
Definition at line 760 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tcp_connect_v0 | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port, | ||
| uint16_t | cid, | ||
| uint16_t | cq_id, | ||
| ocs_dma_t * | data_out, | ||
| uint16_t | hdr_ring_id, | ||
| uint16_t | data_ring_id, | ||
| uint8_t | do_offload | ||
| ) |
write a ISCSI_TCP_CONNECT_AND_OFFLOAD V0 command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ipaddr | the IP address |
| tcp_port | the TCP port number |
| cid | The WQ id for this connection |
| cq_id | The completion queue to be used for this conenction. |
| data_out | the DMA buffer that may is used data-out and NOP headers |
| hdr_ring_id | the receive header queue assigned to this connection |
| data_ring_id | the receive data queue assigned to this connection |
| do_offload | non-zero instructs the FW to offload the connection. |
Definition at line 1549 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tcp_disconnect | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl | ||
| ) |
write a ISCSI_TCP_DISCONNECT command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection handle returned from the TCP_CONNECT |
Definition at line 1658 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_connection_reject | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl | ||
| ) |
write a ISCSI_TGT_CONNECTION_REJECT command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection ID |
Definition at line 929 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_get_connection_info | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl | ||
| ) |
write a ISCSI_TGT_GET_CONNECTION_INFO command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection handle |
Definition at line 889 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_invalidate_connection | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl, | ||
| uint16_t | cid, | ||
| uint8_t | sendRst | ||
| ) |
write a ISCSI_TGT_INVALIDATE_CONNECTION command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection ID |
| cid | the wq_id assigned with the connection |
| sendRst | non-zero sends a TCP reset on the connection. |
Definition at line 1152 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_isns_send_packet | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_hal_ip_address_t * | isns_server, | ||
| uint32_t | tcp_port, | ||
| void * | packet, | ||
| uint32_t | pkt_length, | ||
| ocs_dma_t * | pkt_mem | ||
| ) |
write a ISCSI_TGT_ISNS_SEND_PACKET command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| isns_server | the IP address of the iSNS server |
| tcp_port | the TCP port number of the iSNS server |
| packet | the virtual memory pointer to the packet data |
| pkt_length | The number of bytes to transmit. |
| pkt_mem | the DMA buffer that may be used to trasmit the packet |
Definition at line 1344 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_offload_connection_v0 | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl, | ||
| uint32_t | tcp_window_size, | ||
| uint16_t | ulp_no, | ||
| uint16_t | wq_id, | ||
| uint16_t | cq_id, | ||
| uint8_t | hdrq_id, | ||
| uint8_t | dataq_id, | ||
| uint8_t | nrs, | ||
| ocs_hal_target_login_options_t * | lgn_options | ||
| ) |
write a ISCSI_TGT_OFFLOAD_CONNECTION command (version 0)
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection handle |
| tcp_window_size | the TCP window advertised |
| ulp_no | the Chute number TBD |
| wq_id | the work queue assigned to this connection |
| cq_id | the completion queue assigned to this connection |
| hdrq_id | the receive header queue assigned to this connection |
| dataq_id | the receive data queue assigned to this connection |
| nrs | set to 1 if the driver will not free resources on the invalidate_commands completion and will wait for each IO completion. (Skyhawk only) |
| lgn_options | the target login options for the connection |
Definition at line 979 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_offload_connection_v1 | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint32_t | conn_hdl, | ||
| uint32_t | tcp_window_size, | ||
| uint16_t | ulp_no, | ||
| uint16_t | wq_id, | ||
| uint16_t | cq_id, | ||
| uint16_t | hdrq_id, | ||
| uint16_t | dataq_id, | ||
| uint8_t | nrs, | ||
| ocs_hal_target_login_options_t * | lgn_options | ||
| ) |
write a ISCSI_TGT_OFFLOAD_CONNECTION command (version 1)
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| conn_hdl | the connection handle |
| tcp_window_size | the TCP window advertised |
| ulp_no | the Chute number TBD |
| wq_id | the work queue assigned to this connection |
| cq_id | the completion queue assigned to this connection |
| hdrq_id | the receive header queue assigned to this connection |
| dataq_id | the receive data queue assigned to this connection |
| nrs | set to 1 if the driver will not free resources on the invalidate_commands completion and will wait for each IO completion. (Skyhawk only) |
| lgn_options | the target login options for the connection |
Definition at line 1069 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_start_esi_listen | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port | ||
| ) |
write a ISCSI_TGT_START_ESI_LISTEN command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ipaddr | the IP address |
| tcp_port | the TCP port number |
Definition at line 1197 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_start_listen_server | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port | ||
| ) |
write a ISCSI_TGT_START_LISTEN_SERVER command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ipaddr | the IP address |
| tcp_port | the TCP port number |
Definition at line 800 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_stop_esi_listen | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port | ||
| ) |
write a ISCSI_TGT_STOP_ESI_LISTEN command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ipaddr | the IP address |
| tcp_port | the TCP port number |
Definition at line 1242 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_tgt_stop_listen_server | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port | ||
| ) |
write a ISCSI_TGT_STOP_LISTEN_SERVER command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| ipaddr | the IP address |
| tcp_port | the TCP port number |
Definition at line 845 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_wq_create | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| ocs_dma_t * | qmem, | ||
| uint16_t | cq_id, | ||
| uint16_t | ulp | ||
| ) |
write a ISCSI_WQ_CREATE command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| qmem | DMA memory for the queue |
| cq_id | associated CQ_ID |
| ulp | The ULP to bind the queue to (if dual ULP aware). |
Definition at line 1409 of file sli4_iscsi.c.
| int32_t sli_cmd_iscsi_wq_destroy | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint64_t | tag, | ||
| uint16_t | wq_id | ||
| ) |
write a ISCSI_WQ_DESTROY command
| sli4 | SLI context |
| buf | destination buffer for the command |
| size | buffer size in bytes |
| tag | command tag |
| wq_id | WQ_ID |
Definition at line 1466 of file sli4_iscsi.c.
| uint8_t sli_iscsi_conv_hal_ip_addr_type | ( | ocs_hal_ip_type_e | ip_type | ) |
Converts the IP address type field to the SLI4 equivalent value.
| ip_type | the HAL enum to convert. |
Definition at line 305 of file sli4_iscsi.c.
| ocs_hal_ip_type_e sli_iscsi_conv_sli4_ip_addr_type | ( | uint8_t | ip_type | ) |
Converts the SLI4 IP address type field to the HAL equivalent value.
| ip_type | the SLI4 value to convert. |
Definition at line 342 of file sli4_iscsi.c.
| int32_t sli_iscsi_cqe_parse | ( | sli4_t * | sli4, |
| sli4_queue_t * | cq, | ||
| uint8_t * | cqe, | ||
| sli4_qentry_fields_t * | fields | ||
| ) |
Parse a iSCSI work queue CQ entry.
| sli4 | SLI context |
| cq | CQ to process |
| cqe | pointer to the CQ entry |
| fields | returns the fields embedded in the CQ entry |
Definition at line 2120 of file sli4_iscsi.c.
| int32_t sli_iscsi_defq_alloc | ( | sli4_t * | sli4, |
| sli4_queue_t * | header, | ||
| sli4_queue_t * | payload, | ||
| uint32_t | n_entries, | ||
| uint32_t | hsize, | ||
| uint32_t | psize, | ||
| sli4_queue_t * | cq, | ||
| uint16_t | ulp | ||
| ) |
allocate a receive queue
Allocates DMA memory and configures the requested queue type
| sli4 | SLI context |
| header | pointer to queue object for header |
| payload | pointer to queue object for payload |
| n_entries | number of entries to allocate |
| hsize | header buffer size |
| psize | payload buffer size |
| cq | pointer to the completion queue to use for this queue. |
| ulp | The ULP to bind the queue to (if dual ULP aware). |
Definition at line 2173 of file sli4_iscsi.c.
| int32_t sli_iscsi_io_get_icd_and_sgl | ( | sli4_t * | sli4, |
| uint32_t | io_offset, | ||
| uint16_t * | icd, | ||
| void ** | sgl | ||
| ) |
return the ICD and virtual SGL pointer for an IO at the specified offset into the ICD table.
| sli4 | SLI context |
| io_offset | The offset into the ICD table |
| icd | returns the ICD representing this IO. |
| sgl | returns the virtual pointer to the first SGL for this ICD. |
Definition at line 2609 of file sli4_iscsi.c.
| int32_t sli_iscsi_post_sgl_pages | ( | sli4_t * | sli4 | ) |
Allocate the SGL pages assigned to the ICD table and post them to the chip.
| sli4 | SLI context |
Definition at line 2545 of file sli4_iscsi.c.
|
static |
Allocate the SGL pages assigned to the ICD table and post them to the chip.
| sli4 | SLI context |
Definition at line 2358 of file sli4_iscsi.c.
|
static |
Allocate the SGL pages assigned to the ICD table and post them to the chip.
| sli4 | SLI context |
Definition at line 2468 of file sli4_iscsi.c.
| int32_t sli_iscsi_process_iscsi | ( | sli4_t * | sli4, |
| void * | acqe | ||
| ) |
Process an asynchronous iSCSI event entry.
Parses ACQE, creates an abstracted event and calls registered callback functions.
| sli4 | SLI context |
| acqe | pointer to Asynchrounous Completion Queue Entry |
Definition at line 2032 of file sli4_iscsi.c.
| int32_t sli_iscsi_process_link_state | ( | sli4_t * | sli4, |
| void * | acqe | ||
| ) |
Process an asynchronous Link State event entry.
Parses ACQE, creates an abstracted event and calls registered callback functions.
| sli4 | SLI context |
| acqe | pointer to Asynchrounous Completion Queue Entry |
Definition at line 1947 of file sli4_iscsi.c.
| int32_t sli_iscsi_set_frag_bits | ( | sli4_t * | sli4 | ) |
Allocate the SGL pages assigned to the ICD table and post them to the chip.
| sli4 | SLI context |
Definition at line 2253 of file sli4_iscsi.c.