MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_for_missing_keep_alive

Function check_for_missing_keep_alive

dpdk/drivers/net/ena/ena_ethdev.c:1872–1886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1870}
1871
1872static 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 */
1889static void check_for_admin_com_state(struct ena_adapter *adapter)

Callers 1

ena_timer_wd_callbackFunction · 0.85

Calls 1

ena_trigger_resetFunction · 0.85

Tested by

no test coverage detected