From patchwork Tue Dec 26 09:42:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Guo X-Patchwork-Id: 183303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp770470dyb; Tue, 26 Dec 2023 01:48:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVOgHTtfSksl5sVH7AETnubbqlMZmvA3HI86+6Ea1hNml935Tu5crGkCMntezap+6StpXu X-Received: by 2002:a50:ee90:0:b0:54c:b24d:a3b6 with SMTP id f16-20020a50ee90000000b0054cb24da3b6mr4289433edr.20.1703584093407; Tue, 26 Dec 2023 01:48:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703584093; cv=none; d=google.com; s=arc-20160816; b=SMCIW+/C+4wkgdtYtCOxjRshSlSXmw3pL8+tXcKxwCLfQq2MoqMDKaOV2b0regDaTg pmvYoLxP24MYdYVpGSBVKRDYLT/YJ7HMGZEcF3dfNKk1H42RARnzeoxh2Hp+q17b1BBi waBz9EoIk35inrhfMBlnO68n8fguE+2v2tNYJu0qmG/bmxL4TjKu3cvfD1F2Z+aWPuRg seIE8NEOtMgTnQmAicAcEPvzjbdf7JHcRADlz+CV0n9cni6V5+Qg8P0xJ5c52rrJDB51 MEKPCSGcgkvNjBuFCPJs0qAvsipvBqPa6v5FGWmxmVlD2xN8rKI+Rj9X+VqMCLp5j6aE OFsg== 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=hp/0/EtTdpMsUAddj6nOU9DQyFHJ3X7EwlFVc6kkPQM=; fh=xJ4MGWUfLIY6kC5wtXQrQqroeNPseZURI9Z+Z0OAFDg=; b=ke2ji+rgu6fdcowqKv6BEa9YluOnccEGTxyYtPcpPwUxMPK156KbSqpq0+NpyVnlUb +JLYIdEhLDPmDkPeZdu1zhX6cUvSRiZrL2797KHCa1FAIVq3jTeJGZtpJXfIlZs9RGxZ a5pHHRawTVumNBnkTqKjkFAtEzQzO6KOswa6flfxVmm4JdRK/e5NRSEsl5OMnh4AH9Kn /fvhRs3xxPdfbL7X3wQdCBr/JDCT5eBRR5Khcsz//CLX2NyUIQk1FAE+cBudmSkHv1w9 GXc+Wyu4z++EUwCXIUl2+T1HI2EN43TS0JvPEp4NcUY2o/jCGjqWD6b+pOc4bv8O4QoW 2eow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=C0sepe7v; spf=pass (google.com: domain of linux-kernel+bounces-11462-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11462-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f19-20020a50a6d3000000b005522a1302a4si5332739edc.677.2023.12.26.01.48.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:48:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11462-ouuuleilei=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=C0sepe7v; spf=pass (google.com: domain of linux-kernel+bounces-11462-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11462-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 091621F22922 for ; Tue, 26 Dec 2023 09:48:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 565C75467B; Tue, 26 Dec 2023 09:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="C0sepe7v" X-Original-To: linux-kernel@vger.kernel.org Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (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 84EC653E3E for ; Tue, 26 Dec 2023 09:44:29 +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=1703583867; 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=hp/0/EtTdpMsUAddj6nOU9DQyFHJ3X7EwlFVc6kkPQM=; b=C0sepe7vQ9c5pa4c+/WXMOeWpUbZkmkRIj+cyjmF00LtSuB7V9z7cSw2LMSb+Em/YHM9CT IFz5sFodVtvDBEur4UMSEJUbpsarcaS0JPz2ZX9gdLjZR/X1IrDxX3Gcn6JM2RCE25g87g eSvxnxwHjZRmJr3+wbyF5zesOdpHijw= 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 13/14] netfilter: cleanup struct nft_object_ops Date: Tue, 26 Dec 2023 17:42:54 +0800 Message-Id: <20231226094255.77911-13-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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786337394311595341 X-GMAIL-MSGID: 1786337394311595341 From: George Guo Add comment for type in struct nft_object_ops. Signed-off-by: George Guo --- include/net/netfilter/nf_tables.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index dab1727f3487..505128d10073 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -1373,6 +1373,7 @@ struct nft_object_type { * @destroy: release existing stateful object * @dump: netlink dump stateful object * @update: update stateful object + * @type: pointer to object type */ struct nft_object_ops { void (*eval)(struct nft_object *obj,