1. 17 9月, 2007 3 次提交
  2. 01 8月, 2007 1 次提交
  3. 31 7月, 2007 2 次提交
  4. 26 4月, 2007 6 次提交
    • M
      [PPPOE]: Fix device tear-down notification. · 42dc9cd5
      Michal Ostrowski 提交于
      pppoe_flush_dev() kicks all sockets bound to a device that is going down.
      In doing so, locks must be taken in the right order consistently (sock lock,
      followed by the pppoe_hash_lock).  However, the scan process is based on
      us holding the sock lock.  So, when something is found in the scan we must
      release the lock we're holding and grab the sock lock.
      
      This patch fixes race conditions between this code and pppoe_release(),
      both of which perform similar functions but would naturally prefer to grab
      locks in opposing orders.  Both code paths are now going after these locks
      in a consistent manner.
      
      pppoe_hash_lock protects the contents of the "pppox_sock" objects that reside
      inside the hash.  Thus, NULL'ing out the pppoe_dev field should be done
      under the protection of this lock.
      Signed-off-by: NMichal Ostrowski <mostrows@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42dc9cd5
    • F
      [PPPOE]: race between interface going down and connect() · 74b885cf
      Florian Zumbiehl 提交于
      below you find a patch that (hopefully) fixes a race between an interface
      going down and a connect() to a peer on that interface. Before,
      connect() would determine that an interface is up, then the interface
      could go down and all entries referring to that interface in the
      item_hash_table would be marked as ZOMBIEs and their references to
      the device would be freed, and after that, connect() would put a new
      entry into the hash table referring to the device that meanwhile is
      down already - which also would cause unregister_netdevice() to wait
      until the socket has been release()d.
      
      This patch does not suffice if we are not allowed to accept connect()s
      referring to a device that we already acked a NETDEV_GOING_DOWN for
      (that is: all references are only guaranteed to be freed after
      NETDEV_DOWN has been acknowledged, not necessarily after the
      NETDEV_GOING_DOWN already). And if we are allowed to, we could avoid
      looking through the hash table upon NETDEV_GOING_DOWN completely and
      only do that once we get the NETDEV_DOWN ...
      
      mostrows:
      pppoe_flush_dev is called on NETDEV_GOING_DOWN and NETDEV_DOWN to deal with
      this "late connect" issue.  Ideally one would hope to notify users at the
      "NETDEV_GOING_DOWN" phase (just to pretend to be nice).  However, it is the
      NETDEV_DOWN scan that takes all the responsibility for ensuring nobody is
      hanging around at that time.
      Signed-off-by: NFlorian Zumbiehl <florz@florz.de>
      Acked-by: NMichal Ostrowski <mostrows@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      74b885cf
    • F
      [PPPoE]: miscellaneous smaller cleanups · bfafb26e
      Florian Zumbiehl 提交于
      below is a patch that just removes dead code/initializers without any
      effect (first access is an assignment) that I stumbled accross while
      reading the source.
      Signed-off-by: NFlorian Zumbiehl <florz@florz.de>
      Acked-by: NMichal Ostrowski <mostrows@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bfafb26e
    • A
      [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} · d626f62b
      Arnaldo Carvalho de Melo 提交于
      To clearly state the intent of copying from linear sk_buffs, _offset being a
      overly long variant but interesting for the sake of saving some bytes.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      d626f62b
    • A
      [SK_BUFF]: Introduce skb_reset_network_header(skb) · c1d2bbe1
      Arnaldo Carvalho de Melo 提交于
      For the common, open coded 'skb->nh.raw = skb->data' operation, so that we can
      later turn skb->nh.raw into a offset, reducing the size of struct sk_buff in
      64bit land while possibly keeping it as a pointer on 32bit.
      
      This one touches just the most simple case, next will handle the slightly more
      "complex" cases.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1d2bbe1
    • A
      [PPPOE]: Introduce pppoe_hdr() · 797659fb
      Arnaldo Carvalho de Melo 提交于
      For consistency with all the other skb->nh.raw accessors.
      
      Also do some really obvious simplifications in pppoe_recvmsg, well the
      kfree_skb one is not so obvious, but free() and kfree() have the same behaviour
      (hint :-) ).
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      797659fb
  5. 06 3月, 2007 1 次提交
  6. 03 3月, 2007 1 次提交
    • F
      [PPPOE]: Key connections properly on local device. · 90719dbe
      Florian Zumbiehl 提交于
      It is based on the assumption that an interface's ifindex is basically
      an alias for a local MAC address, so incoming packets now are matched
      to sockets based on remote MAC, session id, and ifindex of the
      interface the packet came in on/the socket was bound to by connect().
      
      For relayed packets, the socket that's used for relaying is selected
      based on destination MAC, session ID and the interface index of the
      interface whose name currently matches the name requested by userspace
      as the relaying source interface.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90719dbe
  7. 13 2月, 2007 1 次提交
  8. 03 12月, 2006 1 次提交
  9. 29 9月, 2006 1 次提交
  10. 14 9月, 2006 1 次提交
  11. 06 6月, 2006 1 次提交
  12. 21 3月, 2006 1 次提交
    • H
      [NET]: Replace skb_pull/skb_postpull_rcsum with skb_pull_rcsum · cbb042f9
      Herbert Xu 提交于
      We're now starting to have quite a number of places that do skb_pull
      followed immediately by an skb_postpull_rcsum.  We can merge these two
      operations into one function with skb_pull_rcsum.  This makes sense
      since most pull operations on receive skb's need to update the
      checksum.
      
      I've decided to make this out-of-line since it is fairly big and the
      fast path where hardware checksums are enabled need to call
      csum_partial anyway.
      
      Since this is a brand new function we get to add an extra check on the
      len argument.  As it is most callers of skb_pull ignore its return
      value which essentially means that there is no check on the len
      argument.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cbb042f9
  13. 04 1月, 2006 2 次提交
  14. 29 9月, 2005 1 次提交
  15. 30 8月, 2005 1 次提交
    • D
      [NET]: Kill skb->real_dev · f2ccd8fa
      David S. Miller 提交于
      Bonding just wants the device before the skb_bond()
      decapsulation occurs, so simply pass that original
      device into packet_type->func() as an argument.
      
      It remains to be seen whether we can use this same
      exact thing to get rid of skb->input_dev as well.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f2ccd8fa
  16. 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