Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp603283pxb; Thu, 21 Oct 2021 06:05:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz50XVUkVlAHjJu+4uzifZp2BxXZReXERCvUYgqYZHDMvxJ50jIddYWyAYzfLq5uW06JyK8 X-Received: by 2002:a17:90a:6b0a:: with SMTP id v10mr6600541pjj.130.1634821503439; Thu, 21 Oct 2021 06:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634821503; cv=none; d=google.com; s=arc-20160816; b=rVSUVTrisyIOc6vblzF7pct2g6TwW82o2uzLe/Uy8GhoJlGtwo7nsXeZiALHnwaXN6 3j8X2vyE7tQsr+S2vAuuJ4m8teW8AR865YnIPlAjvTKHQTMLYr0gTXp6JkYfpWrXYC1e r2bipN2f2tWsB+4sffotESZRn9w6xw5MAZqRxUy6pi/Rqp6gKsEBnV9sr+Xt8YqautGQ 62yKL9aX9GfKToLY1UpZ/WIq22+PB7Ha5/CpOyw0HjSPDn2W/3cWs8+vNSDnD5vjXSWi qSoTwaohuDXXixThHPtarFH198D45h8saRgBp4Uba5R6l34NF2VuM8FNNP8LDui0ZAOJ N1vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=haeGpvDXkWo+V1189NVyIC4zKFAHi/WtNPGK4bxogDE=; b=V/b9ye6OViPjo7US2k/MGAPJgEIgVqygNAIKxz7ed1rjw5DR0Qe5I5Iwk1do/+IaPs EVOoHuzu9J05vTqS+WsMyRqlMz36y0dpgVaFYN6zA3eRmc8T5KmTGqgjvJhP0/AwpSpK 9YsiQdZEHX2xlKkWpNObqezQl78RfHcZOFZ8A+ExcFQB+ijc+7jk9pMHxIUFDz5zpSuQ O8wJBQTIo0MH/5jxvHp4cCNVi6PROSwRsyuXI5zpeI5jTTWFDhFN3wKYuN20dNhb7Czl 7gwAYNcWqx/1UqmpqeKJ3aIkGkLGKLQ2783uNjKC/kTDy1+OG2AAZ6z9cj5AkxoBwMJA qHsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=ANysfixJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si7761291plh.365.2021.10.21.06.04.39; Thu, 21 Oct 2021 06:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=ANysfixJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbhJUNFl (ORCPT + 99 others); Thu, 21 Oct 2021 09:05:41 -0400 Received: from todd.t-8ch.de ([159.69.126.157]:51261 "EHLO todd.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbhJUNFk (ORCPT ); Thu, 21 Oct 2021 09:05:40 -0400 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1634821397; bh=4YdKHvN93yhq8+9juz+qrXE/FDAOs4WQpC3s82kIpYY=; h=From:To:Cc:Subject:Date:From; b=ANysfixJonxu2KHFisv92/hdJqmcHpqRwjYtE1I7s3BPC6PnveWTakAuG1qfPg6X+ T5rxYNJYSX99ixp8eoRnB5i59zo4W1iT1+LuZMXJSze+uB8dzLHVuJDcRR8Frm+8TR 3pZBn7AyWdjrgsa3c5UAJNVBnwfrPvzZDiX2KETc= To: Simon Horman , Julian Anastasov , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org Subject: [PATCH] ipvs: autoload ipvs on genl access Date: Thu, 21 Oct 2021 15:02:55 +0200 Message-Id: <20211021130255.4177-1-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kernel provides the functionality to automatically load modules providing genl families. Use this to remove the need for users to manually load the module. Signed-off-by: Thomas Weißschuh --- net/netfilter/ipvs/ip_vs_ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 29ec3ef63edc..0ff94c66641f 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -48,6 +48,8 @@ #include +MODULE_ALIAS_GENL_FAMILY(IPVS_GENL_NAME); + /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */ static DEFINE_MUTEX(__ip_vs_mutex); base-commit: d9aaaf223297f6146d9d7f36caca927c92ab855a -- 2.33.1