Skip to content
  1. Dec 18, 2018
  2. Dec 14, 2018
  3. Dec 01, 2018
    • Florian Westphal's avatar
      netfilter: nat: remove l4 protocol port rovers · 6ed5943f
      Florian Westphal authored
      
      
      This is a leftover from days where single-cpu systems were common:
      Store last port used to resolve a clash to use it as a starting point when
      the next conflict needs to be resolved.
      
      When we have parallel attempt to connect to same address:port pair,
      its likely that both cores end up computing the same "available" port,
      as both use same starting port, and newly used ports won't become
      visible to other cores until the conntrack gets confirmed later.
      
      One of the cores then has to drop the packet at insertion time because
      the chosen new tuple turns out to be in use after all.
      
      Lets simplify this: remove port rover and use a pseudo-random starting
      point.
      
      Note that this doesn't make netfilter default to 'fully random' mode;
      the 'rover' was only used if NAT could not reuse source port as-is.
      
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      6ed5943f
    • Pablo Neira Ayuso's avatar
      netfilter: remove NFC_* cache bits · c3e93059
      Pablo Neira Ayuso authored
      
      
      These are very very (for long time unused) caching infrastructure
      definition, remove then. They have nothing to do with the NFC subsystem.
      
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      c3e93059
    • Paul E. McKenney's avatar
      netfilter: Replace call_rcu_bh(), rcu_barrier_bh(), and synchronize_rcu_bh() · c8d1da40
      Paul E. McKenney authored
      
      
      Now that call_rcu()'s callback is not invoked until after bh-disable
      regions of code have completed (in addition to explicitly marked
      RCU read-side critical sections), call_rcu() can be used in place
      of call_rcu_bh().  Similarly, rcu_barrier() can be used in place of
      rcu_barrier_bh() and synchronize_rcu() in place of synchronize_rcu_bh().
      This commit therefore makes these changes.
      
      Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      c8d1da40
  4. Nov 12, 2018