From: Stephen Hemminger <stephen@networkplumber.org>
To: Ryan Wolfe <rnwolfe@google.com>
Cc: dev@dpdk.org, joshwash@google.com, stable@dpdk.org
Subject: Re: [PATCH] net/gve: advertise Rx scatter in GQI queue format
Date: Mon, 19 Oct 2026 10:01:17 -0700 [thread overview]
Message-ID: <20261019100117.6cbf60f8@phoenix.local> (raw)
In-Reply-To: <20261019022824.189319-1-rnwolfe@google.com>
On Sun, 18 Oct 2026 22:28:24 -0400
Ryan Wolfe <rnwolfe@google.com> wrote:
> Since jumbo frame support for GQI, a frame that does not fit in one Rx
> buffer arrives as several descriptors with GVE_RXF_PKT_CONT set on all
> but the last, and gve_rx_burst() chains them into one multi-segment
> mbuf. The driver never reports RTE_ETH_RX_OFFLOAD_SCATTER, though, so
> an application that enables multi-segment receive only when the port
> claims it treats every packet as one segment. VPP is one: it masks its
> requested Rx offloads with rx_offload_capa, so on a GQI gVNIC it never
> sets its multi-segment flag, reads only the first buffer of a jumbo
> frame and drops it as malformed. With 4 KB buffers that caps the usable
> MTU near 4000 bytes on a VPC whose MTU is 8896.
>
> Report SCATTER for GQI. DQO posts one buffer per packet and does not
> chain, so it is unchanged.
>
> Fixes: 496d4d2c8b54 ("net/gve: support jumbo frame for GQI")
> Cc: stable@dpdk.org
>
> Signed-off-by: Ryan Wolfe <rnwolfe@google.com>
> ---
Subject: Re: [PATCH] net/gve: advertise Rx scatter in GQI queue format
Applies to main and builds with -Dwerror=true. The Fixes hash
resolves.
Warnings
1. GQI chains buffers whether or not the application enabled scatter.
With this patch an application can request
RTE_ETH_RX_OFFLOAD_SCATTER, but gve_rx() follows GVE_RXF_PKT_CONT
regardless, so one that does not still gets multi-segment mbufs
whenever the MTU exceeds the Rx buffer. Advertising the capability
is only half the contract; without SCATTER the driver must refuse
the configuration rather than hand back chains the application
did not ask for. Check it in gve_rx_queue_setup() before the rxq
allocation:
uint64_t offloads = dev->data->dev_conf.rxmode.offloads |
conf->offloads;
uint32_t buf_len = RTE_MIN((uint32_t)GVE_RX_MAX_BUF_SIZE_GQI,
RTE_ALIGN_FLOOR(rte_pktmbuf_data_room_size(pool) -
RTE_PKTMBUF_HEADROOM,
GVE_RX_BUF_ALIGN_GQI));
if (!(offloads & RTE_ETH_RX_OFFLOAD_SCATTER) &&
dev->data->mtu + RTE_ETHER_HDR_LEN + GVE_RX_PAD > buf_len) {
PMD_DRV_LOG(ERR, "MTU %u needs Rx scatter",
dev->data->mtu);
return -EINVAL;
}
and apply the same test in gve_dev_mtu_set() against the configured
Rx queues, since the MTU can change after queue setup. A separate
patch in the same series is fine.
Info
2. The commit message says DQO "does not chain, so it is unchanged".
DQO Rx ignores end_of_packet, so with buffers smaller than the
frame (2 KB mbufs, 8896 MTU) each buffer is delivered as its own
packet. Not introduced here, but DQO should either chain or refuse
that configuration too.
next prev parent reply other threads:[~2026-10-19 17:01 UTC|newest]
Thread overview: 5+ 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 [this message]
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
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=20261019100117.6cbf60f8@phoenix.local \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=joshwash@google.com \
--cc=rnwolfe@google.com \
--cc=stable@dpdk.org \
/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