From patchwork Tue Dec 26 09:42:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Guo X-Patchwork-Id: 183291 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp769119dyb; Tue, 26 Dec 2023 01:43:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUqfp5EvI+OY2xkmGaZ6pwrA6H3B6fNXqeKzPk26V0rcmjEooDSdqgB6Ipjp9gjINFfHef X-Received: by 2002:ac2:4d13:0:b0:50e:697c:5ec8 with SMTP id r19-20020ac24d13000000b0050e697c5ec8mr1533298lfi.6.1703583814338; Tue, 26 Dec 2023 01:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703583814; cv=none; d=google.com; s=arc-20160816; b=fNLqYmCb6Up9Chi2ZHXt09NmbSl73ZPuMi+af22vNJpmU5tqocbDbRUR4yKOEVW1NS 9U5Q3xMnMoOliU7fb7JXD/j8ANK88QRGBuhGYfyfKP+gZghxXG9NBTpSsHo1aClWXr1o Jf05WlULgJXmTOMQNPd9ubkcGe+wkhmWJr0Z6n6+lp4zwx9sftjPAII40T3E5pUJW89X KhMbVvLabVItANIy0DpxcO7Yjo5yNWResAgVJ9LHPonlvz13sQfppYIqKewwCSeQtgzK 3WcAWDD5j9DNMoM2vheDNiei9mbT9/uqJl+LjmAJaDH7xNwGbxSxW+JIIOivC1SFv0TK 686Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=JZxsk+Jzb07h2zuZtmSvZ0zyWEXPJHnNQin19esIT5o=; fh=xJ4MGWUfLIY6kC5wtXQrQqroeNPseZURI9Z+Z0OAFDg=; b=vHM/C/iPh1Yv6LGSm3Qfg2s1MFhUqb75rZRdhdvxnHW5abUQWf26aWm3ogcKiZ5Snh ppNUKBKiOh/BRdDY5cvuxXiU8/RD7fkXXKsASimIXQrC1MThXTCpd/1yX/lwk2/T5/KF goCTpl90i8e6ubPOdcioA8B07K3YMIAmJHw356WcEdQOEQHm+p36gY9DED1PRChcqDNC nabslVR5vcn5jhtzX8yuRcbjad/1QRpha/j2Vp/beaUNBwneMcBNRuHJv+KP0JH0pSRX agDmtF16PEEV+DLdfwxSgM6/pGmculqN3phe+Hcniz7Ppx8OLkbjdpB0UI9fc70LqImb VmgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="eNa/a31B"; spf=pass (google.com: domain of linux-kernel+bounces-11449-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11449-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 z67-20020a509e49000000b0055307054082si5244410ede.176.2023.12.26.01.43.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:43:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11449-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="eNa/a31B"; spf=pass (google.com: domain of linux-kernel+bounces-11449-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11449-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 E9C991F21CF5 for ; Tue, 26 Dec 2023 09:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84E8D4D581; Tue, 26 Dec 2023 09:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="eNa/a31B" X-Original-To: linux-kernel@vger.kernel.org Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 1F5DC4D582 for ; Tue, 26 Dec 2023 09:43:09 +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=1703583788; 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; bh=JZxsk+Jzb07h2zuZtmSvZ0zyWEXPJHnNQin19esIT5o=; b=eNa/a31B2+Tvl3x5TdZ+1l5iF9uhme41x+em/lthqENyNR5zztGqw/1yvZk7Lo5dNBiXb8 5h4JKBfpcTMd1EuzLCW8EzpZA9MMbPhkNvoVaTwBEyXRN6x/iNdAZSqcRthIpmsaN22JPD TfMJWyMsCH4R8VybN845OZhdkVd+YEA= 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 01/14] netfilter: cleanup enum nft_set_class Date: Tue, 26 Dec 2023 17:42:42 +0800 Message-Id: <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: 1786337101760316037 X-GMAIL-MSGID: 1786337101760316037 From: George Guo Correct comments for nlpid, family, udlen and udata in struct nft_table, and afinfo is no longer a member of enum nft_set_class. Signed-off-by: George Guo --- include/net/netfilter/nf_tables.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index b157c5cafd14..18ec566cbc34 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -351,9 +351,9 @@ struct nft_set_desc { /** * enum nft_set_class - performance class * - * @NFT_LOOKUP_O_1: constant, O(1) - * @NFT_LOOKUP_O_LOG_N: logarithmic, O(log N) - * @NFT_LOOKUP_O_N: linear, O(N) + * @NFT_SET_CLASS_O_1: constant, O(1) + * @NFT_SET_CLASS_O_LOG_N: logarithmic, O(log N) + * @NFT_SET_CLASS_O_N: linear, O(N) */ enum nft_set_class { NFT_SET_CLASS_O_1,