Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp236528lqb; Tue, 4 Jun 2024 09:48:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9x3Pu8URNwvkNHd+bZ05TNaRJ9oR/MSIaBRTwDl2pNvOdeIOxmitE1ca2odUT9WhnGVio7AMTRB7HGEKmpMX1Cy10xqsN2tO3R2J1aw== X-Google-Smtp-Source: AGHT+IF5O5RO2NLMNdEyn8Z5R/dXZT9bnZU2TgmMfPINjcJiOAepSlCRrqtBVtTgtJiPR+ep/FOj X-Received: by 2002:a05:6214:2d42:b0:6af:c637:e1ce with SMTP id 6a1803df08f44-6afc637e365mr53111376d6.14.1717519725557; Tue, 04 Jun 2024 09:48:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717519725; cv=pass; d=google.com; s=arc-20160816; b=fuQlDzQFR4jHwDHTZV6bYyB6U9pRGDC7AuZsMCopibjcnyD3sWwJkq3Y05S+lCo0gn gypNAp1dw48M4AdBsmHDp9slSsg79KVJDhV+LEAznuNZRt+h6Hbs7fwXqB72RYdZblNr VJVPa9MMcfJkzJEW77xwHKNjSjyLpBlFDJ9bJooznEvLvEb5qQzB3m92SA3xDjy5lxSP qzJ+T4G2QMLxWWTjG3IxrPr4Wi/tpJUNEUbuqUCUn3mHwE4sd8glmTsoKoBnaSe3DtuC Tnk4JGjEaIRoZp9QXCb0kv3X8/ox0OGHHHGhQo8t8oK0aW/vOhO1GqpvHwzUnih1RkRh HyHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XziRWLcvxLnz1lNTo47NAaTcVI7sq2zl4ZrFBhJbR1s=; fh=rMzsHKg3lVuugeWQZm4ZipMTg24VS5oOc4Lc9C4kDjs=; b=QTJcD2ULosyeX6ZRzNpCYP6Vkcuh/LC24kkeuruSNawVANuIDrzbF7on2surhoJEqa 9qNO0jf5/lYM1dlg2aImMiaOcwYVd2fYSYTgiSqoJIGCZquaxUpdk9cXf8Kr06NL0s2p 92L0615CfI5NgnKie6pfuyT6QUr24U936Aqg5efOg8qjDJNhlUlRXfCHzDDYXbh/epw8 AkEVPkfHoio5c4vs4UnYyCFtj4iPU3VE1TDvj8tFty2giXR5KHA9QC7WItoZYdznaLmV sR8bpKF4ExjYoNdrKAH/rb/wksM/6g1J8PgNBZjGqDoHffgIXcVFJZj5k2W5f+SkhYDT c1jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ViShzCVS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42c04bsi114501856d6.450.2024.06.04.09.48.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:48:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ViShzCVS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3861E1C21442 for ; Tue, 4 Jun 2024 16:48:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0C15148FEE; Tue, 4 Jun 2024 16:48:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ViShzCVS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C12E168D0; Tue, 4 Jun 2024 16:48:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519715; cv=none; b=GIYxc50VqfY8EFzsxmMVVi/ON3CCdNGDTS6sPb3a4J/BmtiokRm8iTFsvXNMeOMF9PqSOP64Rzkt6XU6bW7vdW/M5GSYMQJUugjOOQq5oJ3CyUZ4sCCsg1f3Dvz44XS4MdoCH2GdfEPGgumvOu0MGYc7Nde9mpQPBuRtLkEitfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519715; c=relaxed/simple; bh=HejwG8X7RD+pxyK2RCN4wPlCln47uyj1jxaZitWWMEQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fZCjJt8f13hYImEX/h65/nouEmZErFlhwao6cQR/HyGqdWwbqCdmi8AmDHwnsFagHC9WBKtnVB0/C6dW1WzKAGOY/EOXiDcC9AugZsjSMBtxFxRw0RFa5KSmlWXY8hFw/gQ7E/L3z6YbZf+/8ORbPv6XuLbhn41L2wtrmcpnFbk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ViShzCVS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD94FC2BBFC; Tue, 4 Jun 2024 16:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717519714; bh=HejwG8X7RD+pxyK2RCN4wPlCln47uyj1jxaZitWWMEQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ViShzCVShU/PsuQeBaiZm12AaeJzPuFGEDcPWv4krr/VVcaSAh0P59txuPI52wqtI 1rhKg3vKnvBysVeA2K1G2PkatVQ9RfsEQPMl7HqaZIKpPhUxiQAszbrjkOiFyxdp7i /KFpwjwQ/RI0udyd+aZdsFA3h9x+O7BlXVqaiybmX7uQPob/3/BBBUwYVzpaya7S4b KV7e/uXPxmax2YZ/DeGDn9QuwTSm1bvVqITzGPpLLLxlSfZN6Y3npvaDN2TokcFWxz fOimLYrHtKimwReXxlJS/XhNNoAtMSP+dcQXoW7joYPBO7oNsAiACshaE9FqM9S5Fm K/Z+sobv5s6WA== Date: Tue, 4 Jun 2024 17:48:29 +0100 From: Simon Horman To: Lin Ma Cc: pablo@netfilter.org, kadlec@netfilter.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v1] netfilter: cttimeout: remove 'l3num' attr check Message-ID: <20240604164829.GA791188@kernel.org> References: <20240531012847.2390529-1-linma@zju.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240531012847.2390529-1-linma@zju.edu.cn> On Fri, May 31, 2024 at 09:28:47AM +0800, Lin Ma wrote: > After commit dd2934a95701 ("netfilter: conntrack: remove l3->l4 mapping > information"), the attribute of type `CTA_TIMEOUT_L3PROTO` is not used > any more in function cttimeout_default_set. > > However, the previous commit ea9cf2a55a7b ("netfilter: cttimeout: remove > set but not used variable 'l3num'") forgot to remove the attribute > present check when removing the related variable. > > This commit removes that check to ensure consistency. > > Signed-off-by: Lin Ma Reviewed-by: Simon Horman