Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5452815imm; Tue, 16 Oct 2018 10:26:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV62XEqrOzzXXO6NQgmPFdkjw1oxAfsuMWpkL6SbuQqTGoizfkO/cXEaucrT08T6MGh9fkqQU X-Received: by 2002:a62:15ce:: with SMTP id 197-v6mr14175609pfv.222.1539710781038; Tue, 16 Oct 2018 10:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710781; cv=none; d=google.com; s=arc-20160816; b=SkVZ67doApW1Pw0Xn9QbYqfeID+gfCdqoajpS1qU1Wp2CU9AQTnfSpteEIzfWKiWg5 y41kfYVdJIUSXY9KSJaKUjfLTBcx9WvAR44lbAr58GGA+WEWrD0jqZWe8jbTMBgqph3s zkLI6gPSb0OZudd2+cKP+DNCEij3NLuZt3ER+jPh2DgZQKLXwndFkyibTphHV5NQhB+y 61A1OyNq8nXDaVfQZqz0Ux/wgIhL20M5HTROg7MSU+1RRyXzTlcqT24MlU+y0MYQPHUr KW8ottt3u6NWBRpHQK1tmI8HHHxr0vsMwGlLGvUoVYsfpv1LNl8sGspoGDUasL31Ogs7 7oMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=llsu7BSUB7gSE6pUqSi4wKvRI/YY3QtDteogKEdXBUA=; b=wKpwqXegCHT3j/6n0fX0m/V2/Yk8o05kSGPmiOf/MbbsTnmU8JcuK6vWeJcsMhLGSV TksnnTPtGq1CxipelH0aCxxoWO9URVKTOdLUXx0EPUWC1wW9rtxDTnwLa5h2h1rnRmdy vHEBHBM/CuXp5keRDUuAidgcsA+M9kAbYmoHCM/a7pSxw1YqUSwXHt6b+8RJOzBFIeWA PIknFqEyeyF5wTkDDrzpb99sNH8wKMX52zjKypDntjanY8uDyR7Ttg4smgTmKLZpbmkz rSWh3jBnDAE9Jps3wJ2Q/u70OIN0u5h1y0PUYlBy4KS9y97UtASqkqtuYRwoRiq01mpx v9qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ap0rUX+d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m75-v6si14907940pga.481.2018.10.16.10.26.05; Tue, 16 Oct 2018 10:26:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ap0rUX+d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731693AbeJQBPx (ORCPT + 99 others); Tue, 16 Oct 2018 21:15:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:34558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbeJQBPx (ORCPT ); Tue, 16 Oct 2018 21:15:53 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D56320658; Tue, 16 Oct 2018 17:24:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710667; bh=cgzEtXYR5ZLtccoCW9fTK97xGEGuQ/n75en85D2Ptfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ap0rUX+dHvDnEJhLSnOjfhuVgeyFYrRtK/ZpZlXfbMPqSagrCto3VO6SHcZLweNPc ET9ph3Sg3YWpCPyBAF0Ma7MNHuqwvrmAgzsBDvesdA2GFayzOsjKNOcU4OPrm+yYND EBSWBxtCGuX3WExU2Z1glg3/ORD2yaZaylOhgRA8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , "David S. Miller" Subject: [PATCH 4.9 45/71] inet: frags: refactor ipfrag_init() Date: Tue, 16 Oct 2018 19:09:42 +0200 Message-Id: <20181016170541.647713946@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet We need to call inet_frags_init() before register_pernet_subsys(), as a prereq for following patch ("inet: frags: use rhashtables for reassembly units") Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller (cherry picked from commit 483a6e4fa055123142d8956866fe2aa9c98d546d) Signed-off-by: Greg Kroah-Hartman --- net/ipv4/ip_fragment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c @@ -899,8 +899,6 @@ static struct pernet_operations ip4_frag void __init ipfrag_init(void) { - ip4_frags_ctl_register(); - register_pernet_subsys(&ip4_frags_ops); ip4_frags.hashfn = ip4_hashfn; ip4_frags.constructor = ip4_frag_init; ip4_frags.destructor = ip4_frag_free; @@ -910,4 +908,6 @@ void __init ipfrag_init(void) ip4_frags.frags_cache_name = ip_frag_cache_name; if (inet_frags_init(&ip4_frags)) panic("IP: failed to allocate ip4_frags cache\n"); + ip4_frags_ctl_register(); + register_pernet_subsys(&ip4_frags_ops); }