Message ID | 20231226094255.77911-5-dongtai.guo@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-11454-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp769661dyb; Tue, 26 Dec 2023 01:45:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMdIfY67H1jZqrFHenHVGVG/YIYJMgfq/a6DxyV3oLZkC50n/Ot9tsQo80CSu8g4tZzpoj X-Received: by 2002:a17:902:e749:b0:1d4:6b2c:fc41 with SMTP id p9-20020a170902e74900b001d46b2cfc41mr1396679plf.1.1703583919619; Tue, 26 Dec 2023 01:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703583919; cv=none; d=google.com; s=arc-20160816; b=Xsrh3Xx0ubdTaZxAdQ7euOVQFocQUPEZGipwkzNbKf7adc+ZPQ0Jyh1l1lD4fumeNb 0gqgI+QmdKmrQPXoM5YDb+mAkMRCZ2+fIikuIl/q+3l+RI5FtPT/QUzIh/kbdFmhtRgO FKe671pvFzlc/mcZ1DQwGwxVnVyfu1APiVBhOafgJJtyOaC6luNrX+digWu7+f3y6AC7 w2+Ffl3gj5xQd0UzKeGPD3xhI3Tdjp2OcjymnyP6HTd1h0KME9AtcimZCDuf16nxFJ8F XAjG5nTfUQQl8Ad2N2PmQx8P/sOZhtddRyIdqAZelr2opogJXeYW5Hnamvl6kr768vyl ZoVg== 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=P/WuOHRAYvaP7I2DX531nPKJwXne70nh/3fxHOzzGiA=; fh=xJ4MGWUfLIY6kC5wtXQrQqroeNPseZURI9Z+Z0OAFDg=; b=KXu5ik3mx1MRvrXdfwyJ1dTg6YjF77/57T7hTqnAUW7Nc0UCqpFaMw6pW+W9Cx/9HK RsCD542Hk2itC5rsog2Qa2OtvGCQwMXHp8pxmekHSlr8FbSuayyWmPZJ7C+zp58gJ+tt 5wAJD+qbZePBdIwitfudK19rhh8I6OMKn1qGQVW993nq9e1oOht+dxmB9p1bRss5FOSb yYaa7E8cFmn0CSN93sjWCPZSgsol1K3ndWvY2S/0diceOMvRXVJvkfayfLoSo2yDAhxl gzRpcIkDR9E85CnUsWoWTtTT1lyapSCHvmB0OSsGVVMyPPaYNiMYgVhy35xq1Y5YFXlx uAWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=tf7Jdrzn; spf=pass (google.com: domain of linux-kernel+bounces-11454-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11454-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b21-20020a170902ed1500b001d42d539569si6034202pld.235.2023.12.26.01.45.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:45:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11454-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=tf7Jdrzn; spf=pass (google.com: domain of linux-kernel+bounces-11454-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11454-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 63916282EBA for <ouuuleilei@gmail.com>; Tue, 26 Dec 2023 09:45:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F9FB4F1E0; Tue, 26 Dec 2023 09:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tf7Jdrzn" X-Original-To: linux-kernel@vger.kernel.org Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 AED0C4EB33 for <linux-kernel@vger.kernel.org>; Tue, 26 Dec 2023 09:43:38 +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=1703583817; 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=P/WuOHRAYvaP7I2DX531nPKJwXne70nh/3fxHOzzGiA=; b=tf7JdrznhaN4E6fQRw7ouq2L5O1nTsVhLkIdmtYaog/D+ujk1eSf8Yh6ICqpQHF0XMgnb9 PQsUw4eNCwwYPljUcEoKFOO9agWl7mcJcPyE2T9o93FpNSmps2dHudxLttkkVicp5ozUex qDVv1SLocvaHp8pCfURxIYvLEdRyi5I= 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 05/14] netfilter: cleanup struct nft_set_ops Date: Tue, 26 Dec 2023 17:42:46 +0800 Message-Id: <20231226094255.77911-5-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: 1786337211748824012 X-GMAIL-MSGID: 1786337211748824012 |
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 commit, abort, estimate and gc_init in struct nft_set_ops. Signed-off-by: George Guo <guodongtai@kylinos.cn> --- include/net/netfilter/nf_tables.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index a8243cf32e29..1e24db91a37e 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -424,9 +424,13 @@ struct nft_set_ext; * @remove: remove element from set * @walk: iterate over all set elements * @get: get set elements + * @commit: commit set elements + * @abort: abort set elements * @privsize: function to return size of set private data + * @estimate: estimate the required memory size and the lookup complexity class * @init: initialize private data of new set instance * @destroy: destroy private data of set instance + * @gc_init: initialize garbage collection * @elemsize: element private size * * Operations lookup, update and delete have simpler interfaces, are faster