1. 02 2月, 2010 4 次提交
  2. 01 2月, 2010 16 次提交
  3. 31 1月, 2010 1 次提交
  4. 30 1月, 2010 1 次提交
  5. 29 1月, 2010 3 次提交
  6. 28 1月, 2010 3 次提交
  7. 27 1月, 2010 8 次提交
  8. 26 1月, 2010 4 次提交
    • H
      virtio_net: Make delayed refill more reliable · 39d32157
      Herbert Xu 提交于
      I have seen RX stalls on a machine that experienced a suspected
      OOM.  After the stall, the RX buffer is empty on the guest side
      and there are exactly 16 entries available on the host side.  As
      the number of entries is less than that required by a maximal
      skb, the host cannot proceed.
      
      The guest did not have a refill job scheduled.
      
      My diagnosis is that an OOM had occured, with the delayed refill
      job scheduled.  The job was able to allocate at least one skb, but
      not enough to overcome the minimum required by the host to proceed.
      
      As the refill job would only reschedule itself if it failed completely
      to allocate any skbs, this would lead to an RX stall.
      
      The following patch removes this stall possibility by always
      rescheduling the refill job until the ring is totally refilled.
      
      Testing has shown that the RX stall no longer occurs whereas
      previously it would occur within a day.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Acked-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      39d32157
    • B
      sfc: Use fixed-size buffers for MCDI NVRAM requests · 5a27e86b
      Ben Hutchings 提交于
      The low-level MCDI code always uses 32-bit MMIO operations, and
      callers must pad input and output buffers to multiples of 4 bytes.
      The MCDI NVRAM functions are not doing this.  Also, their buffers are
      declared as variable-length arrays with no explicit maximum length.
      
      Switch to a fixed buffer size based on the chunk size used by the
      MTD driver (which is a multiple of 4).
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5a27e86b
    • G
      sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer · 8704a2c8
      Guido Barzini 提交于
      Due to a hardware bug in the SFC9000 family, the firmware must
      transfer raw GMAC statistics to host memory before aggregating them
      into the cooked (speed-independent) MAC statistics.  Extend the stats
      buffer to support this.
      
      The length of the buffer is explicit in the MAC_STATS command, so this
      change is backward-compatible on both sides.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8704a2c8
    • B
      qlge: Only free resources if they were allocated · 4f9a91c8
      Breno Leitao 提交于
      Currently qlge tries to release regions even if they were not allocated.
      This causes messages like the following in the kernel log
      
      Trying to free nonexistent resource <00000000006af400-00000000006af4ff>
      Trying to free nonexistent resource <00003c04ff9f4000-00003c04ff9f7fff>
      Trying to free nonexistent resource <00003c04ffc00000-00003c04ffcfffff>
      
      This patch fixes the goto logic in order to not release the resources
      if they were not allocated.
      Signed-off-by: NBreno Leitao <leitao@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4f9a91c8