opnsense-src/sys/dev/ena
Dawid Gorecki 78554d0c70 ena: start timer service on attach
The timer service was started when the interface was brought up and it
was stopped when it was brought down. Since ena_up requires the device
to be responsive, triggering the reset would become impossible if the
device became unresponsive with the interface down.

Since most of the functions in timer service already perform the check
to see if the device is running, this only requires starting the callout
in attach and stopping it when bringing the interface up or down to
avoid race between different admin queue calls.

Since callout functions for timer service are always called with the
same arguments, replace callout_{init,reset,drain} calls with
ENA_TIMER_{INIT,RESET,DRAIN} macros.

Submitted by: Dawid Gorecki <dgr@semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.
2022-01-23 20:48:32 +01:00
..
ena.c ena: start timer service on attach 2022-01-23 20:48:32 +01:00
ena.h ena: start timer service on attach 2022-01-23 20:48:32 +01:00
ena_datapath.c ena: rework tx req_id validation logic 2022-01-23 20:38:12 +01:00
ena_datapath.h ena: properly handle IPv6 L4 checksum offload 2022-01-23 20:38:01 +01:00
ena_netmap.c ena: Share ena_global_lock between driver instances 2021-09-02 01:06:37 +02:00
ena_netmap.h Add SPDX license tag to the ENA driver files 2020-11-18 15:07:34 +00:00
ena_rss.c ena: Implement full RSS reconfiguration 2021-09-02 01:06:53 +02:00
ena_rss.h ena: Implement full RSS reconfiguration 2021-09-02 01:06:53 +02:00
ena_sysctl.c ena: merge ena-com v2.5.0 upgrade 2022-01-23 20:27:13 +01:00
ena_sysctl.h ena: hide sysctl nodes for unused ENA queues 2021-06-24 16:02:39 +02:00