On Fri, Nov 06, 2026 at 09:40:12AM +0000, Ciara Loftus wrote:
> iavf_dev_watchdog_enable() runs on the interrupt thread from the link
> change and reset impending handlers, while iavf_dev_watchdog_disable()
> runs on a control thread from dev_stop and dev_close. Disable clears
> `watchdog_enabled` before cancelling the alarm. An enable landing in
> between sets the flag again and arms a new alarm, which the cancel then
> removes. The flag is left set with no alarm armed, so every later enable
> is a no-op and the watchdog is dead until the port is re-probed.
>
> Serialise enable and disable with a spinlock held across the flag
> update and the alarm set or cancel.
>
> Fixes: 4c9b1d2ff616 ("net/iavf: refactor watchdog")
> Cc: [email protected]
>
> Signed-off-by: Ciara Loftus <[email protected]>
> ---
> drivers/net/intel/iavf/iavf.h | 1 +
> drivers/net/intel/iavf/iavf_ethdev.c | 37 +++++++++++++++++-----------
> 2 files changed, 23 insertions(+), 15 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH v2 1/3] net/iavf: fix crash in Tx drain o... Bruce Richardson
- [PATCH v2 3/3] net/iavf: fix watchdog clearing reset stat... Ciara Loftus
- Re: [PATCH v2 3/3] net/iavf: fix watchdog clearing r... Bruce Richardson
- [PATCH v3 0/4] iavf reset path fixes Ciara Loftus
- [PATCH v3 2/4] net/iavf: fix event handler leak on i... Ciara Loftus
- [PATCH v3 3/4] net/iavf: fix watchdog clearing reset... Ciara Loftus
- [PATCH v4 0/4] iavf reset path fixes Ciara Loftus
- [PATCH v4 3/4] net/iavf: fix watchdog clearing r... Ciara Loftus
- Re: [PATCH v4 3/4] net/iavf: fix watchdog cl... Bruce Richardson
- [PATCH v4 4/4] net/iavf: fix watchdog enable rac... Ciara Loftus
- Re: [PATCH v4 4/4] net/iavf: fix watchdog en... Bruce Richardson
- [PATCH v4 2/4] net/iavf: fix event handler leak ... Ciara Loftus
- [PATCH v4 1/4] net/iavf: fix crash in Tx drain o... Ciara Loftus
- Re: [PATCH v4 0/4] iavf reset path fixes Bruce Richardson
- [PATCH v3 4/4] net/iavf: fix watchdog enable racing ... Ciara Loftus
- [PATCH v3 1/4] net/iavf: fix crash in Tx drain on PF... Ciara Loftus
- [PATCH v2 2/3] net/iavf: fix event handler leak on init f... Ciara Loftus
- Re: [PATCH v2 2/3] net/iavf: fix event handler leak ... Bruce Richardson

