Article View: linux.kernel.netdev
Article #7183Re: [PATCH net] ipvlan: fix RX byte accounting for local traffic
From: Eric Dumazet
Date: Sun, 25 Oct 2026 10:54
Date: Sun, 25 Oct 2026 10:54
22 lines
9738 bytes
9738 bytes
Le dim. 25 oct. 2026 ร 06:21, Xia Yan <yanxia@cmss.chinamobile.com> a รฉcrit : > > Hi, > > > - How the issue was discovered > > Found while comparing ipvlan's local forwarding and external receive > paths: skb->len still includes the Ethernet header on the local path, > but no longer does after eth_type_trans() on the external path. Both > the unicast and multicast RX accounting added ETH_HLEN without > distinguishing the two. > > Confirmed with UDP traffic between ipvlan devices in separate network > namespaces: five IPv4 packets with 32-byte UDP payloads increased > rx_bytes by 440 bytes instead of 370. This is probably not a net candidate. No need for CC: stable Also macvlan has the same issue, maybe wait for net-next reopening to send a series fixing both ?
Technical Details
Message-ID:
<CAL4WiioxAR1ZBjVJNgYfLM0hUwyHapRu+TAUzedpOpe0yheH3w@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351531-linux-kernel-netdev=dewy.ruReferences:
<20261025014251.542973-1-yanxia@cmss.chinamobile.com> <179289279836.3327.9494173903555653580@kernel.org> <20261025052117.603790-1-yanxia@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351531-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] ipvlan: fix RX byte accounting for local traffic
Date: Sun, 25 Oct 2026 11:54:27 +0100
Organization: Usenet Network
Message-ID: <CAL4WiioxAR1ZBjVJNgYfLM0hUwyHapRu+TAUzedpOpe0yheH3w@mail.gmail.com>
References: <20261025014251.542973-1-yanxia@cmss.chinamobile.com>
<179289279836.3327.9494173903555653580@kernel.org> <20261025052117.603790-1-yanxia@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="993848"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1PVtcd3d0DyGdbifZSQZzIANEjQ= sha256:eqz8SjE9vFSfrLR6CrXSQMCGgnAiWN1mYtdVBBlHGEg=
sha1:0xGDnojebpxSYMx2k7Iu3R5W8VQ= sha256:BXovmMhO47RsMNiarlF2M3C+A0h/sUyufqkYogLNYh8=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 22C22125B2F; Sun, 25 Oct 2026 13:55:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id pTrhXlIAPVzF;
Sun, 25 Oct 2026 13:55:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351531-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id D17F2125B2C; Sun, 25 Oct 2026 13:55:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id B78673E3C5; Sun, 25 Oct 2026 10:54:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792925690;
b=llCelGEwlAJA15CdJa4ENevc0nAmymLyuntb1dbpPb1RCnglEpD9sM1HAtlcLf8hxlnZ
EBw++0BXJr7DMP5Zl0HJ4WTMk+GGQjo/V+j7s37x3O4x4jZAml61a3w7HdQZyfXXsPgDU
gpMNtMb4VdHPxcc57SDgpLLMf7fVOxED4v5PDecI1bYNU7YDjNkjTRkWnwBPJIkrCnxjm
8VhVVMsAslzMW/pqteV4433JBavBnaxTcKoopGYk48UimNvl/ACfTIhCVR86lqrmSoi4n
3uIFMBbZZD+0XfrvHmgVCQ4Oa6J192L0F4YSxv9vc8kmuT3rAnXYSxuitsVcyhMVezw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792925690;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type:Content-Transfer-Encoding;
bh=YUpmzKZTRSq0SLS/cbOe7m9gR2A9I/YOZNEIBpgGCsI=;
b=l7Q3+uIAbABblWHGF/oEyKdRCSH4lRqC6LYC9AxsQzhMfUGxfGHZs23qzuLDX9m6o7rz
8DQL1nJzQH58XGymzPYNV4pZM+M4RLD4jxt6di5nmruJa6X4xAX02432xNdpq+QePvt40
+Mrv0N5NcRONs0AGbARpr5MxYIcVQ3WZMsWlkSkvrVQ2pE2ZFsvSZZZeCN8lS5omLdWLr
Tcb/9NtkmBEJ5+HlOlljHfBtbmd7BevcU0ORdeZPGMebsKCJe/u265EvTPfBu26E/G6fk
IdYnIfA/WckGJmST3z+rI9Sl2rvzzhHxYppvd6/olSeUM19AzP8li5ey3VDau/nPADQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="AigJWNR/";
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 89EDD606A322;
Sun, 25 Oct 2026 10:54:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AigJWNR/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792925679;
b=HkJrYJ8BhSdeUZmr0DsZFDVi17uqmtDbU9q0CSgt0SOCOyDKg6u/Q0PUXVfPtxnp4+Le
CudcPJ5ycWw1gfGUm7KNBvNd5T/X7PmUgLXXpIJf6mf3HsksBGztpRDLWNVFlmwgbApU4
bWNopOS06+x6Rsbn8OKI0nrsEJO83EikrgInt/s+O77ZAP60DVNaXt1r5qk3DgNDANT61
cYhqwDdSuePCp4a1cYGypv22InjFTXrPQPShmKPBeo80O3jBsoA8FT1g4KblSxG68J2iS
DDzq9t9ZQCVT5lk3mxm4cQhtiC8kfv4c/3GdSEJKP9BRSxgU9ZprbjPormjW0RzEo+g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792925679;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=YUpmzKZTRSq0SLS/cbOe7m9gR2A9I/YOZNEIBpgGCsI=;
b=av0Xv77m3mbomDsoOF5d/qNgZXl1wbDDr3mhfA8UafnWLaqIbv7pdrOxYl0YOfmLw1fa
+JICub6+cg/bOvaJ7vixBi0IgpH9OEXnySYB8YzmGsim4nAICfMMvFBUlBMVcKLE8OS46
0TozZh39jC37rhI9+tUTpVWReBLPKIl22rLml4vcGynadRay2tblSfkNYjMfn6E8/oaoz
xRdhmOXGLAvp+l34Mf/kOveaasbRX+0C4AJl74dgP8I3Hc0YWuxEOKXYJ1jLPUtM2lYJ9
2L4qvnHSVgTVVFksPWeK87n4I7GfEa7rbAkS7ncx9B51GwHGqNLTY08jWlHQLo5Q3Gw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="AigJWNR/";
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ED0C606A31A
for <netdev@vger.kernel.org>; Sun, 25 Oct 2026 10:54:39 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C3531F031E3
for <netdev@vger.kernel.org>; Sun, 25 Oct 2026 10:54:39 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1792925679;
bh=YUpmzKZTRSq0SLS/cbOe7m9gR2A9I/YOZNEIBpgGCsI=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=AigJWNR/+w9M1f3eGhsJQnhY9rfg/vq+tfMFMWTNAe3uhkosA/h25XBDwx1meMa0w
4f9N4GKfTSjexHYvUUPagHiSCmIwW24WPruwPszaG3iH2lbkOXc+uLTaFpFIBpcb7s
x6bQf/Ayj/oT5kEBrrnSrji7chnxlPMPsDIG92rJhTty0XchLnKmZX95lj1DcO1m9T
vc2WN9zrhwtVzA7xxTJeAIZr13hPm7g/5BaAJl4iHIyrsZzUFsqBF+vpXK8ja5osfS
Fl4hjJjsPUiIxsxguJu1VtlWnj4NnvWGQRcH2tS854qOw9Jrchxk+TNOMK0tvDiGgU
lECDcT/Ze9jww==
X-Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-4a76f63b243so2311162fac.0
for <netdev@vger.kernel.org>; Sun, 25 Oct 2026 03:54:39 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AKwUvBzSSSwMtx6ofHJHdbjEb7JYIHXrk5jLpo6s6X9w1aVxyii1R/6o6W/rEQmtA55+bsWiD5sNWBI=@vger.kernel.org
X-Gm-Message-State: AFq9FYJS/W4cOt91anMWDww9uPsCGqcrUiXHcpbrpl3DC4pa0/18anRF
6ZT1unMUbewn96w18uHk2Ouev4AIXVcCN+ADzHvplHmvWD/HQPnnnvTJ+eynCHb2MzQCUTDvqk7
y04zlwXv1n8Z4Mp0reREfZOKgd3hZp20=
X-Received: by 2002:a05:6870:5b8f:b0:493:c06d:7700 with SMTP id
586e51a60fabf-4a83f57ff87mr1836034fac.25.1792925678477; Sun, 25 Oct 2026
03:54:38 -0700 (PDT)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261025052117.603790-1-yanxia@cmss.chinamobile.com>
X-Gmail-Original-Message-ID: <CAL4WiioxAR1ZBjVJNgYfLM0hUwyHapRu+TAUzedpOpe0yheH3w@mail.gmail.com>
X-Gm-Features: AclHuK8-3dHCgmtdtpDWr-ENFR_K6te6aI0Mm1zxluZuaww3MP1c6hfoi2JnGxk
X-Cc: netdev-bot+sinfo@kernel.org, netdev@vger.kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, dskr99@gmail.com,
maheshb@google.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org,
yana06070@163.com