From patchwork Tue Dec 26 09:42:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Guo X-Patchwork-Id: 183304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp770571dyb; Tue, 26 Dec 2023 01:48:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmc+v+VGu5g501GpepPlDX7YXSrHGvuQMLtiX8wCrmnB7ya4TnzTAw2IeCBhnOwq/AjDxD X-Received: by 2002:ae9:c215:0:b0:77f:acac:2017 with SMTP id j21-20020ae9c215000000b0077facac2017mr7618553qkg.48.1703584113246; Tue, 26 Dec 2023 01:48:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703584113; cv=none; d=google.com; s=arc-20160816; b=qRlFFS2AbORJgys1DYixAro8gMGaClQPmO6HnmoFBKW48IxjZ7EN3wTsAYOnApdg2Y KyMjPlULlJqpC6uLBS9o6SuVPbYTu3fuqsSGCvrDblWbCJn+7gw/1/oQxnHiy37sedVD l7Ood0xntsdwyxkTVFTpoOSrziUbPvalwkUQpZFespzf8JV37EAHqLp84OMHo19CjGwU 97W4voEgbScquXI8qbOeF+dOJ9i4i0hg91Nx6DcN9rzWBIeJoDop43bMSTCbXlkOL92E 46c/U1I/wmRMwS1czBdCx6Ra6b1HZgMmx+4756xSlWmoQG0Acc/XWma3yOTAzxE5C3vM 8KHQ== 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=OLqrcEqlQDuXOmtMoD41DhPaHHKeGyUrjqKv3FgY7JM=; fh=xJ4MGWUfLIY6kC5wtXQrQqroeNPseZURI9Z+Z0OAFDg=; b=ibflMEeIKl/Sie8HRtTwlZO8Fk49fHErfENQpPdZtjV8neEC+VAgdd9fusSRZlT5os HRMtyhd5XQSvi0KAzJTY2DC1HBfBZ1mdAcaOnhlG/FEKXWyZ4tAQDeeoEjWlmvkcMLnW KyginE6iyftJ9Al8etPGR1f8pDwkYay69N77gVFnmuxSB5v+97+gL2SusvxJHNacnEvW 3Q/opws+hZ3Xu63p//OnAh0QhQZg/D9yz+EykLPD85+XL6zsvQI4UulO8DCDB5jhxfcS MSZvz/x11pnrfn05soWDn/PUgKK9uqnAOsY63Qf0YO7cdP2IMtTrIVn1OJDMr1B3gwsR uLHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jcZJD8fA; spf=pass (google.com: domain of linux-kernel+bounces-11463-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11463-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x22-20020ae9e916000000b007815999244bsi184458qkf.22.2023.12.26.01.48.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:48:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11463-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jcZJD8fA; spf=pass (google.com: domain of linux-kernel+bounces-11463-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11463-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0623D1C21E84 for ; Tue, 26 Dec 2023 09:48:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67E524E625; Tue, 26 Dec 2023 09:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="jcZJD8fA" X-Original-To: linux-kernel@vger.kernel.org Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (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 7887D5467D for ; Tue, 26 Dec 2023 09:44:33 +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=1703583872; 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=OLqrcEqlQDuXOmtMoD41DhPaHHKeGyUrjqKv3FgY7JM=; b=jcZJD8fASaNXDquW+AXlv17kgtzk/MAMMST3c01jyYwDTPW8vbVbKmgeGdMg27PVJRqwtP 3L7K7OkWooSRnOOQRZmfjzSLtgoP171Jz4oAVdj8a3cMfSZiybw7tSmIvhlEnaCGvLRogf BEvSqJzM3OTW/loYXqjAca5eRT7TysE= 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 14/14] netfilter: cleanup struct nft_flowtable Date: Tue, 26 Dec 2023 17:42:55 +0800 Message-Id: <20231226094255.77911-14-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: 1786337415521473164 X-GMAIL-MSGID: 1786337415521473164 From: George Guo Add comment for hook_list in struct nft_flowtable, and remove comments for dev_name and ops which are not members of struct nft_flowtable. Signed-off-by: George Guo --- include/net/netfilter/nf_tables.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 505128d10073..a880e9439cc2 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -1409,9 +1409,8 @@ void nft_unregister_obj(struct nft_object_type *obj_type); * @genmask: generation mask * @use: number of references to this flow table * @handle: unique object handle - * @dev_name: array of device names + * @hook_list: hook list for hooks per net_device in flowtables * @data: rhashtable and garbage collector - * @ops: array of hooks */ struct nft_flowtable { struct list_head list;