From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45AFD3043A4 for ; Mon, 2 Feb 2026 19:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770061176; cv=none; b=sqPbpFpN0djHXIEqV9ZriJ59n0HgAGmb3YflWOjgKv7sMwX7SJAfXh06X6OndYaDcD1YhsJijKtA8b/fbqgNDwoNk3F70g7IgfpLJDr3j5pHuxYsqJGKKaQKLU5RyIfNJB4DVAKARSMPw5DZdNZbFMJmNSUYX1lnAw4cOT8fNu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770061176; c=relaxed/simple; bh=xMWjIBemj+ovDo71k/lbnlBBE9tZnK7oQzi8YhPuLhs=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=lJ5pqoyzH7ogm2Kg8UE+vusiOGVlhA9IQYhMaGKokWkKsavTHx65W81cHhn51u/LnRwc+AAw0sir30E0zQ7VR8k4w6eoxCcv1xRCQitRvyIWR/XgCgyinhwCcxbE3/O0zwC6AXyuLigPoAILiLFT+XNyDQGV3Fm90qWGOHY07t4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--hramamurthy.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=M3fJQwLn; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--hramamurthy.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="M3fJQwLn" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2a8c273332cso127172495ad.1 for ; Mon, 02 Feb 2026 11:39:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770061175; x=1770665975; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=TzUehqNS0ybAXqn2p+RtPCZdOa9cTlWsLGkT2lUzyqo=; b=M3fJQwLnVxbmeOIt7+3ysxWjuTEN7VpdWOq7Z5co58+/GX6D9iYs6ZDCErePJq+Bou ZO2Zod/dVj1WlFoJQa9EjfCJQSplg0XByAOOJXDNaLh6F2fEER/LZhepN26TMisN01ok P+de48ZbmJfC/nZk/JEf2kHrJwmE81goprL6Vti8SuNHTjipgxzgymF/UZM5zu5O6ruU yy9gp8of62vNtHxV0UV/93sgPVMZo0owcEl1RugyfDQnlsDsU5DX8CHkOJ9y8PytF2b5 vSQR72JHjRlNZbDtoC8aXzdAzrkH8Onr97f95F14KoCw3FLUyzkZIVH+YUFYzEBY5+J2 zXmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770061175; x=1770665975; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TzUehqNS0ybAXqn2p+RtPCZdOa9cTlWsLGkT2lUzyqo=; b=iNIs/gPQA2P2hQlQF9SmTI+8XfGN7ChV6wFOHCCz3hjtg74hZ4ubqXjwKJNnwVprSA gZfeXe4XTGT6H32mod7Zns1aufsZr81HaFl1IXJwQvA5Hy4/i3Hkl856hphCOARkxNWX Z/CGxjIcEDOomRachHPB7+dtMH7426w1nW6jeTKJigGMlbXpQYsDH6E2Vd3GGw7+82bI ggHg5+AC2+iagEwLlv77c3vLAo/PxFGSNNAAn4oLr5+vmGIA3Kz9uAyY55f/Q+6UYobq wtw6zjZLT9y7xti11vJXlC/ZLU/Zx+BabjZO9tmpa7/LnAOiNmG7gMsXT9mOG0A5xEgZ YJ2g== X-Gm-Message-State: AOJu0YzauErcVZC7SFu8oLVA94vAoW/mVrStBCGXd39KyTw7Sw0oqRQG EAdwbaxvTPedfJQkvfKlcfiH45G5SSoHyLqVJ5Z8NmhgBrWxI1hUg+YBZ8iOhnU/Y2vL3X2xSK1 LwK5ADh9vZhwSqsHMLd2scdYYLzGVU/Iur8xqdGezGReuf0Mzh7sN+kvoxyTpUPPI0wKIR7GXTL 1aunppPJqR9vsamBYhIoU9tilTSM+4O2jvElg6y74wwmNcyAuyBJFyjQqQYoKajYE= X-Received: from pgc3.prod.google.com ([2002:a05:6a02:2f83:b0:c66:ac3e:e707]) (user=hramamurthy job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:1446:b0:37e:7e93:99cf with SMTP id adf61e73a8af0-392e0100349mr11565062637.37.1770061174526; Mon, 02 Feb 2026 11:39:34 -0800 (PST) Date: Mon, 2 Feb 2026 19:39:23 +0000 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.rc1.225.gd81095ad13-goog Message-ID: <20260202193925.3106272-1-hramamurthy@google.com> Subject: [PATCH net 0/2] gve: Stats reporting fixes From: Harshitha Ramamurthy To: netdev@vger.kernel.org Cc: joshwash@google.com, hramamurthy@google.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, ziweixiao@google.com, jordanrhee@google.com, nktgrg@google.com, kuozhao@google.com, yangchun@google.com, awogbemila@google.com, maolson@google.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.com, Max Yuan Content-Type: text/plain; charset="UTF-8" From: Max Yuan This series addresses two issues related to statistics in the gve driver. The first patch fixes a memory corruption issue that occurs when resizing the stats region during queue count changes. By allocating the maximum possible size upfront and aligning offset calculations with the NIC, we ensure stability and accuracy across reconfigurations. The second patch fixes the 'rx_dropped' counter by removing allocation failures and incorporating XDP transmit and redirect errors to provide a more accurate representation of dropped packets. Debarghya Kundu (1): gve: Fix stats report corruption on queue count change Max Yuan (1): gve: Correct ethtool rx_dropped calculation drivers/net/ethernet/google/gve/gve_ethtool.c | 77 ++++++++++++++++++++++++++-------------- drivers/net/ethernet/google/gve/gve_main.c | 4 +-- 2 files changed, 53 insertions(+), 28 deletions(-) -- 2.53.0.rc1.225.gd81095ad13-goog