• Florian Westphal's avatar
    netfilter: conntrack: remove __nf_ct_unconfirmed_destroy · ace53fdc
    Florian Westphal authored
    Its not needed anymore:
    
    A. If entry is totally new, then the rcu-protected resource
    must already have been removed from global visibility before call
    to nf_ct_iterate_destroy.
    
    B. If entry was allocated before, but is not yet in the hash table
       (uncofirmed case), genid gets incremented and synchronize_rcu() call
       makes sure access has completed.
    
    C. Next attempt to peek at extension area will fail for unconfirmed
      conntracks, because ext->genid != genid.
    
    D. Conntracks in the hash are iterated as before.
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    ace53fdc
nf_conntrack_core.c 73.3 KB