1. 05 8月, 2010 1 次提交
  2. 03 8月, 2010 3 次提交
  3. 22 7月, 2010 3 次提交
  4. 20 7月, 2010 2 次提交
  5. 10 7月, 2010 2 次提交
  6. 09 7月, 2010 6 次提交
  7. 08 7月, 2010 3 次提交
  8. 07 7月, 2010 15 次提交
  9. 06 7月, 2010 1 次提交
  10. 05 7月, 2010 1 次提交
  11. 03 7月, 2010 3 次提交
    • R
      virtio_net: fix oom handling on tx · 58eba97d
      Rusty Russell 提交于
      virtio net will never try to overflow the TX ring, so the only reason
      add_buf may fail is out of memory. Thus, we can not stop the
      device until some request completes - there's no guarantee anything
      at all is outstanding.
      
      Make the error message clearer as well: error here does not
      indicate queue full.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (...and avoid TX_BUSY)
      Cc: stable@kernel.org  # .34.x (s/virtqueue_/vi->svq->vq_ops->/)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      58eba97d
    • M
      virtio_net: do not reschedule rx refill forever · 1788f495
      Michael S. Tsirkin 提交于
      We currently fill all of RX ring, then add_buf
      returns ENOSPC, which gets mis-detected as an out of
      memory condition and causes us to reschedule the work,
      and so on forever. Fix this by oom = err == -ENOMEM;
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Cc: stable@kernel.org # .34.x
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1788f495
    • J
      s2io: resolve statistics issues · 4a490432
      Jon Mason 提交于
      This patch resolves a number of issues in the statistics gathering of
      the s2io driver.
      
      On Xframe adapters, the received multicast statistics counter includes
      pause frames which are not indicated to the driver.  This can cause
      issues where the multicast packet count is higher than what has actually
      been received, possibly higher than the number of packets received.
      
      The driver software counters are replaced with the adapter hardware
      statistics for rx_packets, rx_bytes, and tx_bytes.  It also uses the
      overflow registers to determine if the statistics wrapped the 32bit
      register (removing the window of having a statistic value less than the
      previous call).  rx_length_errors statistic now includes undersized
      packets in addition to oversized packets in its counting.  Finally,
      rx_crc_errors are now being counted.
      Signed-off-by: NJon Mason <jon.mason@exar.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4a490432