Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4236931rwo; Tue, 25 Jul 2023 02:59:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTg29Vr/GNsn7ucWiX2Azc7HktXd4qAP6i8n2FheNrWNNupXYmSwOrA921grdEmUwsodTO X-Received: by 2002:a17:906:7695:b0:994:580c:5049 with SMTP id o21-20020a170906769500b00994580c5049mr13065153ejm.5.1690279164632; Tue, 25 Jul 2023 02:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690279164; cv=none; d=google.com; s=arc-20160816; b=HN51dxjzfyDld6UrqdzxvQ4RqPoG/EL23WVeegmGuj04ItdQ6PFjGW6xa7Dt/H+lVp YpNZrHVhIl6G+lki2BxJwsiUmbGFm2VYCVTpX9AQpE7tqYFs7u9wVPb3J5izv9PWhCen /7QSBKQuvSRk4Ke8gRwyxoYENR0qX5z+1bVDORZLMJfx6WlM8qjsD9XNMKZo9Fu8e3zI 1vWJm/mBXCNHKiCROXJV7pRRwYa6F51csZW/Dth4BMtTeojtw4RwT/Q8GhtP6BXl22CM HBk6Obt2bj/Otfb0zVXRlmEqFwG0/LRRVob0ycEJTy++AuCnTEGJyndmTChDCEMHgHTy gpRA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ctHfhoRdylUzYz2QPWQuPgSyO/aXFdULfe/vVVsiePk=; fh=+Wpvrj3kcexUZNQnbkZ+F0QcjjWFdjcg/vN8Dl+mOfs=; b=bTBYvorzaaSVShWfqodPMWwLK8FKqEkOZ/6FAtHEfi7pq7zoAIImbggksHafifx/iV lIbjazg66e0iwgEoIDAI2Mvl14Hy7iILDb9QZ7KyMDpPR3WT5PNgyYGjVLnQpnWSeR5g C49+pip8e733dqjIT9c/PN0BAFAS/1jzfsElA/NmJvO8D/sgxx7il97yndto/wm1TKTc P/SZWTsMX5xKWfqjadjnZ7JdKrukotuR1+5wpzI6zvUR0OgBxFiagEAijSzkO4+Rjihf cYYyEls1U3n/PRyons1c1K7lCUow1nijVP+u5BqP1i67+2X1mcEPj15qu1ig+VQ/yQAf iIkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FbNu7QEI; 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 a7-20020a1709064a4700b0098d2f9279fcsi7367679ejv.498.2023.07.25.02.59.00; Tue, 25 Jul 2023 02:59:24 -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=FbNu7QEI; 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 S233407AbjGYJjt (ORCPT + 99 others); Tue, 25 Jul 2023 05:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233380AbjGYJjd (ORCPT ); Tue, 25 Jul 2023 05:39:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C0AE4 for ; Tue, 25 Jul 2023 02:38:59 -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)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 73109615CC for ; Tue, 25 Jul 2023 09:38:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E707C433C8; Tue, 25 Jul 2023 09:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690277910; bh=ctHfhoRdylUzYz2QPWQuPgSyO/aXFdULfe/vVVsiePk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FbNu7QEIfH6iAx/02yPCAFTBXbhvxiXFtM2E8QBtdEkdSncKPuC2RpMdVEt8FGtD0 gkQQdbikxn2gU73QR584BJuGPjk/wSfODzYhKKWQQUTjIaj5QWB59f8uqURxk4VCgJ 1rS5GPn7rQIsdMRXUXdNElFg52eDoJtmsHLzF95ItiLATTbyVOmHDJLiMbMa5Eu38P rn/smGIr0LeyvjnLItieNhtfw+oPuAqm4zYJ8/mKotfzSdfHRR63FSpNatDAZ7hp7N idUZkzkpF9PiR47vUenyBIDx6bpVM28valnultNU5skseNgV2C+BGBX7yDwlQvok+W 5kvhWQ9gxWGMQ== Date: Tue, 25 Jul 2023 12:38:26 +0300 From: Leon Romanovsky To: Ilia Lin Cc: Ilia Lin , 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: <20230725093826.GO11388@unreal> References: <20230724090044.2668064-1-ilia.lin@kernel.org> <20230724181105.GD11388@unreal> <20230725051917.GH11388@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, Jul 25, 2023 at 12:11:06PM +0300, Ilia Lin wrote: > On Tue, Jul 25, 2023 at 8:19 AM Leon Romanovsky wrote: > > > > On Tue, Jul 25, 2023 at 07:41:49AM +0300, Ilia Lin wrote: > > > Hi Leon, > > > > You was already asked do not top-post. > > https://lore.kernel.org/netdev/20230718105446.GD8808@unreal/ > > Please stop it. > > > > > > > > This is exactly like I described: > > > * xfrm.h is included from the net/core/sock.c unconditionally. > > > * If CONFIG_XFRM_OFFLOAD is set, then the xfrm_dst_offload_ok() is > > > being compiled. > > > * If CONFIG_XFRM is not set, the struct dst_entry doesn't have the xfrm member. > > > * xfrm_dst_offload_ok() tries to access the dst->xfrm and that fails to compile. > > > > I asked two questions. First one was "How did you set XFRM_OFFLOAD > > without XFRM?". > > > > Thanks > > > In driver Kconfig: "select XFRM_OFFLOAD" In driver Kconfig, one should use "depends on XFRM_OFFLOAD" and not "select XFRM_OFFLOAD". Drivers shouldn't enable XFRM_OFFLOAD directly and all upstream users are safe here. Thanks