1. 16 10月, 2007 3 次提交
    • P
      [INET]: Collect frag queues management objects together · 7eb95156
      Pavel Emelyanov 提交于
      There are some objects that are common in all the places
      which are used to keep track of frag queues, they are:
      
       * hash table
       * LRU list
       * rw lock
       * rnd number for hash function
       * the number of queues
       * the amount of memory occupied by queues
       * secret timer
      
      Move all this stuff into one structure (struct inet_frags)
      to make it possible use them uniformly in the future. Like
      with the previous patch this mostly consists of hunks like
      
      -    write_lock(&ipfrag_lock);
      +    write_lock(&ip4_frags.lock);
      
      To address the issue with exporting the number of queues and
      the amount of memory occupied by queues outside the .c file
      they are declared in, I introduce a couple of helpers.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7eb95156
    • P
      [INET]: Move common fields from frag_queues in one place. · 5ab11c98
      Pavel Emelyanov 提交于
      Introduce the struct inet_frag_queue in include/net/inet_frag.h
      file and place there all the common fields from three structs:
      
       * struct ipq in ipv4/ip_fragment.c
       * struct nf_ct_frag6_queue in nf_conntrack_reasm.c
       * struct frag_queue in ipv6/reassembly.c
      
      After this, replace these fields on appropriate structures with
      this structure instance and fix the users to use correct names
      i.e. hunks like
      
      -    atomic_dec(&fq->refcnt);
      +    atomic_dec(&fq->q.refcnt);
      
      (these occupy most of the patch)
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ab11c98
    • H
      [IPV6]: Make ipv6_frag_rcv return the same packet · f61944ef
      Herbert Xu 提交于
      This patch implements the same change taht was done to ip_defrag.  It
      makes ipv6_frag_rcv return the last packet received of a train of fragments
      rather than the head of that sequence.
      
      This allows us to get rid of the sk_buff ** argument later.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f61944ef
  2. 11 10月, 2007 1 次提交
    • E
      [NET]: Make the device list and device lookups per namespace. · 881d966b
      Eric W. Biederman 提交于
      This patch makes most of the generic device layer network
      namespace safe.  This patch makes dev_base_head a
      network namespace variable, and then it picks up
      a few associated variables.  The functions:
      dev_getbyhwaddr
      dev_getfirsthwbytype
      dev_get_by_flags
      dev_get_by_name
      __dev_get_by_name
      dev_get_by_index
      __dev_get_by_index
      dev_ioctl
      dev_ethtool
      dev_load
      wireless_process_ioctl
      
      were modified to take a network namespace argument, and
      deal with it.
      
      vlan_ioctl_set and brioctl_set were modified so their
      hooks will receive a network namespace argument.
      
      So basically anthing in the core of the network stack that was
      affected to by the change of dev_base was modified to handle
      multiple network namespaces.  The rest of the network stack was
      simply modified to explicitly use &init_net the initial network
      namespace.  This can be fixed when those components of the network
      stack are modified to handle multiple network namespaces.
      
      For now the ifindex generator is left global.
      
      Fundametally ifindex numbers are per namespace, or else
      we will have corner case problems with migration when
      we get that far.
      
      At the same time there are assumptions in the network stack
      that the ifindex of a network device won't change.  Making
      the ifindex number global seems a good compromise until
      the network stack can cope with ifindex changes when
      you change namespaces, and the like.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      881d966b
  3. 26 4月, 2007 8 次提交
  4. 11 2月, 2007 1 次提交
  5. 03 12月, 2006 2 次提交
  6. 23 9月, 2006 2 次提交
  7. 01 7月, 2006 1 次提交
  8. 12 4月, 2006 1 次提交
  9. 21 3月, 2006 1 次提交
  10. 08 1月, 2006 1 次提交
  11. 17 11月, 2005 1 次提交
  12. 09 9月, 2005 1 次提交
  13. 30 8月, 2005 1 次提交
  14. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4