Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ena/ena.h
Show First 20 Lines • Show All 397 Lines • ▼ Show 20 Lines | struct ena_adapter { | ||||
struct task reset_task; | struct task reset_task; | ||||
struct taskqueue *reset_tq; | struct taskqueue *reset_tq; | ||||
int wd_active; | int wd_active; | ||||
sbintime_t keep_alive_timeout; | sbintime_t keep_alive_timeout; | ||||
sbintime_t missing_tx_timeout; | sbintime_t missing_tx_timeout; | ||||
uint32_t missing_tx_max_queues; | uint32_t missing_tx_max_queues; | ||||
uint32_t missing_tx_threshold; | uint32_t missing_tx_threshold; | ||||
/* Task updating hw stats */ | |||||
struct task stats_task; | |||||
struct taskqueue *stats_tq; | |||||
/* Statistics */ | /* Statistics */ | ||||
struct ena_stats_dev dev_stats; | struct ena_stats_dev dev_stats; | ||||
struct ena_hw_stats hw_stats; | struct ena_hw_stats hw_stats; | ||||
}; | }; | ||||
#define ENA_DEV_LOCK mtx_lock(&adapter->global_mtx) | #define ENA_DEV_LOCK mtx_lock(&adapter->global_mtx) | ||||
#define ENA_DEV_UNLOCK mtx_unlock(&adapter->global_mtx) | #define ENA_DEV_UNLOCK mtx_unlock(&adapter->global_mtx) | ||||
Show All 23 Lines |