From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 310CE1BDA9B for ; Tue, 6 Aug 2024 10:20:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.88.81.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722939628; cv=none; b=f5zMRVWRk+zS3xaeHxYf+6uqr5ccvtQXvLQeariAP6fg/N15E61ucBKvwAUZ/OLjpfxaHWOuY+76PJWaNWinOF5ZJA/E0lRT2fpqu4m+LztzndgXBgrM1uYpUMi+xSWveRGIAvgjF8ozO8mVVc/hkcCPW3WS06WVI6WFp9qWq2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722939628; c=relaxed/simple; bh=uuKWgBbEVMKUnzeNuW4mG6qevQdO0fmSurt+rJycJlY=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=cLqU1+/LK0lPZw31NtRhzaOj7mNFkBjPsPgpWGzMwY4wdO+dI6rXKYdOObduMkK2upIPkThqATVKs6b4iEQoPVArMpUCdWqHv28lx1nevIK5D2ogdfHyqA1iFeaZapnzDG27byYxZ6FMKir+aLg9y3Jl7TucKjAGILsiplKUzHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chopps.org; spf=fail smtp.mailfrom=chopps.org; arc=none smtp.client-ip=54.88.81.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chopps.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=chopps.org Received: from ja-home.int.chopps.org.chopps.org (syn-172-222-102-004.res.spectrum.com [172.222.102.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id 1F6527D08A; Tue, 6 Aug 2024 10:20:26 +0000 (UTC) References: <20240804203346.3654426-1-chopps@chopps.org> <20240804203346.3654426-9-chopps@chopps.org> <20240805171040.GN2636630@kernel.org> User-agent: mu4e 1.8.14; emacs 28.2 From: Christian Hopps To: Simon Horman Cc: Christian Hopps , Steffen Klassert , netdev@vger.kernel.org, Christian Hopps , devel@linux-ipsec.org Subject: Re: [devel-ipsec] [PATCH ipsec-next v8 08/16] xfrm: iptfs: add user packet (tunnel ingress) handling Date: Tue, 06 Aug 2024 06:19:28 -0400 In-reply-to: <20240805171040.GN2636630@kernel.org> Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; format=flowed Simon Horman via Devel writes: > On Sun, Aug 04, 2024 at 04:33:37PM -0400, Christian Hopps wrote: >> From: Christian Hopps >> >> Add tunnel packet output functionality. This is code handles >> the ingress to the tunnel. >> >> Signed-off-by: Christian Hopps > > ... > >> +static int iptfs_prepare_output(struct xfrm_state *x, struct sk_buff *skb) >> +{ >> + if (x->outer_mode.family == AF_INET) >> + return iptfs_encap_add_ipv4(x, skb); >> + if (x->outer_mode.family == AF_INET6) { >> +#if IS_ENABLED(CONFIG_IPV6) >> + return iptfs_encap_add_ipv6(x, skb); > > iptfs_encap_add_ipv6 is flagged as unused when IPV6 is not enabled. > Perhaps it should also be wrapped in a CONFIG_IPV6 check. Done, and tested with CONFIG_IPV6=n. Thanks, Chris.