DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Washington <joshwash@google.com>
To: Joshua Washington <joshwash@google.com>,
	Junfeng Guo <junfengg@nvidia.com>,
	Xiaoyun Li <xiaoyun.li@intel.com>
Cc: dev@dpdk.org, "Jasper Tran O'Leary" <jtranoleary@google.com>,
	stable@dpdk.org
Subject: [PATCH 06/12] net/gve: disable unsupported TCP LRO offload
Date: Thu,  3 Dec 2026 15:26:29 -0800	[thread overview]
Message-ID: <20261203232637.1044501-7-joshwash@google.com> (raw)
In-Reply-To: <20261203232637.1044501-1-joshwash@google.com>

From: Jasper Tran O'Leary <jtranoleary@google.com>

Currently, the driver advertises TCP large receive offload (LRO) on DQO
devices and enables hardware receive side coalescing (RSC) when
requested, even though the receive datapath does not yet handle
coalesced packets.

Stop advertising TCP LRO and leave hardware RSC disabled until full LRO
support is implemented.

Fixes: 71dea04cdf9a ("net/gve: support device info and configure")
Cc: stable@dpdk.org

Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com>
Signed-off-by: Joshua Washington <joshwash@google.com>
---
 drivers/net/gve/base/gve_adminq.c | 1 -
 drivers/net/gve/gve_ethdev.c      | 6 +-----
 drivers/net/gve/gve_ethdev.h      | 1 -
 3 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/net/gve/base/gve_adminq.c b/drivers/net/gve/base/gve_adminq.c
index 65e865939f..893763f3a3 100644
--- a/drivers/net/gve/base/gve_adminq.c
+++ b/drivers/net/gve/base/gve_adminq.c
@@ -799,7 +799,6 @@ static int gve_adminq_create_rx_queue(struct gve_priv *priv, u32 queue_index)
 			cpu_to_be16(rxq->rx_buf_len);
 		cmd.create_rx_queue.rx_buff_ring_size =
 			cpu_to_be16(rxq->nb_rx_desc);
-		cmd.create_rx_queue.enable_rsc = !!(priv->enable_rsc);
 	}
 
 	return gve_adminq_issue_cmd(priv, &cmd);
diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index e71f97646f..39921c14c8 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -255,9 +255,6 @@ gve_dev_configure(struct rte_eth_dev *dev)
 		priv->rss_config.alg = GVE_RSS_HASH_TOEPLITZ;
 	}
 
-	if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_TCP_LRO)
-		priv->enable_rsc = 1;
-
 	if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_TIMESTAMP) {
 		err = rte_mbuf_dyn_rx_timestamp_register(&priv->mbuf_timestamp_offset,
 							 &priv->mbuf_timestamp_mask);
@@ -968,8 +965,7 @@ gve_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 		dev_info->rx_offload_capa |=
 				RTE_ETH_RX_OFFLOAD_IPV4_CKSUM   |
 				RTE_ETH_RX_OFFLOAD_UDP_CKSUM	|
-				RTE_ETH_RX_OFFLOAD_TCP_CKSUM	|
-				RTE_ETH_RX_OFFLOAD_TCP_LRO;
+				RTE_ETH_RX_OFFLOAD_TCP_CKSUM;
 	}
 
 	dev_info->default_rxconf = (struct rte_eth_rxconf) {
diff --git a/drivers/net/gve/gve_ethdev.h b/drivers/net/gve/gve_ethdev.h
index 0370dc1479..f13ce31223 100644
--- a/drivers/net/gve/gve_ethdev.h
+++ b/drivers/net/gve/gve_ethdev.h
@@ -350,7 +350,6 @@ struct gve_priv {
 	uint16_t default_tx_num_queues; /* default num tx queues to set up */
 	uint16_t default_rx_num_queues; /* default num rx queues to set up */
 	enum gve_queue_format queue_format; /* see enum gve_queue_format */
-	uint8_t enable_rsc;
 
 	uint16_t max_nb_txq;
 	uint16_t max_nb_rxq;
-- 
2.56.1.915.g69d5ec7298-goog


  parent reply	other threads:[~2026-12-03 23:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 23:26 [PATCH 00/12] net/gve: stability fixes and DQO scattered Rx support Joshua Washington
2026-12-03 23:26 ` [PATCH 01/12] net/gve: disable queue start and stop Joshua Washington
2026-12-03 23:26 ` [PATCH 02/12] net/gve: free partially received GQI Rx packet Joshua Washington
2026-12-03 23:26 ` [PATCH 03/12] net/gve: fix integer underflow in GQI Rx path Joshua Washington
2026-12-03 23:26 ` [PATCH 04/12] net/gve: fix integer truncation in GQI QPL Tx path Joshua Washington
2026-12-03 23:26 ` [PATCH 05/12] net/gve: do not count unsent DQO Tx packets as oerrors Joshua Washington
2026-12-03 23:26 ` Joshua Washington [this message]
2026-12-03 23:26 ` [PATCH 07/12] net/gve: drop multi-seg Rx packets if scatter is off Joshua Washington
2026-12-03 23:26 ` [PATCH 08/12] net/gve: reject non-power-of-2 ring sizes on DQO Joshua Washington
2026-12-03 23:26 ` [PATCH 09/12] net/gve: properly handle RSS realloc failures Joshua Washington
2026-12-03 23:26 ` [PATCH 10/12] net/gve: reject unsupported flow attributes and item masks Joshua Washington
2026-12-03 23:26 ` [PATCH 11/12] net/gve: fix mbuf leak on GQI Rx queue start Joshua Washington
2026-12-03 23:26 ` [PATCH 12/12] net/gve: support scattered Rx for DQO Joshua Washington
2026-12-04 19:13 ` [PATCH 00/12] net/gve: stability fixes and DQO scattered Rx support Stephen Hemminger

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=20261203232637.1044501-7-joshwash@google.com \
    --to=joshwash@google.com \
    --cc=dev@dpdk.org \
    --cc=jtranoleary@google.com \
    --cc=junfengg@nvidia.com \
    --cc=stable@dpdk.org \
    --cc=xiaoyun.li@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox