Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4277502rwo; Tue, 25 Jul 2023 03:44:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVKefMl73C7EDJd184JWTchUUNAD9SzR93dN/FQWm0UAFeEzo/kYG8VqbrBeyce980L20V X-Received: by 2002:a05:6a00:14cb:b0:682:95ab:32f with SMTP id w11-20020a056a0014cb00b0068295ab032fmr8543947pfu.1.1690281873308; Tue, 25 Jul 2023 03:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690281873; cv=none; d=google.com; s=arc-20160816; b=NSXybnvrGCYVLyedqDzqvAERFVi3EnWRrx630HQ8QsdDwCUUF+AbF12cCHrUTt9rTX xfXEf1ZwAlgDmJrZ5Qp1PGGzjVjGmKY4wJmS37pc60mPq95vxE1R/S1zPDVly+YJ/RtY 9uZuw8ghRepH5M7yhc9A+zSqkVkE9graB0fdT54Xi6j7CccBtYV3KWr/JkSzBUIJ2l8V ljHouGSazI93rCgYNaKdLyKFdxRDbOAD2T/17gGbMDMLa7hPWdKIya7fKkE1wvB42AeA 5mJJJZQLN4MqkW8lvjS7icS7Hi7IqMhAbNprhq2g9cCwTTYojUbfZgul9OdvnRuLh+N+ U1og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hk8s9U4aku/7NMyH7BUL+F1PpRRQQ59PN2hfITnjTVE=; fh=RzymtbcAbrqIYjXLe64BeU2IRt75lvydN6TxkVngpsU=; b=HHTQoyCyIaRnGiKMQ2j/S6KEcSa1JtJVQxebJ1QiNqbsJ44MNvH+9CjetqrMvJYfHv jzt3MIqF/fIEsLIRHFbv1PPSbJO0YikSdLsurmCsbdGgDdYpl8JvbIPptKeu3Zjt8Id9 eYQS+ozvmpm68EN5qloCHzxvUcqNs9BiztE5jiJkjlbbZjrGgqm2Ijd7sf32y/5u+XRX w02hWO7H0iaMXpudZkLKAmO6KwJGkviIqiPG3oFWnSH7oIxkUTBa0F8iArt0uAJ+SVM/ nj++tmOXuhU5WnlK3cHYTKKF1SzGUorgLpG0gCmKD7JJLPi5vym/yfuF605WCtgIJKhP HHPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uz9Uq3ek; 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 c5-20020aa78e05000000b0068094fd547esi10710514pfr.99.2023.07.25.03.44.21; Tue, 25 Jul 2023 03:44:33 -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=Uz9Uq3ek; 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 S232613AbjGYKPm (ORCPT + 99 others); Tue, 25 Jul 2023 06:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232679AbjGYKPh (ORCPT ); Tue, 25 Jul 2023 06:15:37 -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 E431310E6 for ; Tue, 25 Jul 2023 03:15:26 -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 2D03E6160D for ; Tue, 25 Jul 2023 10:15:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93909C433CC; Tue, 25 Jul 2023 10:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690280125; bh=hk8s9U4aku/7NMyH7BUL+F1PpRRQQ59PN2hfITnjTVE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Uz9Uq3ekZhN/d14VXs/7apxFaWgqYSAciN9aaNWebnJzaQ/vv0RZx60oviF9aDFfO FfxNlWWofAxBgmtJ2GqCG5bc/UCeU6cmwDqSG5gu+2xdAlW84SWC66T/9Ea2h7vDTl zV+6GDjOMafbZ21OI8RWKkbr5LYCBY5ynlZ2aYCuG7bk1eyMFF+SLPiliYdhRRg0Ge wk8fkI7FEn+Jnr81WjrdwGz6BOO+K7b5gdki13Wo6OnhE/7raVtR1MwjBHHew18MH7 /u6jmcyx6zKDeUvsfRwp1edvfq0rzT5JvREVEdHf3KS70mRH+LddTl//mrNuPJ390e Y2mJ1cvaRRMpw== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-4fb41682472so8052178e87.2; Tue, 25 Jul 2023 03:15:25 -0700 (PDT) X-Gm-Message-State: ABy/qLbioqWNxf3bZCu6oUgsYgmGW8DqjZMBYFRQVxo3IztU+axJBazO rqEj2dKX4Rk5HxboIjOu2ZBapw2RZU0b6ys/wDY= X-Received: by 2002:a05:6512:2109:b0:4fc:ab2e:8751 with SMTP id q9-20020a056512210900b004fcab2e8751mr7113692lfr.1.1690280123489; Tue, 25 Jul 2023 03:15:23 -0700 (PDT) MIME-Version: 1.0 References: <20230724090044.2668064-1-ilia.lin@kernel.org> <20230724181105.GD11388@unreal> <20230725051917.GH11388@unreal> <20230725093826.GO11388@unreal> In-Reply-To: <20230725093826.GO11388@unreal> From: Ilia Lin Date: Tue, 25 Jul 2023 13:15:12 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] xfrm: kconfig: Fix XFRM_OFFLOAD dependency on XFRM To: Leon Romanovsky 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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:38=E2=80=AFPM Leon Romanovsky = wrote: > > On Tue, Jul 25, 2023 at 12:11:06PM +0300, Ilia Lin wrote: > > On Tue, Jul 25, 2023 at 8:19=E2=80=AFAM 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 fail= s 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 "sele= ct XFRM_OFFLOAD". > Drivers shouldn't enable XFRM_OFFLOAD directly and all upstream users are= safe here. Thank you for that information, but the XFRM_OFFLOAD doesn't depend on XFRM either. > > Thanks