From patchwork Tue Dec 26 09:42:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Guo X-Patchwork-Id: 183302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp770369dyb; Tue, 26 Dec 2023 01:47:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHq/07fSWToSxXl7Lzn9hE4fNgUx6ZAink+36QPTQL44OBGmV8Gu0XgFVixavw47+WBi7qm X-Received: by 2002:a05:6e02:350c:b0:360:a97:930b with SMTP id bu12-20020a056e02350c00b003600a97930bmr2302200ilb.94.1703584070750; Tue, 26 Dec 2023 01:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703584070; cv=none; d=google.com; s=arc-20160816; b=GyCfYhPoSvTzkI98EnbdWlVCQdZ/cjeSFgkyb90o0+bJVGiwS+1SDxWOTlrdO3J+AG f4TLE+YuQAt8gUdNBF5Lgoz0CrGrCc9f0uuHB+yuUtI7nb9fVMKB2peu5F23mXxYeEue W3OOVu0DUt2jnWpnudYn7PFcPKPD2HKYL3HWFBxg7jnpYW29iz3rdgDrK3ZRIMTZS+XL lC6ikJc2N4EJvwDZ3w39yq13w2Dn/ylnBiR7WzIeOnMqTf5wMqRq4U0vOtb1Lzty5Xeg 11gZbMAzj+NE4f27RGcotXP5CQz6ugOcX32ZzoECrIXZXQ6WnglJWDUVG+34C/1lfFYJ b9FQ== 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=AmRdlIlTFvsGqdkNb3BKpWuB8bJE73vQSHmgBrz+694=; fh=xJ4MGWUfLIY6kC5wtXQrQqroeNPseZURI9Z+Z0OAFDg=; b=drcdeMHC7WBxDQNfeD/aWApjEEur5aQWSLAYDhi3IF/PHrXWDu2RpNsD+DR3i5e7Uy RndWKZymgzktRjxeGjfxvf0JgefcPkwi0s4VsLR9GQSC6LzqROit6YwkkbnSLY+nDD6l z8S/FgrYuArT3Yaouyh9foe2eMF8ung870tAQewyOI2k6bTpvB6vRkyzIp2Ky1n6kg2J GXKOS+XZ1j35SWkqmiIgdL1x6B+XTQOCfd8rVVoUkTcR5bseedtfhbDEgwI3ytCQIJ/8 eJYWyFZi4pPLKLbh23E4HCcvdXTfJrFr0hp00h4GxjXLDzZpiCmMXVmz04QxGtZYShDC jlPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uHPnSNt7; spf=pass (google.com: domain of linux-kernel+bounces-11461-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11461-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 v62-20020a632f41000000b005cdb0648eb8si9154096pgv.508.2023.12.26.01.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:47:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11461-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=uHPnSNt7; spf=pass (google.com: domain of linux-kernel+bounces-11461-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11461-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 8369D2830F8 for ; Tue, 26 Dec 2023 09:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08D3553E38; Tue, 26 Dec 2023 09:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uHPnSNt7" X-Original-To: linux-kernel@vger.kernel.org Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 4E47A539E2 for ; Tue, 26 Dec 2023 09:44:25 +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=1703583863; 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=AmRdlIlTFvsGqdkNb3BKpWuB8bJE73vQSHmgBrz+694=; b=uHPnSNt7jI7Wkji8vG7Fm5kd70eP4RgIvmULyn+cjC0V3T2nOZtkzpmB8gOLI1x8pnfv08 b9CvhHgnSM9rszSMhXohQjzM+q/JySMwzCLkKul0mN+SHJZAavuxQ2NgOJ6y0/laMoLFwx qhAK6NO+pz4QsYitaO9ltx7rkLoSV+s= 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 12/14] netfilter: cleanup struct nft_object Date: Tue, 26 Dec 2023 17:42:53 +0800 Message-Id: <20231226094255.77911-12-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: 1786337370635559357 X-GMAIL-MSGID: 1786337370635559357 From: George Guo Add comments for udlen, udata in struct nft_object. Signed-off-by: George Guo --- include/net/netfilter/nf_tables.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 526332bde1b4..dab1727f3487 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -1301,11 +1301,13 @@ struct nft_object_hash_key { * struct nft_object - nf_tables stateful object * * @list: table stateful object list node - * @key: keys that identify this object * @rhlhead: nft_objname_ht node + * @key: keys that identify this object * @genmask: generation mask * @use: number of references to this stateful object * @handle: unique object handle + * @udlen: length of user data + * @udata: user data * @ops: object operations * @data: object data, layout depends on type */