From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 C123735884 for ; Tue, 24 Oct 2023 15:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1A9C3C2A for ; Tue, 24 Oct 2023 08:20:32 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qvJCg-00011d-1o; Tue, 24 Oct 2023 17:20:22 +0200 Date: Tue, 24 Oct 2023 17:20:22 +0200 From: Florian Westphal To: Antony Antony Cc: Steffen Klassert , Florian Westphal , Willem de Bruijn , Andreas Gruenbacher , devel@linux-ipsec.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH ipsec-next] udpencap: Remove Obsolete UDP_ENCAP_ESPINUDP_NON_IKE Support Message-ID: <20231024152022.GC29201@breakpoint.cc> References: 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Antony Antony wrote: > The UDP_ENCAP_ESPINUDP_NON_IKE mode, introduced into the Linux kernel > in 2004 [2], has remained inactive and obsolete for an extended period. > > This mode was originally defined in an early version of an IETF draft > [1] from 2001. By the time it was integrated into the kernel in 2004 [2], > it had already been replaced by UDP_ENCAP_ESPINUDP [3] in later > versions of draft-ietf-ipsec-udp-encaps, particularly in version 06. > > Over time, UDP_ENCAP_ESPINUDP_NON_IKE has lost its relevance, with no > known use cases. > > With this commit, we remove support for UDP_ENCAP_ESPINUDP_NON_IKE, > simplifying the code base and eliminating unnecessary complexity. > > References: > [1] https://datatracker.ietf.org/doc/html/draft-ietf-ipsec-udp-encaps-00.txt > > [2] Commit that added UDP_ENCAP_ESPINUDP_NON_IKE to the Linux historic > repository. > > Author: Andreas Gruenbacher > Date: Fri Apr 9 01:47:47 2004 -0700 > > [IPSEC]: Support draft-ietf-ipsec-udp-encaps-00/01, some ipec impls need it. > > [3] Commit that added UDP_ENCAP_ESPINUDP to the Linux historic > repository. > > Author: Derek Atkins > Date: Wed Apr 2 13:21:02 2003 -0800 > > [IPSEC]: Implement UDP Encapsulation framework. > > Should I leave the '#define UDP_ENCAP_ESPINUDP_NON_IKE' in the uapi/linux/udp.h? > since it is a chnage to ABI? Yes, but you can add e.g. append "(obsolete)" or "(not supported anymore)" or something like that to the trailing comment. And you could wrap it in "#ifndef __KERNEL__" to have build breakage if anytning in the kernel tries to make use of it. Patch LGTM.