From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC05E2571B8 for ; Fri, 13 Mar 2026 01:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773363857; cv=none; b=bnsNFVk505KZd40icX418uGvnfVLTNXEqFvJalSIkQQvRk887IRIDjSOrb5djZAYwiopoTrgmCKqV5qXKiCUHRvsHMJJJHYOGS063/llAtur++jrrAZpoQIgvDlouIoGPIWViCgTLVxGFTE2FrdmnsXUWYF5B84id5pUTQECsB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773363857; c=relaxed/simple; bh=TFLKTcSbAY+YGO1CvMB8s2NoY8AR9gmoCY2cHMTj9iM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PFUcuXrRtyZLCDGUbtwxzl0zyQkWk/9eVcyG12UDXTV9sooZ5EfuabgcbNAF2mkwjJJKsDUx9R7Pr0aQWfg4ZsZk/TJDLxgSJgw9WDiq3nkJhrAOnPnrMSQeQEoZfxaGQFk+t43xGzTAiKxzbnXCeqGWGziu6OLwL025LqDeH70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PMPP2EuX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PMPP2EuX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14ABCC4CEF7; Fri, 13 Mar 2026 01:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773363856; bh=TFLKTcSbAY+YGO1CvMB8s2NoY8AR9gmoCY2cHMTj9iM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PMPP2EuXpflqp3hZCfWW4ZFUNXi9wvKoYC/Iva5obBVFGgll6ZZkeBdUSHgl5NjdB Dl0jexFaZuUrORMGHEZrh9Wu8jpPQPrj6RbWGHEyG9TfipD2zOJTBqEFYat6bkM0r1 HmDYfASuv5+oznYwN0TBHIIwobKfU3UnbTb/Sh+fak+rwyWkJqE1bpGk698iq/MGVX XOK/xfdS2eN55qNUP6+a6oHm+pIdbz3fh7OKQCpIBKwkod7i9wPBlXXBp5Wb1G/Bee 74MBEXe4qv7gsqJYcCZuQqhH90t8nl3Np0uVWfyrgFV0xESjVVEnG/3NMQnlYHW5Rt 4xGgEpaz3ED/A== Date: Thu, 12 Mar 2026 18:04:15 -0700 From: Jakub Kicinski To: Willem de Bruijn Cc: Kuniyuki Iwashima , David Ahern , "David S . Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Florian Westphal , Kuniyuki Iwashima , netdev@vger.kernel.org Subject: Re: [PATCH v3 net-next 07/15] udp: Remove partial csum code in RX. Message-ID: <20260312180415.1e44a111@kernel.org> In-Reply-To: <20260311052020.1213705-8-kuniyu@google.com> References: <20260311052020.1213705-1-kuniyu@google.com> <20260311052020.1213705-8-kuniyu@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 11 Mar 2026 05:19:54 +0000 Kuniyuki Iwashima wrote: > UDP-Lite supports the partial checksum and the coverage is > stored in the position of the length field of struct udphdr. > > In RX paths, udp4_csum_init() / udp6_csum_init() save the value > in UDP_SKB_CB(skb)->cscov and set UDP_SKB_CB(skb)->partial_cov > to 1 if the coverage is not full. > > The subsequent processing diverges depending on the value, > but such paths are now dead. > > Also, these functions have some code guarded for UDP: > > * udp_unicast_rcv_skb / udp6_unicast_rcv_skb > * __udp4_lib_rcv() and __udp6_lib_rcv(). > > Let's remove the partial csum code and the unnecessary > guard for UDP-Lite in RX. Hi Willem, this lost your ack due to a bug fix, could you re-review?