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 36E67606A32C for ; Thu, 3 Dec 2026 23:27:22 +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=EeVVqxDJ Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16E9740B8C; Fri, 4 Dec 2026 00:26:54 +0100 (CET) Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) by mails.dpdk.org (Postfix) with ESMTPS id AC28F40687 for ; Fri, 4 Dec 2026 00:26:52 +0100 (CET) Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-47cfa971c9eso2245920fac.0 for ; Thu, 03 Dec 2026 15:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796340411; x=1796945211; 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=i4CVG04IsS0udejZAEikE4n69yyAL8LGpJArYaD0wEI=; b=EeVVqxDJmmn/aQvwUWiInfXfE6+yG7gRQ3l/KIZ/zDI63gZ9qdP6GrkR5fOpYyAHMf XVmGK097OY90moaV3Tg0Q8ZrbUI1TwHAqjGgyK9Go0PLfaKF/AxQSFMHBfdXXh3FqgYi cLJZH5+GEMmboWVfXO17dVku/KSxXfSmjdHt5afVJuitYASaJ1VpqrwGSuxF1OccIQbH 1UfYnxgIRxBPIpgbWjhKzfX96BcMdHfZ8FTg56MIUpwkXkSMZeQ5s9pzvb/KWhxnGwhL 0jPc6yblXQ7KxDvGBE/UJHE+Cf6oHfkmsMBO64bB4gdZvraNfQQZddpmEGvu09yRf0Cv Ncng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796340411; x=1796945211; 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=i4CVG04IsS0udejZAEikE4n69yyAL8LGpJArYaD0wEI=; b=QI9AQYHdLRGFw66CvXz5e4XztHtHHWvSXDQv3dbF5PXgmYipKmYXd1hbO5YE/8tadW GRKe1uR3GRptCv1DusKmz8tjg7G2PPPdj+y0Vlm8EC3q8ZzCcEedJnTQuM7HeRj6upoA wJ4Kea81VAHo4IwLZs9v+xwDG4mXBn9JCG6wQfiV44CqCveJ6QiXO+zXAoLesD5qBQgL TqHtQEggTh3tskRRa6yg3GKfiMLqBTuRsqPJ/SEyduK5z/4FIPKRZ0YBsvALPa+E3M6I Glw/uQYRj+XfxL3SG9xH6MVqa9mW+cNpPxoWJ3/vifqRBNR7PlFBlqwf+S68oD9HrBjZ tKtA== X-Gm-Message-State: APuU4Z+Ym3qFRoVZlLLUtr8+J/JuqtQpfZX0UecyUeUnlqiBgTgBAfIm l8P893QE4e8jmx8kvkps4fm12Z9gO21ioyjMAaEyleMfRJuvauQxEnm2E5tZy8mShDrZ4uj8cgF VE923Nxy5DflDxw== X-Received: from iogp17-n2.prod.google.com ([2002:a05:6602:c3d1:20b0:9e3:4940:4cc3]) (user=joshwash job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6820:1523:b0:71a:eacb:d285 with SMTP id 006d021491bc7-71bdf63fc3fmr2961000eaf.11.1796340411251; Thu, 03 Dec 2026 15:26:51 -0800 (PST) Date: Thu, 3 Dec 2026 15:26:28 -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-6-joshwash@google.com> Subject: [PATCH 05/12] net/gve: do not count unsent DQO Tx packets as oerrors From: Joshua Washington To: Joshua Washington , Jeroen de Borst , Junfeng Guo , Rushil Gupta Cc: dev@dpdk.org, stable@dpdk.org, "Jasper Tran O'Leary" 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 In DPDK, unsent packets in a burst due to ring exhaustion are returned to the application. Such packets should not be counted as errors, as they were not dropped, and the packets themselves have no errors. gve_tx_burst_dqo() erroneously counts such packets as oerrors, artificially inflating the statistic. Count only packets actually dropped and freed by the driver (nb_tx - nb_sent) in errors. Fixes: 98e3bbc9159b ("net/gve: support basic stats for DQO") Cc: stable@dpdk.org Signed-off-by: Joshua Washington Reviewed-by: Jasper Tran O'Leary --- drivers/net/gve/gve_tx_dqo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/gve/gve_tx_dqo.c b/drivers/net/gve/gve_tx_dqo.c index 72730eb1c5..db432fd2f6 100644 --- a/drivers/net/gve/gve_tx_dqo.c +++ b/drivers/net/gve/gve_tx_dqo.c @@ -480,7 +480,7 @@ gve_tx_burst_dqo(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) txq->stats.packets += nb_sent; txq->stats.bytes += bytes; - txq->stats.errors += nb_pkts - nb_sent; + txq->stats.errors += nb_tx - nb_sent; } return nb_tx; -- 2.56.1.915.g69d5ec7298-goog