From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 45A80303A37 for ; Mon, 2 Feb 2026 19:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770061176; cv=none; b=dtmQ8fkmCcR4cZbak9XKO1t8O6SbCrPfifXHrVdxPJQMw8hSNenLtyxTg30Ii845khqJM76pmikKVpSp1gNzvMXKqiEW6RaxKMelbC1GfXbMOB6zjwAOeCOhuWoNnaTChqh+wJwyl6GPga+oiKmqYA9Z9YFpGoP3P2LL2MHDZaI= 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=Ua4YHtxG; arc=none smtp.client-ip=209.85.214.201 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="Ua4YHtxG" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2a90e8b54f0so44264285ad.2 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=1770061174; x=1770665974; 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=Ua4YHtxGfXmxf+dAs7W3Drd1s7luodKyLWIEB/fHy5M3h2rBw7Qk8GTX3imgReKYDn 1baKbuBLTumA9FNmONjXccdu/u8FLsBJxmPJVze976FqDXyfm6TmIZDYVdLYsxhKp11M wRfz92lmBv8WMbIn223fs4y9uSLoF+3RXB/ITCy5uona26Sf+n3SnpJT+srKUWYpyNSB k493PfpYgXRW5E49GM4u5SxRJMvi917kUYgPRCur+yev51zkhz2JB/dz9KG3mAi4/9vj j4N60B/zLQ8bedYrdeYMO+YHpLtzYmwwv0DlKdYBCsCE+lcKgrPW9OrOx7itM7BW05Iv Gdfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770061174; x=1770665974; 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=c2bKjWnWKw/s4ZrT7Dbaf3Oj87oDrm59D/VANVsFw6nzUu41tzkTSlV2+LkxO+o7Uj NdPB0wEA+CovBv8sqQd13WV9fUU19wxDm8QLAvFnXJ8xxuwM77QCgyceKxTWyQqM0xVX YD0CXi33GWOGMdr2JwWucH8V+a1MO8sonFE9r51YF+ez62HachD13jQMKxc75/x1ykCP e9l4t4tVNsC1q6b8WTBBZwyyscjUAc/uovkKJsTief92MUKtD4gBNmiqGRDfQu/ffYmz /Wy2ISjs57GEWK3dYafKCIThlqIc1IfsH0JwpX0xoKFEka3Zma2d9vEUfsiRjyPRJneJ lXSw== X-Forwarded-Encrypted: i=1; AJvYcCWxhQoSOY4hQXWfx5/yDes2VG9xnM98zgJnKyZjd+D3HQ0bKSPlj9j+RZ0UPjuFhf+6AltwTgVEj3edT7I=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9VZKqIC7nDaTMMvF7aPKAHQ4j9/gH8lBA4Y9M9zNdMjOfec0D GsrSzqx6bnNUwr9+EHrLzwNLflZTdW/NdVom4VBdcL7rDNQKkQ/xdEBKMx2qIvzMaraD8zE7KwK 35/+vXolxLvfDdr97Gxnve0skKg== 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: linux-kernel@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