Go to the source code of this file.
Define iSCSI SLI-4 structures and function prototypes.
Definition in file sli4_iscsi.h.
Typedefs | |
| typedef int32_t | cqe_handler_t (sli4_t *, uint8_t *cqe, sli4_qentry_fields_t *fields) |
Enumerations | |
| enum | sli4_ip_type_type_e { SLI_IP_TYPE_V4 = 0x01, SLI_IP_TYPE_V4_STATIC = 0x03, SLI_IP_TYPE_V4_DHCP = 0x05, SLI_IP_TYPE_V6 = 0x10, SLI_IP_TYPE_V6_ROUTABLE = 0x30, SLI_IP_TYPE_V6_LINK_LOCAL = 0x50 } |
Functions | |
| 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_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_iscsi_process_link_state (sli4_t *, void *) |
| Process an asynchronous Link State event entry. More... | |
| int32_t | sli_iscsi_process_iscsi (sli4_t *, void *) |
| Process an asynchronous iSCSI event entry. More... | |
| int32_t | sli_iscsi_cqe_parse (sli4_t *, sli4_queue_t *, uint8_t *, sli4_qentry_fields_t *) |
| Parse a iSCSI work queue CQ entry. More... | |
| uint32_t | sli_iscsi_response_length (sli4_t *, uint8_t *) |
| int32_t | sli_iscsi_set_frag_bits (sli4_t *) |
| 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 *) |
| 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 *, uint32_t, uint16_t *, void **) |
| return the ICD and virtual SGL pointer for an IO at the specified offset into the ICD table. More... | |
| uint32_t | sli_iscsi_io_length (sli4_t *, uint8_t *) |
| 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_iface_create (sli4_t *, void *, size_t, uint64_t, uint32_t) |
| write a COMMON_ISCSI_NTWK_IFACE_CREATE command More... | |
| int32_t | sli_cmd_iscsi_common_iface_delete (sli4_t *, void *, size_t, uint64_t, uint32_t) |
| 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... | |
| 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 *, void *, size_t, uint64_t) |
| write a COMMON_ISCSI_NTWK_GET_ALL_IF_ID command More... | |
| int32_t | sli_cmd_iscsi_common_get_if_info (sli4_t *, void *, size_t, uint64_t, uint32_t, uint8_t) |
| 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... | |
| 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_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_connect_v1 (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, uint16_t window_size, uint8_t window_scale, uint32_t tcp_mss) |
| int32_t | sli_cmd_iscsi_tcp_disconnect (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t conn_handle) |
| 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_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 *, void *, size_t, uint64_t, ocs_dma_t *, uint16_t, uint16_t) |
| write a ISCSI_WQ_CREATE command More... | |
| int32_t | sli_cmd_iscsi_wq_destroy (sli4_t *, void *, size_t, uint64_t, uint16_t) |
| 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_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 *, void *, size_t, uint64_t) |
| write a COMMON_ISCSI_CFG_REMOVE_SGL_PAGES command More... | |
| int32_t | sli_cmd_iscsi_defq_create (sli4_t *, void *, size_t, uint64_t, ocs_dma_t *, uint32_t, uint16_t, uint16_t, uint16_t) |
| write a ISCSI_DEFQ_CREATE command More... | |
| int32_t | sli_cmd_iscsi_defq_destroy (sli4_t *, void *, size_t, uint64_t, uint16_t) |
| write a ISCSI_DEFQ_DESTROY command More... | |
| int32_t | sli_iscsi_defq_alloc (sli4_t *, sli4_queue_t *, sli4_queue_t *, uint32_t, uint32_t, uint32_t, sli4_queue_t *, uint16_t) |
| allocate a receive queue More... | |
| int32_t | sli_wqe_ini_write (sli4_t *sli4, void *buf, size_t size, uint16_t lun, uint32_t exp_xfer_len, uint32_t cmdsn, uint16_t icd_index, ocs_hal_dif_info_t *dif_info, sli4_sge_t *sgl, uint32_t n_sge) |
| int32_t | sli_wqe_ini_tmf (sli4_t *sli4, void *buf, size_t size, uint16_t lun, uint32_t cmdsn, uint16_t icd_index, sli4_sge_t *sgl, uint32_t n_sge) |
| int32_t | sli_wqe_ini_nop (sli4_t *sli4, void *buf, size_t size, uint8_t dm, uint32_t cmdsn, ocs_dma_t *bhs, ocs_dma_t *payload1, ocs_dma_t *payload2, uint32_t exp_xfer_len, uint16_t icd_index) |
| int32_t | sli_wqe_ini_read (sli4_t *sli4, void *buf, size_t size, uint16_t lun, uint32_t exp_xfer_len, uint32_t cmdsn, uint16_t icd_index, ocs_hal_dif_info_t *dif_info, sli4_sge_t *sgl, uint32_t n_sge) |
| int32_t | sli_wqe_update_context (sli4_t *sli4, void *buf, size_t size, ocs_hal_target_login_options_t *lgn_options, uint32_t statsn) |
| int32_t | sli_wqe_tgt_sts (sli4_t *sli4, void *buf, size_t size, ocs_dma_t *bhs, uint16_t lun, uint32_t exp_xfer_len, uint32_t exp_data_sn, uint32_t itt, uint16_t icd_index, uint16_t ref_icd_index, ocs_hal_dif_info_t *dif_info, uint32_t r2t_offset) |
| int32_t | sli_wqe_tgt_datain (sli4_t *sli4, void *buf, size_t size, ocs_dma_t *bhs, uint16_t lun, uint8_t dm, uint8_t underrun, uint8_t overrun, uint32_t exp_xfer_len, uint16_t icd_index, uint16_t ref_icd_index, uint32_t data_sn, uint8_t piggy_back_status, ocs_hal_dif_info_t *dif_info, sli4_sge_t *sgl, uint32_t n_sge) |
| int32_t | sli_wqe_tgt_sos (sli4_t *sli4, void *buf, size_t size, ocs_dma_t *bhs, ocs_dma_t *payload1, ocs_dma_t *payload2, uint16_t lun, uint8_t dm, uint32_t exp_xfer_len, uint16_t icd_index) |
| int32_t | sli_wqe_unassisted (sli4_t *sli4, void *buf, size_t size, uint8_t set_dm, uint8_t incr_statsn, uint8_t is_login, ocs_dma_t *bhs, ocs_dma_t *payload1, ocs_dma_t *payload2, uint32_t exp_xfer_len, uint16_t icd_index) |
| #define HW_MAX_SGLE_SIZE (64*1024) |
Definition at line 44 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_BAD_UNSOL_PDU 0x0E |
Definition at line 1097 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_BAD_WQE_INDEX 0x0F |
Definition at line 1098 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_CMD_DATA_DIFF_CXN 0x20 |
Definition at line 1115 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_CMD_DIGEST_ERROR 0x02 |
Definition at line 1085 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_DIF_ERROR 0x21 |
Definition at line 1116 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_HDR_DIGEST_ERROR 0x06 |
Definition at line 1089 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_HOST_CMD_INVALIDATION 0x1B |
Definition at line 1110 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_HOST_CXN_INVALIDATION 0x19 |
Definition at line 1108 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_HOST_CXN_INVL_WITH_PDU 0x1A |
Definition at line 1109 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_INVALID_ICD_STATE 0x15 |
Definition at line 1104 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_INVALID_LUN 0x14 |
Definition at line 1103 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_INVALID_STATSN 0x12 |
Definition at line 1101 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_ITT_TTT_TOO_BIG 0x09 |
Definition at line 1092 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_ITT_TTT_WRONG_CXN 0x08 |
Definition at line 1091 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_MAX 0x23 |
Definition at line 1119 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_NORMAL 0x01 |
Definition at line 1084 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_OPCODE_ERROR 0x07 |
Definition at line 1090 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_R2T_INVALID_FIELDS 0x13 |
Definition at line 1102 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_AHS_NOT_SUPPORTED 0x05 |
Definition at line 1088 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_PDU_DSL_ERROR 0x03 |
Definition at line 1086 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_PDU_INVALID_DATASN 0x18 |
Definition at line 1107 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_PDU_INVALID_ITT 0x16 |
Definition at line 1105 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_SEQ_BUF_OUT_OF_ORDER 0x17 |
Definition at line 1106 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_SEQ_BURST_ERROR 0x04 |
Definition at line 1087 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RECV_UNSOL_PDU_ERROR 0x22 |
Definition at line 1117 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RESIDUAL_OVERRUN 0x10 |
Definition at line 1099 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_RESIDUAL_UNDERRUN 0x11 |
Definition at line 1100 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_TCP_ACK 0x1F |
Definition at line 1114 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_TCP_RECV_FIN 0x0D |
Definition at line 1096 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_TCP_RECV_RST 0x0A |
Definition at line 1093 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_TCP_SENT_RST 0x0C |
Definition at line 1095 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_TCP_TIMEOUT 0x0B |
Definition at line 1094 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_TX_DIF_ERR_CQE 0x23 |
Definition at line 1118 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_UNSOL_DATA_DIGEST_ERROR 0x1E |
Definition at line 1113 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_UNSOL_DATA_NOTIFY 0x1D |
Definition at line 1112 of file sli4_iscsi.h.
| #define ISCSI_CQE_CODE_UNSOL_HDR_NOTIFY 0x1C |
Definition at line 1111 of file sli4_iscsi.h.
| #define SLI4_CQE_CODE_OFFSET 14 |
Code definitions applicable to all FC/FCoE CQE types
Definition at line 1275 of file sli4_iscsi.h.
| #define SLI4_CQE_CODE_RQ_ASYNC 0x04 |
Definition at line 1278 of file sli4_iscsi.h.
| #define SLI4_CQE_CODE_WORK_REQUEST_COMPLETION 0x01 |
Definition at line 1277 of file sli4_iscsi.h.
| #define SLI4_GRP5_QOS_SPEED 0x01 |
Definition at line 1256 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ACQE_DHCP_OPERATION_COMPLETE 0x80 |
Definition at line 1124 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ACQE_ICMPV6_ERROR_PKT_RECVD 0x83 |
Definition at line 1125 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ACQE_IPV6_DEFAULT_PORT_MTU_CHANGED 0x86 |
Definition at line 1126 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ACQE_NEW_TCP_CONNECTION 0x10 |
Definition at line 1121 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ACQE_STATELESS_OPERATION_COMPLETE_IPV4 0x20 |
Definition at line 1122 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ACQE_STATELESS_OPERATION_COMPLETE_IPV6 0x40 |
Definition at line 1123 of file sli4_iscsi.h.
| #define SLI4_ISCSI_DEFQ_CREATE_V0_MAX_BUF_SIZE 8192 |
Definition at line 796 of file sli4_iscsi.h.
| #define SLI4_ISCSI_DEFQ_CREATE_V0_MAX_PAGES 8 |
Definition at line 794 of file sli4_iscsi.h.
| #define SLI4_ISCSI_DEFQ_CREATE_V0_MIN_BUF_SIZE 64 |
Definition at line 795 of file sli4_iscsi.h.
| #define SLI4_ISCSI_DEFQE_SIZE 8 |
Definition at line 797 of file sli4_iscsi.h.
| #define SLI4_ISCSI_INVALIDATE_CMDS_STATUS_ICD_NOT_FOUND 0x02 |
Definition at line 214 of file sli4_iscsi.h.
| #define SLI4_ISCSI_INVALIDATE_CMDS_STATUS_SUCCESS 0x01 |
Definition at line 213 of file sli4_iscsi.h.
| #define SLI4_ISCSI_INVALIDATE_CMDS_STATUS_UNKNOWN_ERROR 0x04 |
Definition at line 215 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ROUTE_TABLE_ENTRIES_MAX OCS_ISCSI_ROUTE_TABLE_ENTRIES_MAX |
Definition at line 412 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ROUTE_TABLE_ENTRY_ADD 0x01 |
Definition at line 413 of file sli4_iscsi.h.
| #define SLI4_ISCSI_ROUTE_TABLE_ENTRY_DEL 0x02 |
Definition at line 414 of file sli4_iscsi.h.
| #define SLI4_ISCSI_WQ_CREATE_V0_MAX_PAGES 4 |
Definition at line 630 of file sli4_iscsi.h.
| #define SLI4_ISCSI_WQE_SIZE 64 |
Definition at line 1045 of file sli4_iscsi.h.
| #define SLI4_LINK_STATE_LOGICAL 0x01 |
Definition at line 1254 of file sli4_iscsi.h.
| #define SLI4_LINK_STATE_PHYSICAL 0x00 |
iSCSI Event Types
Definition at line 1253 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_CFG_POST_SGL_PAGES 0x02 |
Definition at line 166 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_CFG_REMOVE_SGL_PAGES 0x03 |
Definition at line 167 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_CLEANUP 0x3B |
Definition at line 181 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_DEFQ_CREATE 0x40 |
Definition at line 183 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_DEFQ_DESTROY 0x41 |
Definition at line 184 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_ERROR_RECOVERY_INVALIDATE_CMDS 0x01 |
iSCSI Common opcode (OPC) values
Definition at line 165 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_GET_CONNECTION_INFO 0x4a |
Definition at line 190 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_INI_INVALIDATE_CONNECTION 0x2A |
iSCSI Initiator opcode (OPC) values
Definition at line 816 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_CONFIGURE_STATELESS_IP_ADDR 0x11 |
Definition at line 172 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_DISCOVER_ISNS_SERVER 0x13 |
Definition at line 174 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_DISCOVERED_ISNS_SERVERS 0x14 |
Definition at line 175 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_GET_ALL_IF_ID 0x18 |
Definition at line 179 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_GET_DEFAULT_GATEWAY 0x16 |
Definition at line 177 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_GET_IF_INFO 0x19 |
Definition at line 180 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_GET_ROUTE_TABLE 0x0A |
Definition at line 168 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_IFACE_CREATE 0x0C |
Definition at line 170 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_IFACE_DELETE 0x0D |
Definition at line 171 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_MODIFY_DEFAULT_GATEWAY 0x17 |
Definition at line 178 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_MODIFY_IP_ADDR 0x15 |
Definition at line 176 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_RELEASE_STATELESS_IP_ADDR 0x12 |
Definition at line 173 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_SET_MTU 0x44 |
Definition at line 187 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_NTWK_SET_ROUTE_TABLE 0x0B |
Definition at line 169 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_SET_FRAGNUM_BITS 0x3D |
Definition at line 182 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TCP_CONNECT_AND_OFFLOAD 0x46 |
Definition at line 188 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TCP_DISCONNECT 0x47 |
Definition at line 189 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_CONNECTION_REJECT 0x04 |
Definition at line 842 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_GET_CONNECTION_INFO 0x03 |
Definition at line 841 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_INVALIDATE_CONNECTION 0x07 |
Definition at line 845 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_ISNS_SEND_PACKET 0x06 |
Definition at line 844 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_OFFLOAD_CONNECTION 0x05 |
Definition at line 843 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_START_ESI_LISTEN 0x0B |
Definition at line 846 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_START_LISTEN_SERVER 0x01 |
iSCSI Target opcode (OPC) values
Definition at line 839 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_STOP_ESI_LISTEN 0x0C |
Definition at line 847 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_TGT_STOP_LISTEN_SERVER 0x02 |
Definition at line 840 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_WQ_CREATE 0x42 |
Definition at line 185 of file sli4_iscsi.h.
| #define SLI4_OPC_ISCSI_WQ_DESTROY 0x43 |
Definition at line 186 of file sli4_iscsi.h.
| #define SLI4_PORT_DUPLEX_FULL 0x2 |
Definition at line 1266 of file sli4_iscsi.h.
| #define SLI4_PORT_DUPLEX_HALF 0x1 |
Definition at line 1265 of file sli4_iscsi.h.
| #define SLI4_PORT_DUPLEX_NONE 0x0 |
Definition at line 1264 of file sli4_iscsi.h.
| #define SLI4_PORT_LINK_STATUS_DOWN 0x0 |
Definition at line 1268 of file sli4_iscsi.h.
| #define SLI4_PORT_LINK_STATUS_UP 0x1 |
Definition at line 1269 of file sli4_iscsi.h.
| #define SLI4_PORT_SPEED_100_MBPS 0x2 |
Definition at line 1260 of file sli4_iscsi.h.
| #define SLI4_PORT_SPEED_10_GBPS 0x4 |
Definition at line 1262 of file sli4_iscsi.h.
| #define SLI4_PORT_SPEED_10_MBPS 0x1 |
Definition at line 1259 of file sli4_iscsi.h.
| #define SLI4_PORT_SPEED_1_GBPS 0x3 |
Definition at line 1261 of file sli4_iscsi.h.
| #define SLI4_PORT_SPEED_NO_LINK 0x0 |
Definition at line 1258 of file sli4_iscsi.h.
| #define SLI4_WQE_CONTEXT_UPDATE 0x07 |
Definition at line 1039 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_BLK_SIZE_1024 0x01 |
Definition at line 1054 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_BLK_SIZE_2048 0x02 |
Definition at line 1055 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_BLK_SIZE_4096 0x03 |
Definition at line 1056 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_BLK_SIZE_4104 0x05 |
Definition at line 1058 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_BLK_SIZE_512 0x00 |
Definition at line 1053 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_BLK_SIZE_520 0x04 |
Definition at line 1057 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_MODE_DISABLED 0x00 |
Definition at line 1047 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_MODE_INSERT 0x03 |
Definition at line 1050 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_MODE_PASS_THRU 0x01 |
Definition at line 1048 of file sli4_iscsi.h.
| #define SLI4_WQE_DIF_MODE_REMOVE 0x02 |
Definition at line 1049 of file sli4_iscsi.h.
| #define SLI4_WQE_INI_NOP 0x03 |
Definition at line 1037 of file sli4_iscsi.h.
| #define SLI4_WQE_INI_READ 0x05 |
Definition at line 1038 of file sli4_iscsi.h.
| #define SLI4_WQE_INI_TMF 0x02 |
Definition at line 1036 of file sli4_iscsi.h.
| #define SLI4_WQE_INI_WRITE 0x01 |
Work Queue Entry (WQE) types
Definition at line 1035 of file sli4_iscsi.h.
| #define SLI4_WQE_TGT_DATAIN 0x09 |
Definition at line 1041 of file sli4_iscsi.h.
| #define SLI4_WQE_TGT_SOS 0x0A |
Definition at line 1042 of file sli4_iscsi.h.
| #define SLI4_WQE_TGT_STS 0x08 |
Definition at line 1040 of file sli4_iscsi.h.
| #define SLI4_WQE_UNASSISTED 0x0B |
Definition at line 1043 of file sli4_iscsi.h.
| #define SLI_LOGIN_FLAG_DATA_PDU_IN_ORDER 0x04 |
Definition at line 137 of file sli4_iscsi.h.
| #define SLI_LOGIN_FLAG_DATA_SEQUENCE_IN_ORDER 0x08 |
Definition at line 138 of file sli4_iscsi.h.
| #define SLI_LOGIN_FLAG_IMMEDIATE_DATA 0x02 |
Definition at line 136 of file sli4_iscsi.h.
| #define SLI_LOGIN_FLAG_INITIAL_R2T 0x01 |
Definition at line 135 of file sli4_iscsi.h.
| typedef int32_t cqe_handler_t(sli4_t *, uint8_t *cqe, sli4_qentry_fields_t *fields) |
Definition at line 1279 of file sli4_iscsi.h.
| enum sli4_ip_type_type_e |
| Enumerator | |
|---|---|
| SLI_IP_TYPE_V4 | |
| SLI_IP_TYPE_V4_STATIC | |
| SLI_IP_TYPE_V4_DHCP | |
| SLI_IP_TYPE_V6 | |
| SLI_IP_TYPE_V6_ROUTABLE | |
| SLI_IP_TYPE_V6_LINK_LOCAL | |
Definition at line 46 of file sli4_iscsi.h.
| int32_t sli_cmd_iscsi_tcp_connect_v1 | ( | 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, | ||
| uint16_t | window_size, | ||
| uint8_t | window_scale, | ||
| uint32_t | tcp_mss | ||
| ) |
Definition at line 1593 of file sli4_iscsi.c.
| uint32_t sli_iscsi_io_length | ( | sli4_t * | , |
| uint8_t * | |||
| ) |
| uint32_t sli_iscsi_response_length | ( | sli4_t * | , |
| uint8_t * | |||
| ) |
| int32_t sli_wqe_ini_nop | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint8_t | dm, | ||
| uint32_t | cmdsn, | ||
| ocs_dma_t * | bhs, | ||
| ocs_dma_t * | payload1, | ||
| ocs_dma_t * | payload2, | ||
| uint32_t | exp_xfer_len, | ||
| uint16_t | icd_index | ||
| ) |
| int32_t sli_wqe_ini_read | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint16_t | lun, | ||
| uint32_t | exp_xfer_len, | ||
| uint32_t | cmdsn, | ||
| uint16_t | icd_index, | ||
| ocs_hal_dif_info_t * | dif_info, | ||
| sli4_sge_t * | sgl, | ||
| uint32_t | n_sge | ||
| ) |
| int32_t sli_wqe_ini_tmf | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint16_t | lun, | ||
| uint32_t | cmdsn, | ||
| uint16_t | icd_index, | ||
| sli4_sge_t * | sgl, | ||
| uint32_t | n_sge | ||
| ) |
| int32_t sli_wqe_ini_write | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint16_t | lun, | ||
| uint32_t | exp_xfer_len, | ||
| uint32_t | cmdsn, | ||
| uint16_t | icd_index, | ||
| ocs_hal_dif_info_t * | dif_info, | ||
| sli4_sge_t * | sgl, | ||
| uint32_t | n_sge | ||
| ) |
| int32_t sli_wqe_tgt_datain | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| ocs_dma_t * | bhs, | ||
| uint16_t | lun, | ||
| uint8_t | dm, | ||
| uint8_t | underrun, | ||
| uint8_t | overrun, | ||
| uint32_t | exp_xfer_len, | ||
| uint16_t | icd_index, | ||
| uint16_t | ref_icd_index, | ||
| uint32_t | data_sn, | ||
| uint8_t | piggy_back_status, | ||
| ocs_hal_dif_info_t * | dif_info, | ||
| sli4_sge_t * | sgl, | ||
| uint32_t | n_sge | ||
| ) |
| int32_t sli_wqe_tgt_sos | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| ocs_dma_t * | bhs, | ||
| ocs_dma_t * | payload1, | ||
| ocs_dma_t * | payload2, | ||
| uint16_t | lun, | ||
| uint8_t | dm, | ||
| uint32_t | exp_xfer_len, | ||
| uint16_t | icd_index | ||
| ) |
| int32_t sli_wqe_tgt_sts | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| ocs_dma_t * | bhs, | ||
| uint16_t | lun, | ||
| uint32_t | exp_xfer_len, | ||
| uint32_t | exp_data_sn, | ||
| uint32_t | itt, | ||
| uint16_t | icd_index, | ||
| uint16_t | ref_icd_index, | ||
| ocs_hal_dif_info_t * | dif_info, | ||
| uint32_t | r2t_offset | ||
| ) |
| int32_t sli_wqe_unassisted | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| uint8_t | set_dm, | ||
| uint8_t | incr_statsn, | ||
| uint8_t | is_login, | ||
| ocs_dma_t * | bhs, | ||
| ocs_dma_t * | payload1, | ||
| ocs_dma_t * | payload2, | ||
| uint32_t | exp_xfer_len, | ||
| uint16_t | icd_index | ||
| ) |
| int32_t sli_wqe_update_context | ( | sli4_t * | sli4, |
| void * | buf, | ||
| size_t | size, | ||
| ocs_hal_target_login_options_t * | lgn_options, | ||
| uint32_t | statsn | ||
| ) |