From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11048606A322 for ; Thu, 3 Dec 2026 23:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=fWlZoO7f Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5107640698; Fri, 4 Dec 2026 00:26:45 +0100 (CET) Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) by mails.dpdk.org (Postfix) with ESMTPS id 9FFAF40697 for ; Fri, 4 Dec 2026 00:26:43 +0100 (CET) Received: by mail-oa1-f71.google.com with SMTP id 586e51a60fabf-49dd26d6f07so377757fac.0 for ; Thu, 03 Dec 2026 15:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796340402; x=1796945202; darn=dpdk.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vtHylVd8ZWPj5zn4jf5563dieMenHcXAwtbYwwypDXY=; b=fWlZoO7fssA2Jghq2evG4Iae2cmXVuAi8Dj95piGU+sG9IMZfGagltYiLGrxHfA+Cz hvC4tmCC8BCk50uhQwOPfT0BbZTQtIIweHvrC0deTkShIiDf4+nddZ5X9hqjYov/J/oN KlPoYJ6bmO83t7Xe9OfGJnfurEcfOXGWPh5YitSySLAKiDuo2YGokpLjvFv1zyqZnK6Y cvjgWNiHaYS+oAy3v6bqlpPQ733EUJibfJvZgt5lN2tU0ySZtNFO5F9omov3EZWI8MdI Tl1Jd7xsANU3vZkzDh3ogZp9MwRn+Yy4OgzY8Dir1vX2ZGv+rafL9p61LZ2p0OQV7Hp1 iNNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796340402; x=1796945202; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vtHylVd8ZWPj5zn4jf5563dieMenHcXAwtbYwwypDXY=; b=q6QOvy3oy/HpImIyU8YWutsIqITdZHMN+fqdfwIfWmPa0KUdDzFjYOqQa8BwqZdFkT WkaClbv1yrvJkMuQ3bW4Hc/l9NL0n7+eMQ2KhF7ggue2n3YrGc7m6kZGWzRDBu8SkLtg MOc2A/SqlNqnsU2Jqwa/cbrkS/gfTV8gt1ElZX2vM2C+yWOStrhlJTmWt2OpJ67lBwm9 W0mpo3sHlj6sieNymanDN8W3ZdDpxIasKslfOUYuM9XIMdEpYR+HcONw0tQvekuGF24s +hhrb5+l2cV1qRazm0omJ5Vv2n889WU2rZDEoLX/aXfaFo8R/M8bLDATmIujfe7IXk3W rlHg== X-Gm-Message-State: APuU4Z9g6MWFI4cXOo621eswKVsQHafs2rAF6uFcXLfcaXMhBIszztUB 5QR0quT5VcjC6pfT2eQ+qEYYY/ABWQtZR9RMHt7NA/I9xCE2HByFI8vo3k+3CvelfxkGr6o/NuL wsy6R+dmmRx/M/g== X-Received: from oacm11-n2.prod.google.com ([2002:a05:6870:f08b:20b0:4b0:1fc9:4b6]) (user=joshwash job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6870:670c:b0:493:d7c8:c71f with SMTP id 586e51a60fabf-4e3d66140b3mr92293fac.27.1796340402089; Thu, 03 Dec 2026 15:26:42 -0800 (PST) Date: Thu, 3 Dec 2026 15:26:24 -0800 In-Reply-To: <20261203232637.1044501-1-joshwash@google.com> X-Archived-By: Mime-Version: 1.0 References: <20261203232637.1044501-1-joshwash@google.com> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261203232637.1044501-2-joshwash@google.com> Subject: [PATCH 01/12] net/gve: disable queue start and stop From: Joshua Washington To: Joshua Washington , Junfeng Guo Cc: dev@dpdk.org, Mark Blasko , stable@dpdk.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Mark Blasko Stopping a single Rx or Tx queue only resets the software state of the queue. The queue is never destroyed on the device, and starting it again does not create it on the device either, so the device keeps its stale position in the ring and may keep using buffers that have already been released. Afterwards, the device and driver no longer agree on which descriptors are valid. On DQO Tx queues, this makes the device process zeroed descriptors, which it treats as malicious driver behavior, disabling the queue. Fixing this requires creating and destroying individual queues on the device. Until that is supported, remove the queue start and stop ops, so that applications get -ENOTSUP instead of a broken queue. All queues are still started and stopped along with the device. Fixes: b044845bb015 ("net/gve: support queue start/stop") Cc: stable@dpdk.org Suggested-by: Joshua Washington Signed-off-by: Mark Blasko Signed-off-by: Joshua Washington --- doc/guides/nics/features/gve.ini | 1 - drivers/net/gve/gve_ethdev.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/doc/guides/nics/features/gve.ini b/doc/guides/nics/features/gve.ini index 5566511b6b..909858d8f0 100644 --- a/doc/guides/nics/features/gve.ini +++ b/doc/guides/nics/features/gve.ini @@ -5,7 +5,6 @@ ; [Features] Speed capabilities = Y -Queue start/stop = Y MTU update = Y Scattered Rx = P TSO = Y diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c index 8ee52fdd47..e71f97646f 100644 --- a/drivers/net/gve/gve_ethdev.c +++ b/drivers/net/gve/gve_ethdev.c @@ -1477,10 +1477,6 @@ static const struct eth_dev_ops gve_eth_dev_ops = { .tx_queue_setup = gve_tx_queue_setup, .rx_queue_release = gve_rx_queue_release, .tx_queue_release = gve_tx_queue_release, - .rx_queue_start = gve_rx_queue_start, - .tx_queue_start = gve_tx_queue_start, - .rx_queue_stop = gve_rx_queue_stop, - .tx_queue_stop = gve_tx_queue_stop, .flow_ops_get = gve_flow_ops_get, .link_update = gve_link_update, .stats_get = gve_dev_stats_get, @@ -1505,10 +1501,6 @@ static const struct eth_dev_ops gve_eth_dev_ops_dqo = { .tx_queue_setup = gve_tx_queue_setup_dqo, .rx_queue_release = gve_rx_queue_release_dqo, .tx_queue_release = gve_tx_queue_release_dqo, - .rx_queue_start = gve_rx_queue_start_dqo, - .tx_queue_start = gve_tx_queue_start_dqo, - .rx_queue_stop = gve_rx_queue_stop_dqo, - .tx_queue_stop = gve_tx_queue_stop_dqo, .flow_ops_get = gve_flow_ops_get, .link_update = gve_link_update, .stats_get = gve_dev_stats_get, -- 2.56.1.915.g69d5ec7298-goog