Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3470061pxp; Tue, 8 Mar 2022 15:17:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPMFG7lc+a2jwiqm+evZWEWoYt9PwNKuwTWxbI/HCEqmm56mqtX0+od5LvrSEw2ctcsF/5 X-Received: by 2002:a63:4d18:0:b0:374:87b6:b6c3 with SMTP id a24-20020a634d18000000b0037487b6b6c3mr16262674pgb.405.1646781438477; Tue, 08 Mar 2022 15:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646781438; cv=none; d=google.com; s=arc-20160816; b=ZIB8DxHe8UdVsgBHdm+RZZGMFp2xucUVTX8ofoSC/lACL6oc4GF6k6fYp6ndrl1u9v USOcZUvvOmHmisii2dQjtR6KA95jZ6WZHmH9dAV1bDqJz5A7W4bPiNANzPWmd5xgLmY2 +/GOXHaXteaTdXFShn0bWx3ycoDOUuTu59rYdrnk3CSVO9bXCLSA6wg6MDMPAjg8+riB 6kHP5ymIfhcHFv7pAkab7Gon/6aHpwxeUVEE5Q6HtDizSR1f/vKt0Ferhch07c81Wb/W DfIAZ7wUNKkni8pcW13Iudyk3O79S9rYN1ie8IdQJNfG3uTlhkVbXPkC+XFxzdI0ju4F m7+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CtoXzlWdMjEaTdkHRpRbjU16+CzIWpJ5Gk6mnrIwGKc=; b=KtKy4D7qRsGTR1FEJhgksWCqVQGA2wOqgsWQewQMoxMDQm/AkFWb5vIGlcwNgouxyt /w8rOuQim+BBx9ZQ0f2do0+PTbtQMLQ4CqfTVCvfY3yETii6GIVSFEBFy3h4yT+N7Ncb /eBQURC1MTkYZN5lrt6aewgPfMZIR+jUAWuzsJVAfbvAbq4vGmhaCOLYs1eyi8rQf4Dt X2zc19Sddwwn2eTXwvY06OiNcv5OiyfEpAQ1DhhrhxMwxK0B706EKEUWIiaZKyzOITeJ WbU7JRsct/x7GZEbkYix2IvI73Np0Q5VKzrrvjD9fEoaPwZbHLP7gpVsCxvQuoff84Tr bMgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YL3HMcEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y7-20020a63ad47000000b003734c341f19si178650pgo.580.2022.03.08.15.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 15:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YL3HMcEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AE63D6A011; Tue, 8 Mar 2022 15:12:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233273AbiCGNku (ORCPT + 99 others); Mon, 7 Mar 2022 08:40:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235124AbiCGNkt (ORCPT ); Mon, 7 Mar 2022 08:40:49 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B81685BE5 for ; Mon, 7 Mar 2022 05:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646660394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CtoXzlWdMjEaTdkHRpRbjU16+CzIWpJ5Gk6mnrIwGKc=; b=YL3HMcElSneMp/r9xt782uwEf6IPZUCxf8TnqHY1xWWFpEMDy1yiQqL5Sq5nCsfU3gy/SF 99h6K5K8WgFTGA50z1K3TJ+mGa/CPvW+Xl600+5rjMIPsx9tt7Bm+kkIYK+MzrjMc5v1Pl 6mSS/1B+we3FTbexyYFEgQAXTTzEWeg= Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-593-YAw7ITtnM4yyxtl2qiJIfQ-1; Mon, 07 Mar 2022 08:39:53 -0500 X-MC-Unique: YAw7ITtnM4yyxtl2qiJIfQ-1 Received: by mail-oi1-f198.google.com with SMTP id o2-20020a0568080bc200b002d64d89d460so9555385oik.17 for ; Mon, 07 Mar 2022 05:39:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=CtoXzlWdMjEaTdkHRpRbjU16+CzIWpJ5Gk6mnrIwGKc=; b=vapW52aqUNACIU9TjWONZdYsHFfV/It4/ZxEpG/0+WgSwSU+P4nGTNuzUfuvOkhbyf eHYINbSV9H7D9eavBxenSgnhZx+DLSpTOeFQY8GfpNgdWoIBiwp3BUTVpz4gKBCj60Lp ZPybPm9rbv8OS6te9W/zw23SbMXtErv6YwCa9W422ZEXyOu6Eh6zfpUL8Nx+l4iWBqcm v5/h3Q77IwjTeHcOHxVPWQ441plfat4bmCSNcSi4LZVEFsP4eJ4/KvbYLwnNt1jkQoei 2aKsfxSglBCtfFrpdnx0YK8r6553vvr2L3UB0LIkuvhjq39wOURorTYRl3XUMR59fzCO dsVA== X-Gm-Message-State: AOAM532q/wnWVpAd5sjlmDj4tEmOvXcrnLTCyRvBg/JEw5FzXqxNRf4X uVou7E+m8wRc/ZduRSYf2T0dmtMHtkLrRPAxtsow7r2DIbqTF+L4MCuJgdle2eJ5jlxEOSpAmZi EKpy0+Kpv2bYtVATFMJl7HQ8hvGewsF7lCa3P50PhUq3FZNrFbFEPlMkzE7by4itsIok2DgE= X-Received: by 2002:a05:6830:2646:b0:5b0:29e9:b623 with SMTP id f6-20020a056830264600b005b029e9b623mr5525179otu.266.1646660392550; Mon, 07 Mar 2022 05:39:52 -0800 (PST) X-Received: by 2002:a05:6830:2646:b0:5b0:29e9:b623 with SMTP id f6-20020a056830264600b005b029e9b623mr5525166otu.266.1646660392286; Mon, 07 Mar 2022 05:39:52 -0800 (PST) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id m26-20020a05680806da00b002d797266870sm6326213oih.9.2022.03.07.05.39.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 05:39:51 -0800 (PST) Subject: Re: [PATCH] netfilter: conditionally use ct and ctinfo To: Florian Westphal Cc: pablo@netfilter.org, kadlec@netfilter.org, davem@davemloft.net, kuba@kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220305180853.696640-1-trix@redhat.com> <20220307124652.GB21350@breakpoint.cc> From: Tom Rix Message-ID: Date: Mon, 7 Mar 2022 05:39:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220307124652.GB21350@breakpoint.cc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 3/7/22 4:46 AM, Florian Westphal wrote: > trix@redhat.com wrote: >> From: Tom Rix >> >> The setting ct and ctinfo are controlled by >> CONF_NF_CONNTRACK. So their use should also >> be controlled. > Any reason for this change? Define and use are connected. Doing something to one without doing something to the other doesn't make sense. Could removing the CONF_NF_CONNTRACK be done for the define side ? Tom > We try to avoid ifdef where possible, unless it avoids a compiler > warning/build/linker issue. > > This doesn't change generated code for me (NF_CONNTRACK=n) either. >