An error occurred fetching the project authors.
  1. 28 Feb, 2008 2 commits
  2. 20 Feb, 2008 1 commit
  3. 07 Feb, 2008 1 commit
  4. 05 Feb, 2008 2 commits
  5. 28 Jan, 2008 3 commits
    • Hideo Aoki's avatar
      [NET] CORE: Introducing new memory accounting interface. · 3ab224be
      Hideo Aoki authored
      This patch introduces new memory accounting functions for each network
      protocol. Most of them are renamed from memory accounting functions
      for stream protocols. At the same time, some stream memory accounting
      functions are removed since other functions do same thing.
      
      Renaming:
      	sk_stream_free_skb()		->	sk_wmem_free_skb()
      	__sk_stream_mem_reclaim()	->	__sk_mem_reclaim()
      	sk_stream_mem_reclaim()		->	sk_mem_reclaim()
      	sk_stream_mem_schedule 		->    	__sk_mem_schedule()
      	sk_stream_pages()      		->	sk_mem_pages()
      	sk_stream_rmem_schedule()	->	sk_rmem_schedule()
      	sk_stream_wmem_schedule()	->	sk_wmem_schedule()
      	sk_charge_skb()			->	sk_mem_charge()
      
      Removeing
      	sk_stream_rfree():	consolidates into sock_rfree()
      	sk_stream_set_owner_r(): consolidates into skb_set_owner_r()
      	sk_stream_mem_schedule()
      
      The following functions are added.
          	sk_has_account(): check if the protocol supports accounting
      	sk_mem_uncharge(): do the opposite of sk_mem_charge()
      
      In addition, to achieve consolidation, updating sk_wmem_queued is
      removed from sk_mem_charge().
      
      Next, to consolidate memory accounting functions, this patch adds
      memory accounting calls to network core functions. Moreover, present
      memory accounting call is renamed to new accounting call.
      
      Finally we replace present memory accounting calls with new interface
      in TCP and SCTP.
      Signed-off-by: default avatarTakahiro Yasui <tyasui@redhat.com>
      Signed-off-by: default avatarHideo Aoki <haoki@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3ab224be
    • Vlad Yasevich's avatar
    • Pavel Emelyanov's avatar
      [NET]: Name magic constants in sock_wake_async() · 8d8ad9d7
      Pavel Emelyanov authored
      The sock_wake_async() performs a bit different actions
      depending on "how" argument. Unfortunately this argument
      ony has numerical magic values.
      
      I propose to give names to their constants to help people
      reading this function callers understand what's going on
      without looking into this function all the time.
      
      I suppose this is 2.6.25 material, but if it's not (or the
      naming seems poor/bad/awful), I can rework it against the
      current net-2.6 tree.
      Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8d8ad9d7
  6. 07 Dec, 2007 2 commits
  7. 09 Nov, 2007 1 commit
  8. 07 Nov, 2007 2 commits
  9. 14 Oct, 2007 1 commit
  10. 11 Oct, 2007 2 commits
  11. 10 Oct, 2007 3 commits
  12. 16 Sep, 2007 2 commits
  13. 30 Aug, 2007 2 commits
  14. 01 Aug, 2007 5 commits
  15. 19 Jul, 2007 1 commit
  16. 06 Jul, 2007 2 commits
  17. 26 Jun, 2007 1 commit
    • Zach Brown's avatar
      SCTP: lock_sock_nested in sctp_sock_migrate · 5131a184
      Zach Brown authored
      sctp_sock_migrate() grabs the socket lock on a newly allocated socket while
      holding the socket lock on an old socket.  lockdep worries that this might
      be a recursive lock attempt.
      
       task/3026 is trying to acquire lock:
        (sk_lock-AF_INET){--..}, at: [<ffffffff88105b8c>] sctp_sock_migrate+0x2e3/0x327 [sctp]
       but task is already holding lock:
        (sk_lock-AF_INET){--..}, at: [<ffffffff8810891f>] sctp_accept+0xdf/0x1e3 [sctp]
      
      This patch tells lockdep that this locking is safe by using
      lock_sock_nested().
      Signed-off-by: default avatarZach Brown <zach.brown@oracle.com>
      Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
      5131a184
  18. 19 Jun, 2007 2 commits
    • Neil Horman's avatar
      SCTP: Fix sctp_getsockopt_get_peer_addrs · 186e2343
      Neil Horman authored
      	This is the split out of the patch that we agreed I should split
      out from my last patch.  It changes space_left to be computed in the same
      way the to variable is.  I know we talked about changing space_left to an
      int, but I think size_t is more appropriate, since we should never have
      negative space in our buffer, and computing using offsetof means space_left
      should now never drop below zero.
      Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
      Acked-by: default avatarSridhar Samudrala <sri@us.ibm.com>
      Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
      186e2343
    • Neil Horman's avatar
      SCTP: update sctp_getsockopt helpers to allow oversized buffers · 408f22e8
      Neil Horman authored
      	I noted the other day while looking at a bug that was ostensibly
      in some perl networking library, that we strictly avoid allowing getsockopt
      operations to complete if we pass in oversized buffers.  This seems to make
      libraries like Perl::NET malfunction since it seems to allocate oversized
      buffers for use in several operations.  It also seems to be out of line with
      the way udp, tcp and ip getsockopt routines handle buffer input (since the
      *optlen pointer in both an input and an output and gets set to the length
      of the data that we copy into the buffer).  This patch brings our getsockopt
      helpers into line with other protocols, and allows us to accept oversized
      buffers for our getsockopt operations.  Tested by me with good results.
      Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
      Acked-by: default avatarSridhar Samudrala <sri@us.ibm.com>
      Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
      408f22e8
  19. 13 Jun, 2007 4 commits
  20. 11 May, 2007 1 commit