Message ID | 20231226094255.77911-6-dongtai.guo@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-11455-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp769759dyb; Tue, 26 Dec 2023 01:45:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGd+LTOBDMmLSNy+KAg9Q2/qQtuHeytQtbxP6sO3Z4vGdtwVvU2nMaw4l7Jg9OLPvSQABXm X-Received: by 2002:ac8:5915:0:b0:423:83a1:7bbe with SMTP id 21-20020ac85915000000b0042383a17bbemr10742340qty.54.1703583942804; Tue, 26 Dec 2023 01:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703583942; cv=none; d=google.com; s=arc-20160816; b=ntWuf/+kM5HfgRVGYNtvUgFgWtjZE4P4Wj1Ox8+Y+yb4+5yevKkTVvdO7epkucpDlU JR9Iz13YkIQxGpd25qlgyRbK8jPVqL3rvLHNOGndVa8MulJ7c69qT3/ZV686e08slSwY /WayyWSBi9mngV6wK5FxP7UegnwX8j4BaF/W/FPFxn4Qhx6IdPcjZQcJocmTxZj5iBd/ qY/SRiUg1WM0cn/YZj5tOcU2avhonEhH87RkJ1QwAJpnUgYqIfJlvxjT1eCGIeO8nFQ0 oEEppIO+YRBwRRHxdamc62cIheF51AEpkJNfrGm7kUNTGziuAk8/DiW1X5PNUX2LedIS OM0g== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11455-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z22-20020a05622a029600b004275276a4d4si11888912qtw.18.2023.12.26.01.45.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:45:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11455-ouuuleilei=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=@linux.dev header.s=key1 header.b="CJ/u/Yoc"; spf=pass (google.com: domain of linux-kernel+bounces-11455-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11455-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9979F1C21D78 for <ouuuleilei@gmail.com>; Tue, 26 Dec 2023 09:45:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D0D64F214; Tue, 26 Dec 2023 09:43:49 +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 <linux-kernel@vger.kernel.org>; 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 <dongtai.guo@linux.dev> 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 <guodongtai@kylinos.cn> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786337236258931353 X-GMAIL-MSGID: 1786337236258931353 |
Series |
[01/14] netfilter: cleanup enum nft_set_class
|
|
Commit Message
George Guo
Dec. 26, 2023, 9:42 a.m. UTC
From: George Guo <guodongtai@kylinos.cn> Add comments for pending_update, num_exprs, exprs and catchall_list in struct nft_set. Signed-off-by: George Guo <guodongtai@kylinos.cn> --- 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 {