1. 26 10月, 2005 1 次提交
    • H
      [IPV4]: Kill redundant rcu_dereference on fa_info · 1371e37d
      Herbert Xu 提交于
      This patch kills a redundant rcu_dereference on fa->fa_info in fib_trie.c.
      As this dereference directly follows a list_for_each_entry_rcu line, we
      have already taken a read barrier with respect to getting an entry from
      the list.
      
      This read barrier guarantees that all values read out of fa are valid.
      In particular, the contents of structure pointed to by fa->fa_info is
      initialised before fa->fa_info is actually set (see fn_trie_insert);
      the setting of fa->fa_info itself is further separated with a write
      barrier from the insertion of fa into the list.
      
      Therefore by taking a read barrier after obtaining fa from the list
      (which is given by list_for_each_entry_rcu), we can be sure that
      fa->fa_info contains a valid pointer, as well as the fact that the
      data pointed to by fa->fa_info is itself valid.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Acked-by: NPaul E. McKenney <paulmck@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
      1371e37d
  2. 05 10月, 2005 1 次提交
    • R
      [IPV4]: fib_trie root-node expansion · e6308be8
      Robert Olsson 提交于
      The patch below introduces special thresholds to keep root node in the trie 
      large. This gives a flatter tree at the cost of a modest memory increase.
      Overall it seems to be gain and this was also proposed by one the authors 
      of the paper in recent a seminar.
      
      Main table after loading 123 k routes.
      
      	Aver depth:     3.30
      	Max depth:      9
              Root-node size  12 bits
              Total size: 4044  kB
      
      With the patch:
      	Aver depth:     2.78
      	Max depth:      8
              Root-node size  15 bits
              Total size: 4150  kB
      
      An increase of 8-10% was seen in forwading performance for an rDoS attack. 
      Signed-off-by: NRobert Olsson <robert.olsson@its.uu.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e6308be8
  3. 21 9月, 2005 1 次提交
  4. 20 9月, 2005 2 次提交
  5. 10 9月, 2005 1 次提交
  6. 30 8月, 2005 6 次提交
  7. 24 8月, 2005 1 次提交
  8. 20 7月, 2005 1 次提交
  9. 06 7月, 2005 2 次提交
  10. 29 6月, 2005 1 次提交
  11. 22 6月, 2005 2 次提交