Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4537000imm; Mon, 17 Sep 2018 16:05:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY8D+CgHaIwgfnk08RtV04fsFb6g3jEPRfg0P8CPze7Wd3l0Zj8AGPBup57Sgj/IjDU6gVF X-Received: by 2002:a63:6107:: with SMTP id v7-v6mr24940524pgb.226.1537225503155; Mon, 17 Sep 2018 16:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225503; cv=none; d=google.com; s=arc-20160816; b=zgHm/mNUlEVGJWWua0aFuC165g2/EMQMIs7sheh5vdj8n7RRUyaBtRW0tTr40cqI1/ igrJO4hT2mn0cmCOyTeqwaNgo929np4/gvIyuAgFsc9ygFbGRpb5fdPzM1av2gSdeKSk 2y24n3dG3XQhGs38nxL3u+Ru+HGrGuEqj2fVE0wzPEDTRAR2aop5aJP46IjqZelFKAXH DXN9/jiBjohtXrxOytJnGz6Us1I8Cb4lKaK0wPosUWE6H3jzD2HzRypLhYmX4i90O6ub Uhvt4bxholbvLujv/wI87zVb1Fd5AQjIdn1rtxaXeDa9H4Z5aMwpuDUEUT41W1Fldumo 5+4w== 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; bh=v40OKMr1o+Bj2WOGI7aRqdl7B0FIujDP0GMtXnAmLsE=; b=hR99e15rTO2WWqxub5xqtu15AvucYX/YTmk1Dw1VdHB05HO97nfeQyuQsf6qMf/Ta5 E+GNhxPJLr9R5I7sVBPmLZllufsfFBQPkO/UEydVvQRRKGtzAsohTku9CTefYPBfMxqM VyGVaW2fD/liQjmqGNlTX93LkF20bGUoe23xpCohYruTdJhD2Em91yQJ5ttDZLRxYbkj hwG1ZwfwcL6MJNwLxnV7mI9MsBYGiDccWs/667ThcX/KvQ0sRNcfooEzGrbmGD823cZe 0KRKek4NRvIjf6k5+2knHtBznMp0y+AnDFJytBY80+JhJ/6Xhf1W3rPTLyZ2K/7PrgJC 2aSA== ARC-Authentication-Results: i=1; mx.google.com; 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 m1-v6si16151011pgq.584.2018.09.17.16.04.48; Mon, 17 Sep 2018 16:05:03 -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; 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 S1730860AbeIREeG (ORCPT + 99 others); Tue, 18 Sep 2018 00:34:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49164 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbeIREeG (ORCPT ); Tue, 18 Sep 2018 00:34:06 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 19221C03; Mon, 17 Sep 2018 23:04:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , "David S. Miller" Subject: [PATCH 4.14 094/126] inet: frags: refactor ipfrag_init() Date: Tue, 18 Sep 2018 00:42:22 +0200 Message-Id: <20180917211710.122320978@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@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.14-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 @@ -900,8 +900,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; @@ -911,4 +909,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); }