Article View: linux.kernel.netdev
Article #11309Re: [PATCH net 4/6] seg6: discard CHECKSUM_COMPLETE after the End.BPF program
From: Andrea Mayer
Date: Wed, 04 Nov 2026 20:13
Date: Wed, 04 Nov 2026 20:13
28 lines
11021 bytes
11021 bytes
On Tue, 3 Nov 2026 10:28:52 +0800 Hangbin Liu <hangbin.liu@linux.dev> wrote: > [snip] > > + /* The program may have changed the packet and seg6_bpf_has_valid_srh() > > + * may rewrite the SRH Hdr Ext Len below. > > + * skb->csum may then no longer be the checksum of the full packet. > > + */ > > + skb_checksum_complete_unset(skb); > > + > > Should we move this a bit later? > > > if (srh_state->srh && !seg6_bpf_has_valid_srh(skb)) > > goto drop; > > local_unlock_nested_bh(&seg6_bpf_srh_states.bh_lock); > > -- > > e.g. after this. As there is not need to do the setting if the skb is dropped. > [snip] Hi Hangbin, Right, I will move it there in v2. Thanks, Andrea
Technical Details
Message-ID:
<20261104211320.8ad5cbc7408d3229e4f34693@uniroma2.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356904-linux-kernel-netdev=dewy.ruReferences:
<20261031225033.64-1-andrea.mayer@uniroma2.it> <20261031225033.64-5-andrea.mayer@uniroma2.it> <aulG5DJroKs6BuzS@fedora>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-356904-linux-kernel-netdev=dewy.ru
From: andrea.mayer@uniroma2.it (Andrea Mayer)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 4/6] seg6: discard CHECKSUM_COMPLETE after the
End.BPF program
Date: Wed, 4 Nov 2026 21:13:20 +0100
Organization: Usenet Network
Message-ID: <20261104211320.8ad5cbc7408d3229e4f34693@uniroma2.it>
References: <20261031225033.64-1-andrea.mayer@uniroma2.it>
<20261031225033.64-5-andrea.mayer@uniroma2.it>
<aulG5DJroKs6BuzS@fedora>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="3497722"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ZqwnCoaIlvO0MF5gUuVOHagryOo= sha256:6Pv8WTRG5z9TxhP1PWc3RzIIKA/G5zbwOBawkRvcBXY=
sha1:HAxX2Ri+gL8Ke/zUU/ieFbMAghE= sha256:syo5dBLf5fVpRKHJAbS3VLVH5D3h87P9C3M60qASqVU=
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 76C68112DAC; Thu, 5 Nov 2026 01:02:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -4.874
X-Spam-Status: No, score=-4.874 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
NICE_REPLY_A=-1.724, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=neutral
reason="invalid (unsupported algorithm ed25519-sha256)"
header.d=uniroma2.it header.b=QaUScylS; dkim=pass (2048-bit key)
header.d=uniroma2.it header.b=Rvkz0H3z
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 O_RVUiFsJn1P;
Thu, 5 Nov 2026 01:01:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-356904-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=uniroma2.it
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 37E84112CF7; Thu, 5 Nov 2026 01:01:44 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 1E05261981A; Wed, 4 Nov 2026 21:11:20 +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=1793823263;
b=0RfbD/MRUQ60d4mhVhbQaDA+m/euCAmEvApkG7LU24bAO6qyxnn6Rf87Zzzx1akP45nR
WVA0J/LH/Fh3bj9OWLpkqdk2NCUUgBhq8XZIsF07rSza++laho5fH6+mRwhpD4Xhnmp4Q
11yqTIhrqCqN2ypLY5UznqSj1rmAtmvLOaQKCD3/Ib32NUU+b01YrkSbcSE3WwRA37DLS
P9A0zXQSGj3/Fbih45wyQJvPleaCNCo+PW6DKs8NGCgWvoggkeUWVJ4Uc9YPidWJj59pr
RElqMwlYc5C1Kl2rvpOu/oOxnSoi3pXEsDIheuRof5eZwaU1Z5gpN15uR3Ifh0nfLNw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793823263;
h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
DKIM-Signature:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:
References:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:Mime-Version:
Content-Type:Content-Transfer-Encoding:X-Virus-Scanned:
X-Virus-Status;
bh=7jJ7rZhR/RZuRnAPG07TM1AxcQZjBAxPgS58g9my108=;
b=qe/BXmaLKvAzpSFz92rmCgh4x1+ltvapaquW9KnjiI7NNTmWpmjWhjyOKPlZ0UPceLGF
fGldrNFtIINJfqPC0BSBFZq78BqIvPevQ+L+XRnZtyBUTDSQAZh73iqzjXyCq+LF6901r
2Rmzq4d16RYtg4d/FSwORQ/KfMhT5//TxkUWGNj8i+QFRwzux9wDyg4HEO2D3kP7LqI56
D9wstlYu8HcHNWl/T6USwRxVR/ONXshHEDTBQ8AYq+V6Ejb2D4L4wsTeO3e9i/7vqQqFg
KUlTZq/hfmkfwbo0kj9KZBkgpkM78A2Ru9OmOWNVznwN4MwSQZUZp2YT51E9f1tXEJQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=QaUScylS;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=Rvkz0H3z;
dmarc=pass header.from=uniroma2.it;
spf=pass smtp.mailfrom=uniroma2.it;
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 47EF460A380D;
Wed, 4 Nov 2026 20:14:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=QaUScylS;
dkim=pass (2048-bit key, unprotected) header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=Rvkz0H3z
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=160.80.4.35
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793823249;
b=ORaw54Al5bOPhXIvJbcWf2A55wC7Q+5KzDAj75npy2gY2Ik5WA1YWnyrPyJFJwVInkTU
5iQh3LimsxBNmMEgy2BzBcWy1jYt4eMDIICk486vhklsVvTBIpwJZVd60ec1GhqSCJKQ8
hO2kLyWOppWBW8GQBB5S6aOAtIh9d0yM/x21rbFgaThIrQ1P938FfY9qDG+c3On4uIE3D
Hc4uAwNXrcga91P6TzLtUzxGZChE2cdejJQ4vIkrUw6/Ay/kGFsXLm5rtxF2XVgFWSyE3
ubkU7km9hX18zx+pnd+vt69ZDjv1EsylegyxQmXM+OGW+HJsGiOeXcJYSwbhFpUVqTQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793823249;
h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:Date:
From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:
Mime-Version:Content-Type:Content-Transfer-Encoding:X-Virus-Scanned:
X-Virus-Status;
bh=7jJ7rZhR/RZuRnAPG07TM1AxcQZjBAxPgS58g9my108=;
b=bcRhFumaVQt9Ik64SiDwlyEQ4+UOF97gfVYUsizLKWH4xJBxN4Zw5E9S047qe2aLT06Y
oiLoRBJHj52w/LJVakOcpZdJZY3Sflfzf+2NaDycvIbAlGTTcd4IY/hXT9UY+S6VvuyBM
8jGza/68bRjJc9PGKDmVDfClDjcrVmuyy3oQmKubz7GooyHy+XlTul3EjkgKH2fBgd1M6
B6mUoyvD6HFSzEKUhT71Elw7jMnelra1BgLkwzVCvDeAqHIXnMc1PfbPlfj0ZRnRsUXFx
WxVx6ox/WMa6wsb9k7WS6WDJO1P06ktvXivOfd5FSE4OeF272i9GyzK5htA89pPQUdQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=uniroma2.it;
spf=pass smtp.mailfrom=uniroma2.it;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=QaUScylS;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=Rvkz0H3z;
arc=none smtp.remote-ip=160.80.4.35
X-Received: from smtp.uniroma2.it (smtp-2015.uniroma2.it [160.80.4.35])
by smtp.subspace.kernel.org (Postfix) with ESMTP id C884F606A331;
Wed, 4 Nov 2026 20:14:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C884F606A331
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniroma2.it
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniroma2.it
X-Received: from smtpauth-2019-1.uniroma2.it (smtpauth-2019-1.uniroma2.it [160.80.5.46])
by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id 6A4KDOvu025984;
Wed, 4 Nov 2026 21:13:29 +0100
X-Received: from lubuntu-18.04 (unknown [160.80.103.126])
by smtpauth-2019-1.uniroma2.it (Postfix) with ESMTPSA id 4C52D121681;
Wed, 4 Nov 2026 21:13:20 +0100 (CET)
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=uniroma2.it;
s=ed201904; t=1793823200; h=from:from:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=7jJ7rZhR/RZuRnAPG07TM1AxcQZjBAxPgS58g9my108=;
b=QaUScylS77oxqOdjv+06mPgody1sZJqj0PaFfLendc0FDJFxaUO1pUpCpFvxTCWCGow81v
GpWHWo0epkj4dPBA==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma2.it; s=rsa201904;
t=1793823200; h=from:from:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=7jJ7rZhR/RZuRnAPG07TM1AxcQZjBAxPgS58g9my108=;
b=Rvkz0H3zARBQLYxOnoA9dQ7RX/gUWZckCSmEdP9HrjFdj4g7J66mpWNril99QK2brJEEcc
cwyWvSqMbzD6ttP3VnT4yzOz7Q+4OpoR0Mo+G1nYgV7mjpTe0yvYX6sY6VsZDzKoFsmXR8
dc2TDvZCquLESvG+VBAIzvsXd+SExvckp3N+us3hlR/uOpJ0k1TN+Nqkm+ck7YPP5/luEE
BkxWtsxknhnu55CDrrqMFMlrqWmrzOssUEZaMNSXMqzc+nP6glojr7E1hXTXpMVX53mlC3
T0idyUSgb2OSdvRaCSW4Brxiht6x/+7l3WC+4TMRe6Ue3px9RbBdUTlMZPG0iA==
X-Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet
<edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni
<pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
David Ahern
<dsahern@kernel.org>, Ido Schimmel <idosch@nvidia.com>,
Shuah Khan
<shuah@kernel.org>, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
bpf@vger.kernel.org, David Lebrun
<david.lebrun@uclouvain.be>,
Daniel Borkmann <daniel@iogearbox.net>,
Mathieu Xhonneux <m.xhonneux@gmail.com>,
David Lebrun <dlebrun@google.com>,
Stefano Salsano <stefano.salsano@uniroma2.it>,
Andrea Mayer
<andrea@common-net.org>,
Andrea Mayer <andrea.mayer@uniroma2.it>
X-In-Reply-To: <aulG5DJroKs6BuzS@fedora>
X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
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-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015
X-Virus-Status: Clean