Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3478210rwo; Mon, 24 Jul 2023 11:36:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5gTjkA5RKjo8yA5uD7z6pIakZH6ofh9dhotehRDxLy4/qDXI0XmbSyob9DRBDKLWOI7vj X-Received: by 2002:a05:6512:234e:b0:4f8:d385:41bd with SMTP id p14-20020a056512234e00b004f8d38541bdmr6656887lfu.8.1690223791976; Mon, 24 Jul 2023 11:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690223791; cv=none; d=google.com; s=arc-20160816; b=Ie+4B2fduMLtqt6RTtCPvNN+sMF4lfSb5Lmfs7m3ibN30dTj17az4xyH85Fy+m7WpQ KmrljeXMJYx059Wl6VcXW9F/yVDuCakyQZQ4zyMLG01avIrNiCBCO1JyN5gdJb5t528A uMu9DvHxYJW+Y2MRWVYcHaFKBu0r5Pu5uv7S9n4cPtHQ8QoQlQsGOTfW93GmmcivAfzx dKcyWjiCdAymY9LqRQp7OsPBKeA3aeZ1Vv+32lGEJyOKoFQQKf1R9S/EBt1soKdxnr83 opENdDSZH7PpAY5xh7cATR7/CGN6CGo1TnaUqQjpvAiYMuxfPUncUJBl3JGXmqH8VMvd S8Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pj3euGwuAVuOVALWjslXl5lkwPYBuHLQISOZF9zXy78=; fh=aFDUE+uG8MfFuu3r1tXvYKqDSVU1K+gd9OxQppAhGb0=; b=dfuaQ2EuZsdS4uqu5amk/IcunOtLZPNHr63b+vz0X7s27ihwJtA/jMi9/PMxtPtGfL 31QzgrpTa7Zgep++hOQJc+UueQtWle7m1f2dQVKNhs6+5zcF2HYcOjzo61763z1x1m74 nJrtC5SN02rPsy0Hj5yjUlMa0d0c4oJDhY3S4/Jw1ff17y/u3jn3YRmaiSB0Jqv5eftR 9rR7s4ETrxvLdumluqCgu2fEHoxYFB+I8EQLBE4ZZp5wwFNEEN9pKA0P2a4cZjTLXkuI LswbDQjR/vh9RTuNpaDIkz9a/TKlGgTRzj1jmatNXw4zu3gNPmfuW1A0ww2+8qMN0JtJ e85Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fLxx1cJ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056402180c00b0051dea5c92b6si7154588edy.357.2023.07.24.11.36.07; Mon, 24 Jul 2023 11:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fLxx1cJ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbjGXSLN (ORCPT + 99 others); Mon, 24 Jul 2023 14:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGXSLM (ORCPT ); Mon, 24 Jul 2023 14:11:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F87493 for ; Mon, 24 Jul 2023 11:11:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5C14661280 for ; Mon, 24 Jul 2023 18:11:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C635AC433C8; Mon, 24 Jul 2023 18:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690222269; bh=lVl/AoyoC3+s3150PJB7m2OVF2U2VY5mosVKutorV/I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fLxx1cJ7WRLyBjboZj27c0pna1eGR+fCO+km4x5R9cBWxpNR9AHc2zVnostvDm33y ouKZWeqCO2jyWpcuzSGXqJsKjcw1BQTyMWv2cer8LbSL/juksaHecI7R9I0KtTHmFv +tErBrJc5HiKIY4YislKAQKbpCW0JAEMHKDR4rBYYWjRcFAk80SCF3kn4k0lH/cUUd /4N3YPyo8/Is+KPdHWY14mAjm1cE6lghRAQM+jTfzxse8ZErgC8dinjpoRtmmPXynY s9waxOgIcU18SW6csvbm2epdLW0999zHzd7XmazwwKeRel0yU6LaUu2A9V1cqAzTib lyPASW3sHewcg== Date: Mon, 24 Jul 2023 21:11:05 +0300 From: Leon Romanovsky To: Ilia Lin Cc: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jeffrey.t.kirsher@intel.com Subject: Re: [PATCH] xfrm: kconfig: Fix XFRM_OFFLOAD dependency on XFRM Message-ID: <20230724181105.GD11388@unreal> References: <20230724090044.2668064-1-ilia.lin@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724090044.2668064-1-ilia.lin@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2023 at 12:00:44PM +0300, Ilia Lin wrote: > If XFRM_OFFLOAD is configured, but XFRM is not How did you do it? >, it will cause > compilation error on include xfrm.h: > C 05:56:39 In file included from /src/linux/kernel_platform/msm-kernel/net/core/sock.c:127: > C 05:56:39 /src/linux/kernel_platform/msm-kernel/include/net/xfrm.h:1932:30: error: no member named 'xfrm' in 'struct dst_entry' > C 05:56:39 struct xfrm_state *x = dst->xfrm; > C 05:56:39 ~~~ ^ > > Making the XFRM_OFFLOAD select the XFRM. > > Fixes: 48e01e001da31 ("ixgbe/ixgbevf: fix XFRM_ALGO dependency") > Reported-by: Ilia Lin > Signed-off-by: Ilia Lin > --- > net/xfrm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig > index 3adf31a83a79a..3fc2c1bcb5bbe 100644 > --- a/net/xfrm/Kconfig > +++ b/net/xfrm/Kconfig > @@ -10,6 +10,7 @@ config XFRM > > config XFRM_OFFLOAD > bool > + select XFRM struct dst_entry depends on CONFIG_XFRM and not on CONFIG_XFRM_OFFLOAD, so it is unclear to me why do you need to add new "select XFRM" line. 26 struct dst_entry { 27 struct net_device *dev; 28 struct dst_ops *ops; 29 unsigned long _metrics; 30 unsigned long expires; 31 #ifdef CONFIG_XFRM 32 struct xfrm_state *xfrm; 33 #else 34 void *__pad1; 35 #endif 36 int Thanks