lkml.org 
[lkml]   [2019]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 03/34] inet: frags: refactor ipfrag_init()
    Date
    4.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Eric Dumazet <edumazet@google.com>

    commit 483a6e4fa055123142d8956866fe2aa9c98d546d upstream.

    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 <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    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
    @@ -902,8 +902,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;
    @@ -914,4 +912,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);
    }

    \
     
     \ /
      Last update: 2019-02-07 12:42    [W:3.873 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site