patch 'net/gve: introduce Tx packet preparation for DQO format' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:53 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/a687059d70318b33bf337a3515e3a4306b1ce3ad
Thanks.
Kevin
---
>From a687059d70318b33bf337a3515e3a4306b1ce3ad Mon Sep 17 00:00:00 2001
From: Joshua Washington <joshwash at google.com>
Date: Mon, 9 Nov 2026 11:43:30 -0800
Subject: [PATCH] net/gve: introduce Tx packet preparation for DQO format
[ upstream commit ebdc248348732e2ad82125202838a7f08646a39e ]
Before this patch, packets that are invalid in the DQO format with
respect to offloads, descriptor limits, or packet size limits, are
dropped by the driver without any form of recourse for the application,
potentially leading to a disruption in traffic that can be hard to
debug.
Introduce tx_pkt_prepare for the DQ queue format to avoid dropping
packets without first giving the application a way to know that they
are invalid. For TSO packets, this method also computes the TCP
pseudo-header for packets with checksum offloading enabled. Note that
in this case, such packets must have L2/L3/L4 headers in the same mbuf
segment to pass tx_pkt_prepare.
Fixes: 403c671a46b6 ("net/gve: support TSO in DQO RDA")
Signed-off-by: Joshua Washington <joshwash at google.com>
Reviewed-by: Praveen Kaligineedi <pkaligineedi at google.com>
Reviewed-by: Ankit Garg <nktgrg at google.com>
---
drivers/net/gve/gve_ethdev.h | 3 ++
drivers/net/gve/gve_tx_dqo.c | 77 +++++++++++++++++++++++++++++++++++-
2 files changed, 78 insertions(+), 2 deletions(-)
diff --git a/drivers/net/gve/gve_ethdev.h b/drivers/net/gve/gve_ethdev.h
index db69ac1293..717a892d87 100644
--- a/drivers/net/gve/gve_ethdev.h
+++ b/drivers/net/gve/gve_ethdev.h
@@ -501,4 +501,7 @@ uint16_t
gve_tx_burst_dqo(void *txq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts);
+uint16_t
+gve_tx_pkt_prepare_dqo(void *txq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts);
+
void
gve_set_rx_function_dqo(struct rte_eth_dev *dev);
diff --git a/drivers/net/gve/gve_tx_dqo.c b/drivers/net/gve/gve_tx_dqo.c
index ae7a12d30c..fc4f768df6 100644
--- a/drivers/net/gve/gve_tx_dqo.c
+++ b/drivers/net/gve/gve_tx_dqo.c
@@ -4,4 +4,6 @@
*/
+#include <rte_net.h>
+
#include "gve_ethdev.h"
#include "base/gve_adminq.h"
@@ -129,5 +131,5 @@ gve_tx_clean_descs_dqo(struct gve_tx_queue *txq, uint16_t nb_descs) {
/* Validate packet lengths against the device limits. */
static inline bool
-gve_tx_validate_pkt(const struct rte_mbuf *tx_pkt, bool is_tso)
+gve_tx_validate_pkt_limits(const struct rte_mbuf *tx_pkt, bool is_tso)
{
uint32_t headlen;
@@ -287,4 +289,74 @@ gve_fill_tx_pkt_desc(struct gve_tx_queue *txq, uint16_t *tx_id,
}
+uint16_t
+gve_tx_pkt_prepare_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
+{
+ struct gve_tx_queue *txq = tx_queue;
+ uint16_t i;
+
+ for (i = 0; i < nb_pkts; i++) {
+ struct rte_mbuf *tx_pkt;
+ uint16_t nb_descs;
+ bool tso;
+ int err;
+
+ tx_pkt = tx_pkts[i];
+
+#ifdef RTE_ETHDEV_DEBUG_TX
+ const char *reason;
+
+ if (rte_mbuf_check(tx_pkt, true, &reason)) {
+ rte_errno = EINVAL;
+ return i;
+ }
+
+ err = rte_validate_tx_offload(tx_pkt);
+ if (err != 0) {
+ rte_errno = -err;
+ return i;
+ }
+#endif
+
+ tso = !!(tx_pkt->ol_flags & RTE_MBUF_F_TX_TCP_SEG);
+ if (!gve_tx_validate_pkt_limits(tx_pkt, tso)) {
+ rte_errno = EINVAL;
+ return i;
+ }
+
+ if (tso) {
+ nb_descs = gve_tx_pkt_nb_data_descs(tx_pkt) + 1;
+ } else {
+ /* Handle non-TSO packets by directly checking nb_segs.
+ * The packet has already been validated to be no larger
+ * than 9728B, so every descriptor is guaranteed to only
+ * require a single descriptor.
+ * If the packet does not meet the hardware descriptor
+ * limits, fall back to the mbuf walk in case the
+ * mbuf has empty segments.
+ */
+ if (tx_pkt->nb_segs <= GVE_TX_MAX_DATA_DESCS)
+ continue;
+ nb_descs = gve_tx_pkt_nb_data_descs(tx_pkt);
+ }
+ if (!gve_tx_validate_descs(txq, tx_pkt, nb_descs, tso)) {
+ rte_errno = ENOTSUP;
+ return i;
+ }
+
+ /* If TSO is enabled, the L4 pseudo header checksum must be
+ * seeded. In this case, headers must all be in the same buffer.
+ */
+ if (tso) {
+ err = rte_net_intel_cksum_prepare(tx_pkt);
+ if (err != 0) {
+ rte_errno = -err;
+ return i;
+ }
+ }
+ }
+
+ return nb_pkts;
+}
+
uint16_t
gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
@@ -333,5 +405,5 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
csum = !!(ol_flags & GVE_TX_CKSUM_OFFLOAD_MASK_DQO);
- if (!gve_tx_validate_pkt(tx_pkt, tso)) {
+ if (!gve_tx_validate_pkt_limits(tx_pkt, tso)) {
txq->stats.invalid_pkts++;
rte_pktmbuf_free(tx_pkt);
@@ -685,3 +757,4 @@ gve_set_tx_function_dqo(struct rte_eth_dev *dev)
{
dev->tx_pkt_burst = gve_tx_burst_dqo;
+ dev->tx_pkt_prepare = gve_tx_pkt_prepare_dqo;
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:49.576559798 +0000
+++ 0367-net-gve-introduce-Tx-packet-preparation-for-DQO-form.patch 2026-12-03 12:52:39.282718977 +0000
@@ -1 +1 @@
-From ebdc248348732e2ad82125202838a7f08646a39e Mon Sep 17 00:00:00 2001
+From a687059d70318b33bf337a3515e3a4306b1ce3ad Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ebdc248348732e2ad82125202838a7f08646a39e ]
+
@@ -20 +21,0 @@
-Cc: stable at dpdk.org
@@ -31 +32 @@
-index 3a8ddfbbb6..0370dc1479 100644
+index db69ac1293..717a892d87 100644
@@ -34 +35 @@
-@@ -652,4 +652,7 @@ uint16_t
+@@ -501,4 +501,7 @@ uint16_t
@@ -43 +44 @@
-index 3a20109a5d..78eaef3e3d 100644
+index ae7a12d30c..fc4f768df6 100644
@@ -53 +54 @@
-@@ -126,5 +128,5 @@ gve_tx_clean_descs_dqo(struct gve_tx_queue *txq, uint16_t nb_descs) {
+@@ -129,5 +131,5 @@ gve_tx_clean_descs_dqo(struct gve_tx_queue *txq, uint16_t nb_descs) {
@@ -60 +61 @@
-@@ -284,4 +286,74 @@ gve_fill_tx_pkt_desc(struct gve_tx_queue *txq, uint16_t *tx_id,
+@@ -287,4 +289,74 @@ gve_fill_tx_pkt_desc(struct gve_tx_queue *txq, uint16_t *tx_id,
@@ -135 +136 @@
-@@ -330,5 +402,5 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
+@@ -333,5 +405,5 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
@@ -142 +143 @@
-@@ -684,3 +756,4 @@ gve_set_tx_function_dqo(struct rte_eth_dev *dev)
+@@ -685,3 +757,4 @@ gve_set_tx_function_dqo(struct rte_eth_dev *dev)
More information about the stable
mailing list