From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EDE7DE574 for ; Thu, 1 Jun 2023 13:26:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F14BC433EF; Thu, 1 Jun 2023 13:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685625972; bh=DHbeZIlCJD/8jt1CjNFc6VqW0nOJJ4BR9ZXicu9RwkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SpQjnqVAoOMX786E1yeDt6otAGPz6NcJe1yad3Yom0bIPLKpTU4VvPGHm5tsJHtJt 6xnU/Dcf9Mlx8wH+n3WfGwY6Y2/of3KSyK7+cJAUAZkf/XDbwNRlCSjVE3Ho0gi9O0 K7gtMfpqoVhhFF3HFY7hza//NbNfsyMqE1Mj0iso= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jakub Kicinski , Stanislav Fomichev , Alexei Starovoitov , Sasha Levin Subject: [PATCH 6.3 09/45] bpf: netdev: init the offload table earlier Date: Thu, 1 Jun 2023 14:21:05 +0100 Message-Id: <20230601131939.130808037@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230601131938.702671708@linuxfoundation.org> References: <20230601131938.702671708@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Jakub Kicinski [ Upstream commit e1505c1cc8d527fcc5bcaf9c1ad82eed817e3e10 ] Some netdevices may get unregistered before late_initcall(), we have to move the hashtable init earlier. Fixes: f1fc43d03946 ("bpf: Move offload initialization into late_initcall") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217399 Signed-off-by: Jakub Kicinski Acked-by: Stanislav Fomichev Link: https://lore.kernel.org/r/20230505215836.491485-1-kuba@kernel.org Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- kernel/bpf/offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/offload.c b/kernel/bpf/offload.c index 0c85e06f7ea7f..ee146430d9984 100644 --- a/kernel/bpf/offload.c +++ b/kernel/bpf/offload.c @@ -853,4 +853,4 @@ static int __init bpf_offload_init(void) return rhashtable_init(&offdevs, &offdevs_params); } -late_initcall(bpf_offload_init); +core_initcall(bpf_offload_init); -- 2.39.2