Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2694045rdb; Tue, 26 Dec 2023 01:45:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9IlCsw1RE3pILMySOg5v806Um5RwlVFd9TI4Ve8BQrY1+aiTWLAyA+wXEHFpiVVPu8I3m X-Received: by 2002:a17:902:7689:b0:1d3:f33c:e2b4 with SMTP id m9-20020a170902768900b001d3f33ce2b4mr6647433pll.22.1703583902854; Tue, 26 Dec 2023 01:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703583902; cv=none; d=google.com; s=arc-20160816; b=mePCjTOQu7EH+RStx1sWbaCXdsgCxwmzebUnMmcv2CL9bx4i4QOAG5emmrc1/HZseG uBqNYSuRJvrEExnQ33GESkSfVIORj4dXPIsXMVLbwFVHOZYlyuGgzfWPBtCEs93TWude zv8LYVOyV6ClloSIg+Nc+Lrcr/BNR94yuLMNr/fCgETCE+P+cznNQSjfvCuvGMRuPaCl YnGKgJ605XSv0XIciuvc43emfLzSiyNvI1ZhCo2f5PnqiCwF5iwt0KVDS9rJhvwkm71H 045v4ZEMmDZZo/LeP+CMY3Lct/BZl8M/m6LCegOJb9ouBUxOY8CNEqAfgpoRdxRIALUZ +dsw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11454-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f21-20020a170902e99500b001d420ecdabfsi6719680plb.504.2023.12.26.01.45.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:45:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11454-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11454-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 898182816CA for ; Tue, 26 Dec 2023 09:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B760A4D113; Tue, 26 Dec 2023 09:43:40 +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 ; 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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: George Guo Add comments for commit, abort, estimate and gc_init in struct nft_set_ops. Signed-off-by: George Guo --- 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 -- 2.39.2