1. 04 1月, 2006 1 次提交
  2. 21 11月, 2005 1 次提交
  3. 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
  4. 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
  5. 21 9月, 2005 1 次提交
  6. 20 9月, 2005 2 次提交
  7. 10 9月, 2005 1 次提交
  8. 30 8月, 2005 6 次提交
  9. 24 8月, 2005 1 次提交
  10. 20 7月, 2005 1 次提交
  11. 06 7月, 2005 2 次提交
  12. 29 6月, 2005 1 次提交
  13. 22 6月, 2005 2 次提交