netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 09/14] netfilter: cleanup struct nft_expr_ops
Date: Tue, 26 Dec 2023 17:42:50 +0800	[thread overview]
Message-ID: <20231226094255.77911-9-dongtai.guo@linux.dev> (raw)
In-Reply-To: <20231226094255.77911-1-dongtai.guo@linux.dev>

From: George Guo <guodongtai@kylinos.cn>

Add comments for clone, destroy_clone, reduce, gc, offload,
offload_action, offload_stats in struct nft_expr_ops.

Signed-off-by: George Guo <guodongtai@kylinos.cn>
---
 include/net/netfilter/nf_tables.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index 65c41dcdd4be..208cfedb083c 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -892,14 +892,22 @@ struct nft_offload_ctx;
  *	struct nft_expr_ops - nf_tables expression operations
  *
  *	@eval: Expression evaluation function
+ *	@clone: Expression clone function
  *	@size: full expression size, including private data size
  *	@init: initialization function
  *	@activate: activate expression in the next generation
  *	@deactivate: deactivate expression in next generation
  *	@destroy: destruction function, called after synchronize_rcu
+ *	@destroy_clone: destruction clone function
  *	@dump: function to dump parameters
- *	@type: expression type
  *	@validate: validate expression, called during loop detection
+ *	@reduce: reduce expression
+ *	@gc: garbage collection expression
+ *	@offload: hardware offload expression
+ *	@offload_action: function to report true/false to allocate one slot or not in the flow
+ *			 offload array
+ *	@offload_stats: function to synchronize hardware stats via updating the counter expression
+ *	@type: expression type
  *	@data: extra data to attach to this expression operation
  */
 struct nft_expr_ops {
-- 
2.39.2


  parent reply	other threads:[~2023-12-26  9:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-26  9:42 [PATCH 01/14] netfilter: cleanup enum nft_set_class George Guo
2023-12-26  9:42 ` [PATCH 02/14] netfilter: cleanup struct nft_set_elem George Guo
2023-12-26  9:42 ` [PATCH 03/14] netfilter: cleanup struct nft_ctx George Guo
2023-12-26  9:42 ` [PATCH 04/14] netfilter: cleanup struct nft_set_iter George Guo
2023-12-26  9:42 ` [PATCH 05/14] netfilter: cleanup struct nft_set_ops George Guo
2023-12-26  9:42 ` [PATCH 06/14] netfilter: cleanup struct nft_set George Guo
2023-12-26  9:42 ` [PATCH 07/14] netfilter: cleanup struct nft_set_ext_tmpl George Guo
2023-12-26  9:42 ` [PATCH 08/14] netfilter: cleanup struct nft_expr_type George Guo
2023-12-26  9:42 ` George Guo [this message]
2023-12-26  9:42 ` [PATCH 10/14] netfilter: cleanup struct nft_chain George Guo
2023-12-26  9:42 ` [PATCH 11/14] netfilter: cleanup struct nft_base_chain George Guo
2023-12-26  9:42 ` [PATCH 12/14] netfilter: cleanup struct nft_object George Guo
2023-12-26  9:42 ` [PATCH 13/14] netfilter: cleanup struct nft_object_ops George Guo
2023-12-26  9:42 ` [PATCH 14/14] netfilter: cleanup struct nft_flowtable George Guo
2024-01-02 13:28 ` [PATCH 01/14] netfilter: cleanup enum nft_set_class Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231226094255.77911-9-dongtai.guo@linux.dev \
    --to=dongtai.guo@linux.dev \
    --cc=coreteam@netfilter.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fw@strlen.de \
    --cc=guodongtai@kylinos.cn \
    --cc=horms@kernel.org \
    --cc=kadlec@netfilter.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).