1. 10 Nov, 2008 38 commits
  2. 08 Nov, 2008 2 commits
    • Thomas Graf's avatar
      pkt_sched: Control group classifier · f4009237
      Thomas Graf authored
      The classifier should cover the most common use case and will work
      without any special configuration.
      
      The principle of the classifier is to directly access the
      task_struct via get_current(). In order for this to work,
      classification requests from softirqs must be ignored. This is
      not a problem because the vast majority of packets in softirq
      context are not assigned to a task anyway. For this to work, a
      mechanism is needed to trace softirq context. 
      
      This repost goes back to the method of relying on the number of
      nested bh disable calls for the sake of not adding too much
      complexity and the option to come up with something more reliable
      if actually needed.
      Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f4009237
    • Eric W. Biederman's avatar
      net: Guaranetee the proper ordering of the loopback device. v2 · 505d4f73
      Eric W. Biederman authored
      I was recently hunting a bug that occurred in network namespace
      cleanup.  In looking at the code it became apparrent that we have
      and will continue to have cases where if we have anything going
      on in a network namespace there will be assumptions that the
      loopback device is present.   Things like sending igmp unsubscribe
      messages when we bring down network devices invokes the routing
      code which assumes that at least the loopback driver is present.
      
      Therefore to avoid magic initcall ordering hackery that is hard
      to follow and hard to get right insert a call to register the
      loopback device directly from net_dev_init().    This guarantes
      that the loopback device is the first device registered and
      the last network device to go away.
      
      But do it carefully so we register the loopback device after
      we clear dev_boot_phase.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@maxwell.aristanetworks.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      505d4f73