• Florian Westphal's avatar
    netfilter: nfnetlink: use net_generic infra · 1be05ea7
    Florian Westphal authored
    No need to place it in struct net, nfnetlink is a module and usage
    doesn't occur in fastpath.
    
    Also remove rcu usage:
    
    Not a single reader of net->nfnl uses rcu accessors.
    
    When exit_batch callbacks are executed the net namespace is already dead
    so no calls to these functions are possible anymore (else we'd get NULL
    deref crash too).
    
    If the module is removed, then modules that call any of those functions
    have been removed too so no calls to nfnl functions are possible either.
    
    The nfnl and nfl_stash pointers in struct net are no longer used, they
    will be removed in a followup patch to minimize changes to struct net
    (causes rebuild for entire network stack).
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    1be05ea7
nfnetlink.c 17.3 KB