All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Ryan Wolfe <rnwolfe@google.com>
Cc: dev@dpdk.org, joshwash@google.com
Subject: Re: [PATCH v2] net/gve: enforce the Rx scatter offload in GQI
Date: Mon, 26 Oct 2026 10:02:17 -0700	[thread overview]
Message-ID: <20261026100217.2730cc07@phoenix.local> (raw)
In-Reply-To: <20261022212819.1750996-1-rnwolfe@google.com>

On Thu, 22 Oct 2026 17:28:18 -0400
Ryan Wolfe <rnwolfe@google.com> wrote:

> rte_eth_dev_configure() sets the MTU from rxmode.mtu without calling
> mtu_set, and keeps Rx queues that are already set up. Stopping the port
> and reconfiguring it with a larger MTU, or without
> RTE_ETH_RX_OFFLOAD_SCATTER, therefore skipped both the MTU change check
> and the Rx queue setup check. gve also never gave the device that MTU.
> 
> Even with the MTU programmed, a GQI device does not limit what it
> receives to it: on a network with a larger MTU it still delivers
> bigger frames, chained over several Rx buffers. So the configuration
> checks alone cannot keep chained mbufs from an application that did
> not enable scatter.
> 
> Move the configuration check into gve_rx_check_scatter() and call it
> from gve_dev_start() as well as gve_dev_mtu_set(), program the
> configured MTU into the device at start, and have the GQI Rx path drop
> a frame that spans more than one buffer, counted in the Rx errors,
> when the port has not enabled scatter. A dropped descriptor's mbuf is
> now freed, since the refill replaces it.
> 
> Fixes: cffdca824388 ("net/gve: refuse an MTU that needs Rx scatter when it is off")
> 
> Reported-by: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Ryan Wolfe <rnwolfe@google.com>
> ---

Looks good applied to next-net

      reply	other threads:[~2026-10-26 17:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  2:28 [PATCH] net/gve: advertise Rx scatter in GQI queue format Ryan Wolfe
2026-10-19 17:01 ` Stephen Hemminger
2026-10-19 20:20 ` [PATCH v2 0/2] net/gve: Rx scatter for GQI Ryan Wolfe
2026-10-19 20:20   ` [PATCH v2 1/2] net/gve: advertise Rx scatter in GQI queue format Ryan Wolfe
2026-10-19 20:20   ` [PATCH v2 2/2] net/gve: refuse an MTU that needs Rx scatter when it is off Ryan Wolfe
2026-10-20 15:08   ` [PATCH v2 0/2] net/gve: Rx scatter for GQI Stephen Hemminger
2026-10-21 18:25   ` [PATCH] net/gve: check the Rx scatter MTU at device start Ryan Wolfe
2026-10-22 17:00     ` Stephen Hemminger
2026-10-22 21:28       ` [PATCH v2] net/gve: enforce the Rx scatter offload in GQI Ryan Wolfe
2026-10-26 17:02         ` 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=20261026100217.2730cc07@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=joshwash@google.com \
    --cc=rnwolfe@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.