Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5114765rwl; Tue, 11 Apr 2023 00:13:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YBU98p6pIgmHKA1P+pcWeeMi7QSLIsC9Gj4uX17XO//J8CzkvJx5Mv8qSYGjS23S8XZtZS X-Received: by 2002:a17:90b:1e44:b0:23f:635e:51e5 with SMTP id pi4-20020a17090b1e4400b0023f635e51e5mr2427006pjb.36.1681197219205; Tue, 11 Apr 2023 00:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681197219; cv=none; d=google.com; s=arc-20160816; b=zE71MsnjRLwco542/t/m8LSAsmChGEVyjZXxG+1h/z2XIrVg6602XXMHdWSzuAZBvU AFYd09DtvYDEQC5IK0S0Ud55/Dxhv+stkU45mXiOCG0dsyr0YTQGCWBrXuIGgpMKtD3E 7iVa1fHHrsbIbK4C2416xbqHU+hkl3wtQ3eOSY/Xi5jKG6wAFx3eHb6GsdRxCaj5gFwO h849akYgjBjaZ5Yli8fmGrjQ5Nlj08ra9vYE9es7LVMSD/N/XRFP23Amk4KApFhdFFcx LSFHf+ka+Lf8RXFtzqy175ZlSpPvufGwOFrZj7djRUTMwcpTWn57CSj+sQzPcCFpI2d5 A4kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=Y3iVTm+TRDUKyCWdAzbQCVFUCWnyYRye7D2u+iEEQfc=; b=wW4R9e3bz3NrCxPrOmN+UUOGdHGncurVjnTDeCBcYo0jiZX83axaqCYtt5I31BWpRI sxIuomOPNGh/aUvk06MXIvWZtPPWywdnU2PEhyz2VaNBpGbgWY+lMWvHSwGzPb3TSKQw sKSzJuAT2pRXxNRauSKrXcujp1OH0xeJJe7hH8AlZE59DAziwB7UASdbaZdYYSV+31xa /HeuQxnv/qLdyuoT4/5etpL1hJPcXenoEVvTvTSu+juFqYPgFjK+dvdYfZHUTIp7xkpp KZJO4CN45Wf6t9DCiVfj4/lWaMt9Ant97sFIQBMc9srHOe5c786x2/jnqYQR9UzltnMs R4qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mrLKW7G7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902ebd000b001a27afc07d9si12039644plg.146.2023.04.11.00.13.25; Tue, 11 Apr 2023 00:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mrLKW7G7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbjDKHKu (ORCPT + 99 others); Tue, 11 Apr 2023 03:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjDKHKt (ORCPT ); Tue, 11 Apr 2023 03:10:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C5BA1711; Tue, 11 Apr 2023 00:10:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA1C362235; Tue, 11 Apr 2023 07:10:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA817C433D2; Tue, 11 Apr 2023 07:10:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681197047; bh=dWECYEnu3oSCzd3j0bJdz30hiF397lT4p1HM1cffhk4=; h=From:Subject:Date:To:Cc:From; b=mrLKW7G77IM1tlEKMJKXk5w4goTgr0LSR7dIQ1yCqF9Tqv9/E4InSF5W21Rla74DR 7IppkMo6KqOOa+PDjx+sA6BxyODf2QZmzOlIrPaO+LK5Pkg9xdljjeGMe+yKf9Wpw5 xHp0ivhjK7fMueiTcxAa15w+/Rhaksp6IRLE/r1XpyP/TrgY0qoIMa6/6bi5cFaYR1 G9AN8EOpnRPM47JBqw32QmIH14SQhJOoq8bkba5VnjuTuJoYdv0gzLBxFZEIAz2odo COSE6I1hJeeqr2NcakWE4nr7/wJWjDcP56ijMzSr/3qgMpKHnRKmLLSvMXzTHgwkzI PMxTKawpm9W6w== From: Simon Horman Subject: [PATCH nf-next v2 0/4] ipvs: Cleanups for v6.4 Date: Tue, 11 Apr 2023 09:10:38 +0200 Message-Id: <20230409-ipvs-cleanup-v2-0-204cd17da708@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAO4HNWQC/22NywqDMBBFf6XMulPiaB921f8oLpI4amgYJdFgE f+9wXWX514OZ4PIwXGE52mDwMlFN0oGOp/ADlp6RtdmBlJUqkrV6KYU0XrWskxobK2vpOle0g2 yYnRkNEGLHbIki/d5nAJ3bj0ab5AOhdcZmnwMLs5j+B7tVBz3/0wqUGH9sK2lijo26vXhIOwvY +ih2ff9BzXbgKrHAAAA To: Julian Anastasov Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , netdev@vger.kernel.org, "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , lvs-devel@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julian, this series aims to clean up IPVS in several ways without implementing any functional changes, aside from removing some debugging output. Patch 1/4: Update width of source for ip_vs_sync_conn_options The operation is safe, use an annotation to describe it properly. Patch 2/4: Consistently use array_size() in ip_vs_conn_init() It seems better to use helpers consistently. Patch 3/4: Remove {Enter,Leave}Function These seem to be well past their use-by date. Patch 4/4: Correct spelling in comments I can't spell. But codespell helps me these days. All changes: compile tested only! --- Changes in v2: - Patch 1/4: Correct spelling of 'conn' in subject --- Simon Horman (4): ipvs: Update width of source for ip_vs_sync_conn_options ipvs: Consistently use array_size() in ip_vs_conn_init() ipvs: Remove {Enter,Leave}Function ipvs: Correct spelling in comments include/net/ip_vs.h | 32 +++++---------------- net/netfilter/ipvs/ip_vs_conn.c | 12 ++++---- net/netfilter/ipvs/ip_vs_core.c | 8 ------ net/netfilter/ipvs/ip_vs_ctl.c | 26 +---------------- net/netfilter/ipvs/ip_vs_sync.c | 7 +---- net/netfilter/ipvs/ip_vs_xmit.c | 62 ++++++----------------------------------- 6 files changed, 23 insertions(+), 124 deletions(-) base-commit: 9bc11460bea751b5c805ac793de35a55629adb9b