1. 23 2月, 2011 6 次提交
  2. 18 2月, 2011 13 次提交
  3. 17 2月, 2011 16 次提交
  4. 16 2月, 2011 5 次提交
    • G
      m68knommu: fix dereference of port.tty · bc0c36d3
      Greg Ungerer 提交于
      The struct_tty associated with a port is now a direct pointer
      from within the local private driver info struct. So fix all uses
      of it.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      bc0c36d3
    • S
      spi/pxa2xx pci: fix the release - remove race · 0f3e1d27
      Sebastian Andrzej Siewior 提交于
      Right now the platform device and its platform data is included in one big
      struct which requires its custom ->release function. The problem with the
      release function within the driver is that it might be called after the
      driver was removed because someone was holding a reference to it and it
      was not called right after platform_device_unregister(). So we also free
      the platform device memory to which one might hold a reference.
      
      This patch uses the normal pdev functions so this kind of race does not
      occur.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      0f3e1d27
    • D
      isdn: hisax: Use l2headersize() instead of dup (and buggy) func. · 6d90e8f4
      David S. Miller 提交于
      There was a bug in my commit c978e7bb
      ("hisax: Fix unchecked alloc_skb() return.")
      
      One of the l2->flag checks is wrong.
      
      Even worse it turns out I'm duplicating an existing function,
      so use that instead.
      Reported-by: NMilton Miller <miltonm@bga.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d90e8f4
    • B
      sfc: Add TX queues for high-priority traffic · 94b274bf
      Ben Hutchings 提交于
      Implement the ndo_setup_tc() operation with 2 traffic classes.
      
      Current Solarstorm controllers do not implement TX queue priority, but
      they do allow queues to be 'paced' with an enforced delay between
      packets.  Paced and unpaced queues are scheduled in round-robin within
      two separate hardware bins (paced queues with a large delay may be
      placed into a third bin temporarily, but we won't use that).  If there
      are queues in both bins, the TX scheduler will alternate between them.
      
      If we make high-priority queues unpaced and best-effort queues paced,
      and high-priority queues are mostly empty, a single high-priority queue
      can then instantly take 50% of the packet rate regardless of how many
      of the best-effort queues have descriptors outstanding.
      
      We do not actually want an enforced delay between packets on best-
      effort queues, so we set the pace value to a reserved value that
      actually results in a delay of 0.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      94b274bf
    • B
      sfc: Distinguish queue lookup from test for queue existence · 525da907
      Ben Hutchings 提交于
      efx_channel_get_{rx,tx}_queue() currently return NULL if the channel
      isn't used for traffic in that direction.  In most cases this is a
      bug, but some callers rely on it as an existence test.
      
      Add existence test functions efx_channel_has_{rx_queue,tx_queues}()
      and use them as appropriate.
      
      Change efx_channel_get_{rx,tx}_queue() to assert that the requested
      queue exists.
      
      Remove now-redundant initialisation from efx_set_channels().
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      525da907