[PATCH 0/2] net/mana: add device reset support for service events

Wei Hu weh at microsoft.com
Wed Apr 29 10:49:53 CEST 2026


This series adds support for handling hardware service reset events
in the MANA and netvsc drivers.

When the MANA kernel driver receives a hardware service event, it
initiates a device reset and notifies userspace via
IBV_EVENT_DEVICE_FATAL. The MANA PMD handles this by performing an
automatic teardown and recovery sequence, using ethdev recovery
events (ERR_RECOVERING, RECOVERY_SUCCESS, RECOVERY_FAILED) to
notify upper layers.

Patch 1 implements the reset logic in the MANA driver, including
RCU-based data path quiescence, multi-process doorbell remap via
IPC, and a control thread for the recovery sequence.

Patch 2 adds recovery event handlers in the netvsc driver so it
can switch the data path to synthetic during reset and back to VF
after successful recovery.

Long Li (1):
  net/netvsc: handle VF recovery events for service reset

Wei Hu (1):
  net/mana: add device reset support

 drivers/net/mana/mana.c      | 924 ++++++++++++++++++++++++++++++++---
 drivers/net/mana/mana.h      |  33 +-
 drivers/net/mana/meson.build |   2 +-
 drivers/net/mana/mp.c        |  89 +++-
 drivers/net/mana/mr.c        |   6 +-
 drivers/net/mana/rx.c        |  24 +-
 drivers/net/mana/tx.c        |  40 +-
 drivers/net/netvsc/hn_vf.c   | 106 ++++
 8 files changed, 1121 insertions(+), 103 deletions(-)

-- 
2.34.1



More information about the stable mailing list