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 reset path
Date: Tue, 13 Jan 2026 07:38:42 -0800	[thread overview]
Message-ID: <20260113073842.7069f6c6@phoenix.local> (raw)
In-Reply-To: <20251230022958.3842695-1-jtranoleary@google.com>

On Tue, 30 Dec 2025 02:29:58 +0000
"Jasper Tran O'Leary" <jtranoleary@google.com> wrote:

> Currently, the driver does not include any reset functionality and hence
> cannot be reset by the application. This patch introduces a driver
> callback for the `rte_eth_dev_reset` function which will reset the
> device.
> 
> Also, as a precaution, null out device pointers to rx and tx queue
> arrays when we release the queues during a reset.
> 
> Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com>
> Reviewed-by: Joshua Washington <joshwash@google.com>
> ---

AI code review spotted some minor things, please provide an updated version.

Patch 2: net/gve: add reset path
Verdict: ⚠️ Needs minor fixes
Commit Message:

✅ Subject line: 23 characters (within 60 limit)
✅ Correct prefix net/gve:
✅ Imperative mood, lowercase, no trailing period
✅ Signed-off-by and Reviewed-by present

Warnings:

Unnecessary initialization (line 45): int err = 0; — err is always assigned before use in gve_init_priv(). Should be just int err;
Missing release notes: Adding dev_reset callback is a new feature. Per guidelines, new features/API additions should update doc/guides/rel_notes/ for the current release.
Missing documentation: The PMD documentation in doc/guides/nics/gve.rst should be updated to reflect that reset is now supported, and doc/guides/nics/features/gve.ini should list the feature if applicable.

Code:

✅ Good defensive check for secondary process
✅ Good check that device is stopped before reset
✅ Error handling is appropriate
✅ NULL-ing queue pointers after release is good practice

      parent reply	other threads:[~2026-01-13 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-30  2:29 [PATCH] net/gve: add reset path Jasper Tran O'Leary
2025-12-30 18:21 ` Stephen Hemminger
2026-01-13 15:38 ` 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=20260113073842.7069f6c6@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.