1. 07 3月, 2013 2 次提交
  2. 26 2月, 2013 3 次提交
    • B
      sfc: Detach net device when stopping queues for reconfiguration · 29c69a48
      Ben Hutchings 提交于
      We must only ever stop TX queues when they are full or the net device
      is not 'ready' so far as the net core, and specifically the watchdog,
      is concerned.  Otherwise, the watchdog may fire *immediately* if no
      packets have been added to the queue in the last 5 seconds.
      
      The device is ready if all the following are true:
      
      (a) It has a qdisc
      (b) It is marked present
      (c) It is running
      (d) The link is reported up
      
      (a) and (c) are normally true, and must not be changed by a driver.
      (d) is under our control, but fake link changes may disturb userland.
      This leaves (b).  We already mark the device absent during reset
      and self-test, but we need to do the same during MTU changes and ring
      reallocation.  We don't need to do this when the device is brought
      down because then (c) is already false.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      29c69a48
    • B
      sfc: Fix efx_rx_buf_offset() in the presence of swiotlb · b590ace0
      Ben Hutchings 提交于
      We assume that the mapping between DMA and virtual addresses is done
      on whole pages, so we can find the page offset of an RX buffer using
      the lower bits of the DMA address.  However, swiotlb maps in units of
      2K, breaking this assumption.
      
      Add an explicit page_offset field to struct efx_rx_buffer.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      b590ace0
    • B
      sfc: Properly sync RX DMA buffer when it is not the last in the page · 3a68f19d
      Ben Hutchings 提交于
      We may currently allocate two RX DMA buffers to a page, and only unmap
      the page when the second is completed.  We do not sync the first RX
      buffer to be completed; this can result in packet loss or corruption
      if the last RX buffer completed in a NAPI poll is the first in a page
      and is not DMA-coherent.  (In the middle of a NAPI poll, we will
      handle the following RX completion and unmap the page *before* looking
      at the content of the first buffer.)
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      3a68f19d
  3. 22 1月, 2013 1 次提交
  4. 08 12月, 2012 1 次提交
  5. 04 12月, 2012 1 次提交
  6. 01 12月, 2012 13 次提交
  7. 20 11月, 2012 1 次提交
  8. 03 11月, 2012 1 次提交
  9. 01 11月, 2012 1 次提交
  10. 08 10月, 2012 1 次提交
  11. 06 10月, 2012 1 次提交
  12. 02 10月, 2012 6 次提交
  13. 23 9月, 2012 1 次提交
  14. 19 9月, 2012 7 次提交