1. 29 8月, 2016 2 次提交
  2. 21 7月, 2016 2 次提交
    • J
      fm10k: wait for queues to drain if stop_hw() fails once · 94877768
      Jacob Keller 提交于
      It turns out that sometimes during a reset the Tx queues will be
      temporarily stuck longer than .stop_hw() expects. Work around this issue
      by attempting to .stop_hw() first. If it tails, wait a number of
      attempts until the Tx queues appear to be drained. After this, attempt
      stop_hw() again. This ensures that we avoid waiting if we don't need to,
      such as during the first initialization of a VF, and give the proper
      amount of time necessary to recover from most situations. It is possible
      that the hardware is actually stuck. For PFs, this is usually fixed by
      a datapath reset. Unfortunately the VF cannot request a similar reset
      for itself.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NKrishneil Singh <Krishneil.k.singh@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      94877768
    • J
      fm10k: prevent multiple threads updating statistics · 9d73edee
      Jacob Keller 提交于
      Also prevent updating stats while the interface is down. If we're
      already updating stats, just return doing nothing. When we take the
      device down, block stat updates until we come back up. This ensures that
      we avoid tearing down rings when we're updating statistics, and prevents
      updating statistics until we're up.
      
      We can't re-use the __FM10K_DOWN for this because it wouldn't prevent
      multiple threads from accessing statistics. Neither does it prevent the
      case where we start updating stats and then start going down in another
      thread.
      
      The fm10k_get_stats64 is except from this, because it has a completely
      different flow which does not suffer from the same issues as
      fm10k_update_stats might.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NKrishneil Singh <Krishneil.k.singh@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      9d73edee
  3. 30 6月, 2016 1 次提交
  4. 21 4月, 2016 3 次提交
  5. 06 4月, 2016 2 次提交
  6. 14 12月, 2015 5 次提交
  7. 06 12月, 2015 5 次提交
  8. 24 11月, 2015 1 次提交
  9. 23 9月, 2015 1 次提交
  10. 15 4月, 2015 3 次提交
  11. 03 3月, 2015 1 次提交
  12. 02 10月, 2014 1 次提交
  13. 23 9月, 2014 13 次提交