[PATCH 2/2] net/netvsc: handle VF recovery events for service reset
Stephen Hemminger
stephen at networkplumber.org
Wed Apr 29 16:56:41 CEST 2026
On Wed, 29 Apr 2026 01:49:55 -0700
Wei Hu <weh at microsoft.com> wrote:
> Register callbacks for RTE_ETH_EVENT_ERR_RECOVERING,
> RTE_ETH_EVENT_RECOVERY_SUCCESS, and RTE_ETH_EVENT_RECOVERY_FAILED
> events on the VF port to handle MANA service resets.
>
> - On ERR_RECOVERING: switch data path to synthetic but keep the
> VF device attached in DPDK
> - On RECOVERY_SUCCESS: switch data path back to VF
> - On RECOVERY_FAILED: do full VF removal (same as INTR_RMV)
> - Unregister all recovery callbacks during detach, removal, and
> close
>
> This ensures that during a service reset (kernel suspend/resume
> without PCI remove), netvsc keeps the VF attached and seamlessly
> switches back to it after recovery, without requiring a PCI
> hot-add event.
>
> Signed-off-by: Long Li <longli at microsoft.com>
> Signed-off-by: Wei Hu <weh at microsoft.com>
> ---
This patch is failing build.
Clang with lock annotations is seeing problems
More information about the stable
mailing list