All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Jasper Tran O'Leary" <jtranoleary@google.com>
Cc: dev@dpdk.org, Joshua Washington <joshwash@google.com>
Subject: Re: [PATCH] net/gve: add passive device-requested reset
Date: Sun, 5 Apr 2026 16:03:18 -0700	[thread overview]
Message-ID: <20260405160318.6d23ddd9@phoenix.local> (raw)
In-Reply-To: <20260327002038.3386577-1-jtranoleary@google.com>

On Fri, 27 Mar 2026 00:20:38 +0000
"Jasper Tran O'Leary" <jtranoleary@google.com> wrote:

> In addition to application-initiated resets, during normal operation,
> the device can indicate the need to reset by writing a value to a device
> status register. This patch introduces an alarm that polls the
> status of that register and informs the application of the need to
> reset. The application is responsible for registering a callback that
> will execute in the event that the alarm discovers that the device
> requests a reset.
> 
> Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com>
> Reviewed-by: Joshua Washington <joshwash@google.com>

Makes sense, AI analysis had one item worth noting.
Not sure where documentation related (if any) should go.

The alarm callback calls rte_eth_dev_callback_process() synchronously,
which means the application's reset handler runs in the alarm thread
context. The documentation example shows calling rte_eth_dev_reset()
directly in the callback — this works (rte_eal_alarm_cancel from within
a callback is allowed), but a production application would likely want
to set a flag and handle the reset from the main thread. Worth a note
in the doc example.
The polling interval is 1 second vs 20 seconds in the kernel gve driver.
Not wrong, but more aggressive — is there a reason for the shorter interval?
Otherwise looks good.

Applied to next-net

      parent reply	other threads:[~2026-04-05 23:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27  0:20 [PATCH] net/gve: add passive device-requested reset Jasper Tran O'Leary
2026-03-27 16:15 ` Stephen Hemminger
2026-04-05 23:03 ` Stephen Hemminger [this message]

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=20260405160318.6d23ddd9@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=joshwash@google.com \
    --cc=jtranoleary@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.