38 #if !defined(__OCS_XPORT_H__)
39 #define __OCS_XPORT_H__
44 typedef struct ocs_xport_fcfi_s {
47 uint32_t hold_frames:1;
55 typedef struct ocs_xport_rq_thread_info_s {
83 typedef struct ocs_xport_link_stats_s {
135 typedef struct ocs_xport_host_stats_s {
154 typedef struct ocs_xport_fcp_statistics_s {
162 typedef struct ocs_xport_host_statistics_s {
169 typedef union ocs_xport {
232 #endif // __OCS_XPORT_H__
ocs_xport_fcp_statistics_t fcp_stats
ocs_atomic_t io_total_pending
uint32_t receive_kbyte_count
uint32_t invalid_transmission_word_error_count
uint32_t elastic_buffer_overrun_error_count
ocs_lock_t io_pending_lock
uint32_t advertised_receive_bufftor_to_buffer_credit
uint32_t total_exchanges_responder
uint32_t pend_frames_processed
uint32_t fec_corrected_blocks_count
uint32_t transmit_sequence_count
void ocs_device_stop_stats_timers(ocs_t *ocs)
ocs_atomic_t io_total_free
uint32_t received_dropped_no_aer_count
uint32_t primitive_sequence_error_count
ocs_xport_link_stats_t link_stats
void ocs_xport_config_stats_timer(void *arg)
Get FC link and host Statistics periodically.
uint32_t dropped_frames_due_to_no_xri_count
uint32_t receive_f_bsy_count
uint32_t loss_of_signal_error_count
ocs_atomic_t io_pending_count
ocs_xport_rq_thread_info_t * rq_thread_info
uint32_t uint32_t transmit_kbyte_count
ocs_atomic_t io_pending_recursing
int32_t ocs_xport_detach(ocs_xport_t *xport)
Detaches the transport from the device.
uint32_t empty_xri_pool_count
int32_t ocs_xport_attach(ocs_xport_t *xport)
Do as much allocation as possible, but do not initialization the device.
uint32_t received_dropped_no_available_rpi_resources_count
Transport private values.
ocs_lock_t pend_frames_lock
ocs_timer_t fc_stats_timer
int32_t ocs_xport_control(ocs_xport_t *xport, ocs_xport_ctrl_e cmd,...)
Perform transport attach function.
ocs_xport_stats_t fc_stats
uint32_t dropped_frames_due_to_no_rq_buffer_count
ocs_atomic_t io_alloc_failed_count
uint32_t received_eofdti_count
uint32_t link_failure_error_count
ocs_atomic_t io_total_alloc
uint32_t received_soff_count
uint32_t total_exchanges_originator
uint32_t receive_sequence_count
uint32_t received_eofni_count
ocs_list_t io_pending_list
int32_t ocs_xport_initialize(ocs_xport_t *xport)
Initializes the device.
ocs_atomic_t io_active_count
bool fc_stats_timer_shutdown
ocs_xport_stats_t fc_stats_sysfs
uint32_t current_transmit_buffer_to_buffer_credit
ocs_list_t nodes_free_list
uint32_t received_dropped_no_available_xri_resources_count
uint32_t advertised_transmit_buffer_to_buffer_credit
ocs_xport_fcfi_t fcfi[SLI4_MAX_FCFI]
uint32_t loss_of_sync_error_count
uint32_t primitive_sequence_event_timeout_count
uint32_t fec_uncorrectable_blocks_count
uint32_t received_eofa_count
int32_t ocs_xport_cb(void *arg, ocs_hal_xport_event_e event)
callback function for xport from HAL.
ocs_xport_t * ocs_xport_alloc(ocs_t *ocs)
Allocate a transport object.
FCFI lookup/pending frames.
void ocs_xport_free(ocs_xport_t *xport)
Free a transport object.
ocs_xport_host_statistics_t stats
#define SLI4_MAX_FCFI
Maximum value for a FCFI.
uint32_t current_receive_buffer_to_buffer_credit
uint32_t arbitration_fc_al_timout_count
int32_t ocs_xport_status(ocs_xport_t *xport, ocs_xport_status_e cmd, ocs_xport_stats_t *result)
Return status on a link.
uint32_t receive_p_bsy_count
uint64_t control_requests
ocs_xport_host_stats_t host_stats
uint32_t configured_link_state
uint32_t transmit_frame_count
uint32_t empty_rq_timeout_count
Structure to hold the information related to an RQ processing thread used to increase 40G performance...
uint32_t receive_frame_count