Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2694240rdb; Tue, 26 Dec 2023 01:45:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEImQ9754TA/XEeTE/CDhm1zfaRdDd4iZojvrrJ/D5bmBkCdrXl/vNRqLPoh1XNvpG0Eul3 X-Received: by 2002:a05:6512:39c7:b0:50e:7ade:d394 with SMTP id k7-20020a05651239c700b0050e7aded394mr980914lfu.0.1703583934032; Tue, 26 Dec 2023 01:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703583934; cv=none; d=google.com; s=arc-20160816; b=mdciLl77pIF5vk8Q07eZcd8w7tsKez3brpPM64sZWbuSYr8Adx3D07Z+T4yVAGzQOg i93qOA7sIR1wp+VilhmpmVBPWB2Js1TQXoR6Nt5B2/czW82q1rCRcn5lTDEKlWYCWiKw FDjOgDHDDXDtxLPVgiFatJWNCkoTZ+ZoeIC02rNNsZBChz2J+RXiDkJhdKxpFv5Uj32O 38ZlzHU1fkgFif4r1t4T/tvAHprRR0lRtFKuX4tAjeTDFtSm5zLoRv1jXBMnjCSh3S3J pKheylS0IrqQPFgfKfMEsOlvWaxIPBKVmHayvEjnQxEXrgyJowJ6rFdP56Xt7Uty9tDb I2gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HGLhO5Ou1/1sy5iMfPRnAioEor7eJGTaCFhyISDdmuA=; fh=xJ4MGWUfLIY6kC5wtXQrQqroeNPseZURI9Z+Z0OAFDg=; b=Qibl9vnyj60KgGx/nWfXK26HtAG1Jr5DhL0vFzLQB023d9CfWJKjoVqKt88SVunIeF Kqcy9wXLXWzHcYQHDHChuQXicY5yIHvcLvQKeoxuMPwsn9Deq35RuQuhMFSgVItO315R /pt2w3ZTu0PuwbvbnUsgHMJZL76pIi2pwZtsBf4VYtpYKTFhNstAuEGeu7cGW2BxkHzV VjkRQJVzcthhoONsyWbZ/Zn73TXE1UQTAhWVEj/2NEwaZdNXBek9+/dCdcBKL3kMYqxN YHssN1cTONQ3QtD95/J+uqOZQMmVUPMsIiSSXv3pUhcjrZveZcBBLeTppL6iF9C2jFJy Gc5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="CJ/u/Yoc"; spf=pass (google.com: domain of linux-kernel+bounces-11455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ex5-20020a170907954500b00a26f7f72d13si1281695ejc.539.2023.12.26.01.45.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:45:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="CJ/u/Yoc"; spf=pass (google.com: domain of linux-kernel+bounces-11455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C29DF1F228B8 for ; Tue, 26 Dec 2023 09:45:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 744D64F1F5; Tue, 26 Dec 2023 09:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CJ/u/Yoc" X-Original-To: linux-kernel@vger.kernel.org Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 5A8D34F1E4 for ; Tue, 26 Dec 2023 09:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703583823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HGLhO5Ou1/1sy5iMfPRnAioEor7eJGTaCFhyISDdmuA=; b=CJ/u/YocoRH87w7XAkDO5W7pMkoLV+bxFqEqGej2CADiGdDvhuGaCluJSIZzOOQCC52gzn 7feu7abBgBDpuImPkJDQt6a66b9Bz0rG94Dvp2yrniFyOPY/eJuk421VZxyfk4s4bduhIu lEneILhFX9q2md3kWR83Uwn01fLesEo= From: George Guo To: horms@kernel.org, pablo@netfilter.org, kadlec@netfilter.org, fw@strlen.de, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, George Guo Subject: [PATCH 06/14] netfilter: cleanup struct nft_set Date: Tue, 26 Dec 2023 17:42:47 +0800 Message-Id: <20231226094255.77911-6-dongtai.guo@linux.dev> In-Reply-To: <20231226094255.77911-1-dongtai.guo@linux.dev> References: <20231226094255.77911-1-dongtai.guo@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: George Guo Add comments for pending_update, num_exprs, exprs and catchall_list in struct nft_set. Signed-off-by: George Guo --- include/net/netfilter/nf_tables.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 1e24db91a37e..91a1cb6fadf1 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -546,13 +546,16 @@ struct nft_set_elem_expr { * @policy: set parameterization (see enum nft_set_policies) * @udlen: user data length * @udata: user data - * @expr: stateful expression + * @pending_update: list of pending update set element * @ops: set ops * @flags: set flags * @dead: set will be freed, never cleared * @genmask: generation mask * @klen: key length * @dlen: data length + * @num_exprs: numbers of exprs + * @exprs: stateful expression + * @catchall_list: list of catch-all set element * @data: private set data */ struct nft_set { -- 2.39.2