1. 05 3月, 2011 1 次提交
  2. 02 3月, 2011 1 次提交
  3. 18 2月, 2011 1 次提交
  4. 04 2月, 2011 3 次提交
  5. 14 1月, 2011 1 次提交
  6. 11 1月, 2011 1 次提交
  7. 10 1月, 2011 1 次提交
  8. 05 1月, 2011 8 次提交
  9. 21 12月, 2010 1 次提交
  10. 12 12月, 2010 1 次提交
    • T
      drivers/net: don't use flush_scheduled_work() · 23f333a2
      Tejun Heo 提交于
      flush_scheduled_work() is on its way out.  This patch contains simple
      conversions to replace flush_scheduled_work() usage with direct
      cancels and flushes.
      
      Directly cancel the used works on driver detach and flush them in
      other cases.
      
      The conversions are mostly straight forward and the only dangers are,
      
      * Forgetting to cancel/flush one or more used works.
      
      * Cancelling when a work should be flushed (ie. the work must be
        executed once scheduled whether the driver is detaching or not).
      
      I've gone over the changes multiple times but it would be much
      appreciated if you can review with the above points in mind.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jay Cliburn <jcliburn@gmail.com>
      Cc: Michael Chan <mchan@broadcom.com>
      Cc: Divy Le Ray <divy@chelsio.com>
      Cc: e1000-devel@lists.sourceforge.net
      Cc: Vasanthy Kolluri <vkolluri@cisco.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Lennert Buytenhek <buytenh@wantstofly.org>
      Cc: Andrew Gallatin <gallatin@myri.com>
      Cc: Francois Romieu <romieu@fr.zoreil.com>
      Cc: Ramkrishna Vepa <ramkrishna.vepa@exar.com>
      Cc: Matt Carlson <mcarlson@broadcom.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Shreyas Bhatewara <sbhatewara@vmware.com>
      Cc: netdev@vger.kernel.org
      23f333a2
  11. 11 12月, 2010 1 次提交
  12. 18 11月, 2010 1 次提交
    • S
      r8169: fix checksum broken · d5d3ebe3
      Shan Wei 提交于
      If r8196 received packets with invalid sctp/igmp(not tcp, udp) checksum, r8196 set skb->ip_summed
      wit CHECKSUM_UNNECESSARY. This cause that upper protocol don't check checksum field.
      
      I am not family with r8196 driver. I try to guess the meaning of RxProtoIP and IPFail.
      RxProtoIP stands for received IPv4 packet that upper protocol is not tcp and udp.
      !(opts1 & IPFail) is true means that driver correctly to check checksum in IPv4 header.
      
      If it's right, I think we should not set ip_summed wit CHECKSUM_UNNECESSARY for my sctp packets
      with invalid checksum.
      
      If it's not right, please tell me.
      Signed-off-by: NShan Wei <shanwei@cn.fujitsu.com>
      Acked-by: NFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d5d3ebe3
  13. 10 11月, 2010 2 次提交
  14. 21 10月, 2010 9 次提交
  15. 17 10月, 2010 1 次提交
    • E
      r8169: use 50% less ram for RX ring · 6f0333b8
      Eric Dumazet 提交于
      Using standard skb allocations in r8169 leads to order-3 allocations (if
      PAGE_SIZE=4096), because NIC needs 16383 bytes, and skb overhead makes
      this bigger than 16384 -> 32768 bytes per "skb"
      
      Using kmalloc() permits to reduce memory requirements of one r8169 nic
      by 4Mbytes. (256 frames * 16Kbytes). This is fine since a hardware bug
      requires us to copy incoming frames, so we build real skb when doing
      this copy.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6f0333b8
  16. 10 10月, 2010 2 次提交
  17. 16 9月, 2010 1 次提交
  18. 08 9月, 2010 1 次提交
  19. 06 9月, 2010 1 次提交
    • E
      r8169: fix rx checksum offload · adea1ac7
      Eric Dumazet 提交于
      While porting GRO to r8169, I found this driver has a bug in its rx
      path.
      
      All skbs given to network stack had their ip_summed set to
      CHECKSUM_NONE, while hardware said they had correct TCP/UDP checksums.
      
      The reason is driver sets skb->ip_summed on the original skb before the
      copy eventually done by copybreak. The fresh skb gets the ip_summed =
      CHECKSUM_NONE value, forcing network stack to recompute checksum, and
      preventing my GRO patch to work.
      
      Fix is to make the ip_summed setting after skb copy.
      
      Note : rx_copybreak current value is 16383, so all frames are copied...
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Acked-by: NFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      adea1ac7
  20. 03 9月, 2010 1 次提交
  21. 31 7月, 2010 1 次提交
    • A
      PCI: change device runtime PM settings for probe and remove · f3ec4f87
      Alan Stern 提交于
      This patch (as1388) changes the way the PCI core handles runtime PM
      settings when probing or unbinding drivers.  Now the core will make
      sure the device is enabled for runtime PM, with a usage count >= 1,
      when a driver is probed.  It does the same when calling a driver's
      remove method.
      
      If the driver wants to use runtime PM, all it has to do is call
      pm_runtime_pu_noidle() near the end of its probe routine (to cancel
      the core's usage increment) and pm_runtime_get_noresume() near the
      start of its remove routine (to restore the usage count).  It does not
      need to mess around with setting the runtime state to enabled,
      disabled, active, or suspended.
      
      The patch updates e1000e and r8169, the only PCI drivers that already
      use the existing runtime PM interface.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Acked-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      f3ec4f87