DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Hu <weh@linux.microsoft.com>
To: dev@dpdk.org, stephen@networkplumber.org
Cc: longli@microsoft.com, weh@microsoft.com
Subject: [PATCH v2 0/1] net/mana: add device reset support
Date: Fri,  8 May 2026 23:01:12 -0700	[thread overview]
Message-ID: <20260509060113.61686-1-weh@linux.microsoft.com> (raw)

From: Wei Hu <weh@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


             reply	other threads:[~2026-05-09  6:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-09  6:01 Wei Hu [this message]
2026-05-09  6:01 ` [PATCH v2 1/1] net/mana: add device reset support Wei Hu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260509060113.61686-1-weh@linux.microsoft.com \
    --to=weh@linux.microsoft.com \
    --cc=dev@dpdk.org \
    --cc=longli@microsoft.com \
    --cc=stephen@networkplumber.org \
    --cc=weh@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox