🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20039

Re: [PATCH net v2 0/6] seg6: fix skb checksum updates with CHECKSUM_COMPLETE

#20039
From: patchwork-bot+netdevbpf
Date: Sat, 21 Nov 2026 00:40
40 lines
9919 bytes
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 18 Nov 2026 16:02:45 +0100 you wrote:
> This series fixes the skb->csum updates with CHECKSUM_COMPLETE when the
> SRv6 code processes a received packet. In several places skb->csum is not
> updated correctly:
>  - ipv6_srh_rcv() updates skb->csum with the wrong sign for the new
>    Segments Left and destination address, and not at all for the Hop Limit
>    decrement.
>  - advance_nextseg() and seg6_next_csid_advance_arg() in seg6_local do
>    not update skb->csum.
>  - The End.BPF program and seg6_bpf_has_valid_srh() can change the
>    packet without updating skb->csum.
>  - In L2ENCAP and L2ENCAP_RED mode, the MAC header put back in front of
>    the frame is not added to skb->csum.
> 
> [...]

Here is the summary with links:
  - [net,v2,1/6] seg6: fix skb checksum update helpers
    https://git.kernel.org/netdev/net-next/c/47b2998b644c
  - [net,v2,2/6] seg6: update skb checksum when ipv6_srh_rcv() decrements the Hop Limit
    https://git.kernel.org/netdev/net-next/c/47f89dfc930b
  - [net,v2,3/6] seg6: update skb checksum when SRv6 behaviors advance to the next SID
    https://git.kernel.org/netdev/net-next/c/520989b4d32a
  - [net,v2,4/6] seg6: discard CHECKSUM_COMPLETE after the End.BPF program
    https://git.kernel.org/netdev/net-next/c/53e0a84a417d
  - [net,v2,5/6] seg6: account for the MAC header in skb checksum on L2 encapsulation
    https://git.kernel.org/netdev/net-next/c/e75bae5fcf5a
  - [net,v2,6/6] selftests: seg6: add test for skb checksum with CHECKSUM_COMPLETE
    https://git.kernel.org/netdev/net-next/c/612a37673567

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179522161302.860209.8175109356029301481.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368228-linux-kernel-netdev=dewy.ru
References: <20261118150251.65-1-andrea.mayer@uniroma2.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368228-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 0/6] seg6: fix skb checksum updates with
 CHECKSUM_COMPLETE
