| 1870 | } |
| 1871 | |
| 1872 | static void check_for_missing_keep_alive(struct ena_adapter *adapter) |
| 1873 | { |
| 1874 | if (!(adapter->active_aenq_groups & BIT(ENA_ADMIN_KEEP_ALIVE))) |
| 1875 | return; |
| 1876 | |
| 1877 | if (adapter->keep_alive_timeout == ENA_HW_HINTS_NO_TIMEOUT) |
| 1878 | return; |
| 1879 | |
| 1880 | if (unlikely((rte_get_timer_cycles() - adapter->timestamp_wd) >= |
| 1881 | adapter->keep_alive_timeout)) { |
| 1882 | PMD_DRV_LOG(ERR, "Keep alive timeout\n"); |
| 1883 | ena_trigger_reset(adapter, ENA_REGS_RESET_KEEP_ALIVE_TO); |
| 1884 | ++adapter->dev_stats.wd_expired; |
| 1885 | } |
| 1886 | } |
| 1887 | |
| 1888 | /* Check if admin queue is enabled */ |
| 1889 | static void check_for_admin_com_state(struct ena_adapter *adapter) |
no test coverage detected