1. 18 4月, 2008 2 次提交
    • A
      tc35815: Statistics cleanup · 10e05f78
      Atsushi Nemoto 提交于
      On Sat, 12 Apr 2008 05:00:49 -0400, Jeff Garzik <jeff@garzik.org> wrote:
      > applied 1-6
      
      Thanks.
      
      Could you apply this too, or hopufully fold into Andy Fleming's "phy:
      Change mii_bus id field to a string" patch (commit c69fedae) ?
      
      ------------------------------------------------------
      Subject: [PATCH] tc35815: build fix
      
      Fix build failure caused by Andy Fleming's "phy: Change mii_bus id
      field to a string" patch.
      Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      10e05f78
    • S
      natsemi: fix MMIO for PPC 44x platforms · 703bb99c
      Sergei Shtylyov 提交于
      The driver stores the PCI resource address into 'unsigned long' variable before
      calling ioremap()  on it. This warrants a kernel oops when the registers are
      accessed on PPC 44x platforms which (being 32-bit) have PCI memory space mapped
      beyond 4 GB.
      
      The arch/ppc/ kernel has a fixup in ioremap() that creates an illusion of the
      PCI memory resources are mapped below 4 GB, but arch/powerpc/ code got rid of
      this trick, having instead CONFIG_RESOURCES_64BIT enabled.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      703bb99c
  2. 17 4月, 2008 36 次提交
  3. 16 4月, 2008 2 次提交
    • P
      [TUN]: Allow to register tun devices in namespace. · fc54c658
      Pavel Emelyanov 提交于
      This is basically means that a net is set for a new device, but
      actually also involves two more steps:
      
      1. mark the tun device as "local", i.e. do not allow for it to
         move across namespaces.
      
      This is done so, since tun device is most often associated to some
      file (and thus to some process) and moving the device alone is not
      valid while keeping the file and the process outside. The need in 
      ability to move a detached persistent device is to be investigated 
      later.
      
      2. get the tun device's net when tun becomes attached and put one
         when it becomes detached.
      
      This is needed to handle the case when a task owning the tun dies,
      but a files lives for some more time - in this case we must not
      allow for net to be freed, since its exit hook will spoil that file's
      private data by unregistering the tun from under tun_chr_close.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fc54c658
    • P
      [TUN]: Make the tun_dev_list per-net. · d647a591
      Pavel Emelyanov 提交于
      Remove the static tun_dev_list and replace its occurrences in
      driver with per-net one.
      
      It is used in two places - in tun_set_iff and tun_cleanup. In 
      the first case it's legal to use current net_ns. In the cleanup
      call - move the loop, that unregisters all devices in net exit
      hook.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d647a591