Date: Sat, 21 Nov 2026 00:40:13 +0000
Organization: Usenet Network
Message-ID: <179522161302.860209.8175109356029301481.git-patchwork-notify@kernel.org>
References: <20261118150251.65-1-andrea.mayer@uniroma2.it>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3302474"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oKIhA/P+mK0AfyXzdMCSE0pOFuE= sha256:+rCTjh3jzRbS6csGDoWg9noLkeLliZdAqZ2X2hq9jao=
	sha1:wytuNBKH8k282XvKMYvkW/QT0gw= sha256:fFgw1web/Jjbxf22G8XSyrhq3XFVBzRD3I/dhCrlCHY=
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 1043D115AEF; Sat, 21 Nov 2026 03:40:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 96mlbdT2iU14;
	Sat, 21 Nov 2026 03:40:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368228-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 44214115A68; Sat, 21 Nov 2026 03:40:38 +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 26FBE85713; Sat, 21 Nov 2026 00:40:26 +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=1795221626;
	b=BaoXTyg7SCc/XK48eqqXgsoJ9xRKmGLXOUFsBAPaW64L8aWDVh4SbrYmj7XLIoeQJFT5
	 kvjtqGETn/4qLf9rfEeaBzz0PaAOinxrj2x9xrUqtWuK+A95aoQMIBhF+LXZedCaEzG9X
	 yUaoKdf6Zd/LuSq5AuTMIX7CjBV1ZQ3DBKz/6mv1EBgbFm6oelrtZteOmedvtv8reiyOd
	 TI6ba3PSFj28glkhUF2XwAo1A/f75OoDVMi8mmYpP105Wo6SmcpZErAw77bGF0DoQ5tDr
	 6TUve7dkXzAz4OfVHpEisrS5AKmnkt0JEafqg0PS5T9ZuL4ErAYF3Tp9/3kjav6zRGA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795221626;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=VuKVXev8UIxrsWCdEYjjJ6A+0TY169PgQkoqU6UjXEQ=;
	b=G3HYJHgfJecFuoAy9IqCZbW1m8Rf3o3GqdPz15lLICFQOcJFDD7xTEJi8gwG98gpQu+J
	 oso9L0Nzvaq6nnre9NzI9whEyNDIuZBg+a8XuOEzkVRYB9vFkgq/8qSdGgpLTc0yeYAqy
	 Ew0DGOHvsihPggfCFEVLz06Ljo2enbf0yiZVqdF7GHCOubX1hKEZDR+MJttGgdAqlrUYH
	 Hpav/vVs80Nd6bK4E7KIj4jbGDFHrmMMSQEXYlPXgYeJHP7pIkvpiu/3kNG+f1TsSbfkg
	 0Mc7KUl8/eUwFOZkUlYonNVwvZQEunkj8MmymOgVAdsZ+J3WplY2CKNHQ9b1XYtcUUg==
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=YXZ8laQt;
	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 F1C50606A6B4;
	Sat, 21 Nov 2026 00:40:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YXZ8laQt
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=1795221615;
	b=tOWSCHkOtrolOOT8B2rPtXiySx8aOHQIcalZHkvcVObRhhbuclIVedrqnimQQW6BV6xS
	 rZFBkRjgClFzKxg09uWMWgoCODVBTDgiuHblKEq5mQYTWi1jZBAoBm9AgvTYNBtQM8KvH
	 6JHLdv83TiXXlEZpBIEd/jumbbVfzvXEKWk9te73Ssi2bR5cpgN9lCjftm7dBSyim32Me
	 q0psYohJJ/hgVvp0NPBTsgTqFF53GdjHZUAJSnukIWZgsl9HMJp3dLpmDy9NhT1wIRsnT
	 d43mbYcQn/UO0PC0wyVahTOu2Xj5A32Ge61nGB8+1pO1JorYQ8gTimOEi5smsH1ks1w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795221615;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=VuKVXev8UIxrsWCdEYjjJ6A+0TY169PgQkoqU6UjXEQ=;
	b=Q4DH25iTfvfMPOwL5xEzE0Ef8IazJHL7Za6Ezogkyw9Ga/4pNhc4BNYX/pgLCwpPMOLC
	 EWrDMgLmGoRXub84XbaHCSE5mhThkCPLt5IImdDOljPZLto+kBbubAFAokOHWsttkA5X9
	 W53up7XhBqO/BRrY3s5LwHq8qIPeqDln7xCB/ekSijPcVxFJaBZlJFnNGOzLEuiVG1xux
	 N8FeNHB15Mqv0R65OqO9/YOeepaj/OWDO/QjOyt9yJVkAVrSN/WEqDYwAnOCJHijd7WDr
	 ux0EJBO4LcSMX9ByajM4KrWJXUAzyBokVNffDVUlqXrAmGPtTVfTAoZZik1CL5oJi/g==
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=YXZ8laQt;
	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 0FF47606A335;
	Sat, 21 Nov 2026 00:40:14 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80EA21F000D0;
	Sat, 21 Nov 2026 00:40:14 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795221614;
	bh=VuKVXev8UIxrsWCdEYjjJ6A+0TY169PgQkoqU6UjXEQ=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=YXZ8laQtv6e7vV48kw6IopHEDcFXxaysZ8DpSztti1dOXip2twXkvtE/Zo+gDfwK4
	 V46syXyZgqR/0HTt8QMEVQkdH/RwaaTxbAJKA6Tv3Aug2paHP4UWWXGg5bmS4sJiGh
	 dK6ZZG44KsBm7VgMAapp7+QVgUxF2cuvQsw3K6eAxr2h5HBULVAhSGZafMRtQvcc/+
	 7iDwGd9QV9oyUcVBcGOHHjmjABuYb59GjQMQhgJgimKs/Bh0xXJqxfN9r4Ujsfl57j
	 /x85hJ1sA+bS+BEm+/LqCAoV4mSbQG3fttzip3fdVM/Aab/4ym4BbSvdTjiHONJ7zg
	 +Ij7Kihhtz9WQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 773CB380AA4D;
	Sat, 21 Nov 2026 00:40:14 +0000 (UTC)
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: <20261118150251.65-1-andrea.mayer@uniroma2.it>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, dsahern@kernel.org, idosch@nvidia.com,
 shuah@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
 linux-kselftest@vger.kernel.org, bpf@vger.kernel.org,
 david.lebrun@uclouvain.be, daniel@iogearbox.net, m.xhonneux@gmail.com,
 dlebrun@google.com, hangbin.liu@linux.dev, justin.iurman@gmail.com,
 stefano.salsano@uniroma2.it, andrea@common-net.org