1. 18 Nov, 2009 1 commit
  2. 13 Nov, 2009 7 commits
  3. 11 Nov, 2009 1 commit
  4. 10 Nov, 2009 2 commits
  5. 08 Nov, 2009 5 commits
    • Yury Polyanskiy's avatar
      xfrm: SAD entries do not expire correctly after suspend-resume · 9e0d57fd
      Yury Polyanskiy authored
      
      
        This fixes the following bug in the current implementation of
      net/xfrm: SAD entries timeouts do not count the time spent by the machine 
      in the suspended state. This leads to the connectivity problems because 
      after resuming local machine thinks that the SAD entry is still valid, while 
      it has already been expired on the remote server.
      
        The cause of this is very simple: the timeouts in the net/xfrm are bound to 
      the old mod_timer() timers. This patch reassigns them to the
      CLOCK_REALTIME hrtimer.
      
        I have been using this version of the patch for a few months on my
      machines without any problems. Also run a few stress tests w/o any
      issues.
      
        This version of the patch uses tasklet_hrtimer by Peter Zijlstra
      (commit 9ba5f0).
      
        This patch is against 2.6.31.4. Please CC me.
      Signed-off-by: default avatarYury Polyanskiy <polyanskiy@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9e0d57fd
    • Eric Dumazet's avatar
      udp: secondary hash on (local port, local address) · 512615b6
      Eric Dumazet authored
      
      
      Extends udp_table to contain a secondary hash table.
      
      socket anchor for this second hash is free, because UDP
      doesnt use skc_bind_node : We define an union to hold
      both skc_bind_node & a new hlist_nulls_node udp_portaddr_node
      
      udp_lib_get_port() inserts sockets into second hash chain
      (additional cost of one atomic op)
      
      udp_lib_unhash() deletes socket from second hash chain
      (additional cost of one atomic op)
      
      Note : No spinlock lockdep annotation is needed, because
      lock for the secondary hash chain is always get after
      lock for primary hash chain.
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      512615b6
    • Eric Dumazet's avatar
      udp: split sk_hash into two u16 hashes · d4cada4a
      Eric Dumazet authored
      
      
      Union sk_hash with two u16 hashes for udp (no extra memory taken)
      
      One 16 bits hash on (local port) value (the previous udp 'hash')
      
      One 16 bits hash on (local address, local port) values, initialized
      but not yet used. This second hash is using jenkin hash for better
      distribution.
      
      Because the 'port' is xored later, a partial hash is performed
      on local address + net_hash_mix(net)
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d4cada4a
    • Eric Dumazet's avatar
      udp: add a counter into udp_hslot · fdcc8aa9
      Eric Dumazet authored
      
      
      Adds a counter in udp_hslot to keep an accurate count
      of sockets present in chain.
      
      This will permit to upcoming UDP lookup algo to chose
      the shortest chain when secondary hash is added.
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fdcc8aa9
    • Eric W. Biederman's avatar
      net: Support specifying the network namespace upon device creation. · 81adee47
      Eric W. Biederman authored
      
      
      There is no good reason to not support userspace specifying the
      network namespace during device creation, and it makes it easier
      to create a network device and pass it to a child network namespace
      with a well known name.
      
      We have to be careful to ensure that the target network namespace
      for the new device exists through the life of the call.  To keep
      that logic clear I have factored out the network namespace grabbing
      logic into rtnl_link_get_net.
      
      In addtion we need to continue to pass the source network namespace
      to the rtnl_link_ops.newlink method so that we can find the base
      device source network namespace.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@aristanetworks.com>
      Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      81adee47
  6. 06 Nov, 2009 9 commits
  7. 05 Nov, 2009 2 commits
  8. 04 Nov, 2009 2 commits
  9. 30 Oct, 2009 4 commits
    • Johannes Berg's avatar
      mac80211: deprecate qual value · c27f2fde
      Johannes Berg authored
      
      
      This value is unused by mac80211, because it was only
      be used by wireless extensions, and turned out to not
      be useful there because the quality value needs to be
      comparable between scan results and the current value
      which is impossible when the qual value is calculated
      taking into account noise, for example.
      
      Since it is unused anyway, this patch deprecates it
      in the hope that drivers will remove their sometimes
      quite expensive calculations of the value.
      
      I'm open to actual uses of the value, but the best
      way of using it seems to be what the Intel drivers do
      which should probably be generalised if we have noise
      values from the hardware.
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      c27f2fde
    • Johannes Berg's avatar
      mac80211: introduce ieee80211_beacon_get_tim() · eddcbb94
      Johannes Berg authored
      
      
      Compared to ieee80211_beacon_get(), the new function
      ieee80211_beacon_get_tim() returns information on the
      location and length of the TIM IE, which some drivers
      need in order to generate the TIM on the device. The
      old function, ieee80211_beacon_get(), becomes a small
      static inline wrapper around the new one to not break
      all drivers.
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      eddcbb94
    • Johannes Berg's avatar
      mac80211: remove RX_FLAG_RADIOTAP · 0869aea0
      Johannes Berg authored
      
      
      While there may be a case for a driver adding its
      own bits of radiotap information, none currently
      does. Also, drivers would have to copy the code
      to generate the radiotap bits that now mac80211
      generates. If some driver in the future needs to
      add some driver-specific information I'd expect
      that to be in a radiotap vendor namespace and we
      can add a different way of passing such data up
      and having mac80211 include it.
      
      Additionally, rename IEEE80211_CONF_RADIOTAP to
      IEEE80211_CONF_MONITOR since it's still used by
      b43(legacy) to obtain per-frame timestamps.
      
      The purpose of this patch is to simplify the RX
      code in mac80211 to make it easier to add paged
      skb support.
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      0869aea0
    • Johannes Berg's avatar
      mac80211: fix radiotap header generation · 6a86b9c7
      Johannes Berg authored
      In
      
        commit 601ae7f2
      
      
        Author: Bruno Randolf <br1@einfach.org>
        Date:   Thu May 8 19:22:43 2008 +0200
      
            mac80211: make rx radiotap header more flexible
      
      code was added that tried to align the radiotap header
      position in memory based on the radiotap header length.
      Quite obviously, that is completely useless.
      
      Instead of trying to do that, use unaligned accesses
      to generate the radiotap header. To properly do that,
      we also need to mark struct ieee80211_radiotap_header
      packed, but that is fine since it's already packed
      (and it should be marked packed anyway since its a
      wire format).
      
      Cc: Bruno Randolf <br1@einfach.org>
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      6a86b9c7
  10. 29 Oct, 2009 3 commits
  11. 28 Oct, 2009 1 commit
  12. 27 Oct, 2009 2 commits
  13. 24 Oct, 2009 1 commit