1. 24 2月, 2011 4 次提交
  2. 23 2月, 2011 12 次提交
  3. 18 2月, 2011 1 次提交
  4. 11 2月, 2011 1 次提交
  5. 15 12月, 2010 1 次提交
  6. 14 12月, 2010 1 次提交
    • D
      net: Abstract default ADVMSS behind an accessor. · 0dbaee3b
      David S. Miller 提交于
      Make all RTAX_ADVMSS metric accesses go through a new helper function,
      dst_metric_advmss().
      
      Leave the actual default metric as "zero" in the real metric slot,
      and compute the actual default value dynamically via a new dst_ops
      AF specific callback.
      
      For stacked IPSEC routes, we use the advmss of the path which
      preserves existing behavior.
      
      Unlike ipv4/ipv6, DecNET ties the advmss to the mtu and thus updates
      advmss on pmtu updates.  This inconsistency in advmss handling
      results in more raw metric accesses than I wish we ended up with.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0dbaee3b
  7. 10 12月, 2010 1 次提交
    • D
      net: Abstract away all dst_entry metrics accesses. · defb3519
      David S. Miller 提交于
      Use helper functions to hide all direct accesses, especially writes,
      to dst_entry metrics values.
      
      This will allow us to:
      
      1) More easily change how the metrics are stored.
      
      2) Implement COW for metrics.
      
      In particular this will help us put metrics into the inetpeer
      cache if that is what we end up doing.  We can make the _metrics
      member a pointer instead of an array, initially have it point
      at the read-only metrics in the FIB, and then on the first set
      grab an inetpeer entry and point the _metrics member there.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
      defb3519
  8. 21 10月, 2010 1 次提交
  9. 21 9月, 2010 1 次提交
    • T
      xfrm: Allow different selector family in temporary state · 8444cf71
      Thomas Egerer 提交于
      The family parameter xfrm_state_find is used to find a state matching a
      certain policy. This value is set to the template's family
      (encap_family) right before xfrm_state_find is called.
      The family parameter is however also used to construct a temporary state
      in xfrm_state_find itself which is wrong for inter-family scenarios
      because it produces a selector for the wrong family. Since this selector
      is included in the xfrm_user_acquire structure, user space programs
      misinterpret IPv6 addresses as IPv4 and vice versa.
      This patch splits up the original init_tempsel function into a part that
      initializes the selector respectively the props and id of the temporary
      state, to allow for differing ip address families whithin the state.
      Signed-off-by: NThomas Egerer <thomas.egerer@secunet.com>
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8444cf71
  10. 15 7月, 2010 1 次提交
  11. 26 6月, 2010 1 次提交
    • E
      snmp: add align parameter to snmp_mib_init() · 1823e4c8
      Eric Dumazet 提交于
      In preparation for 64bit snmp counters for some mibs,
      add an 'align' parameter to snmp_mib_init(), instead
      of assuming mibs only contain 'unsigned long' fields.
      
      Callers can use __alignof__(type) to provide correct
      alignment.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Herbert Xu <herbert@gondor.apana.org.au>
      CC: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
      CC: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      CC: Vlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1823e4c8
  12. 25 6月, 2010 1 次提交
  13. 02 6月, 2010 1 次提交
  14. 18 5月, 2010 1 次提交
  15. 16 5月, 2010 1 次提交
    • T
      xfrm: fix policy unreferencing on larval drop · a1aa3483
      Timo Teras 提交于
      I mistakenly had the error path to use num_pols to decide how
      many policies we need to drop (cruft from earlier patch set
      version which did not handle socket policies right).
      
      This is wrong since normally we do not keep explicit references
      (instead we hold reference to the cache entry which holds references
      to policies). drop_pols is set to num_pols if we are holding the
      references, so use that. Otherwise we eventually BUG_ON inside
      xfrm_policy_destroy due to premature policy deletion.
      Signed-off-by: NTimo Teras <timo.teras@iki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a1aa3483
  16. 01 5月, 2010 1 次提交
  17. 07 4月, 2010 3 次提交
  18. 02 4月, 2010 1 次提交
    • T
      xfrm: remove policy lock when accessing policy->walk.dead · ea2dea9d
      Timo Teräs 提交于
      All of the code considers ->dead as a hint that the cached policy
      needs to get refreshed. The read side can just drop the read lock
      without any side effects.
      
      The write side needs to make sure that it's written only exactly
      once. Only possible race is at xfrm_policy_kill(). This is fixed
      by checking result of __xfrm_policy_unlink() when needed. It will
      always succeed if the policy object is looked up from the hash
      list (so some checks are removed), but it needs to be checked if
      we are trying to unlink policy via a reference (appropriate
      checks added).
      
      Since policy->walk.dead is written exactly once, it no longer
      needs to be protected with a write lock.
      Signed-off-by: NTimo Teras <timo.teras@iki.fi>
      Acked-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ea2dea9d
  19. 03 3月, 2010 1 次提交
  20. 24 2月, 2010 1 次提交
  21. 23 2月, 2010 2 次提交
  22. 20 2月, 2010 1 次提交
  23. 19 2月, 2010 1 次提交