[PATCH v2 0/1] net/mana: add device reset support
Wei Hu
weh at linux.microsoft.com
Sat May 9 08:01:12 CEST 2026
From: Wei Hu <weh at microsoft.com>
Add support for handling hardware service reset events in the
MANA driver. 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.
The driver uses ethdev recovery events (ERR_RECOVERING,
RECOVERY_SUCCESS, RECOVERY_FAILED) to notify upper layers of
the reset lifecycle, and a PCI device removal event callback
to distinguish hot-remove from service reset.
Changes since v1:
- Removed net/netvsc patch from this series (will be submitted
separately)
- Simplified reset exit: mana_reset_exit now calls
mana_reset_exit_delay directly instead of spawning a separate
thread, since it already runs on mana_reset_thread
- Added __rte_no_thread_safety_analysis annotations to fix clang
-Wthread-safety build errors
- Switched from rte_thread_create_control to
rte_thread_create_internal_control per DPDK preference
- Fixed declaration-after-statement style issues
- Fixed stale comments and removed unnecessary blank lines
- Added comments explaining intentionally ignored return values
Wei Hu (1):
net/mana: add device reset support
drivers/net/mana/mana.c | 928 +++++++++++++++++++++++++++++++----
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 +-
7 files changed, 1016 insertions(+), 106 deletions(-)
--
2.34.1
More information about the dev
mailing list