1. 03 3月, 2017 13 次提交
  2. 02 3月, 2017 6 次提交
  3. 28 2月, 2017 17 次提交
  4. 27 2月, 2017 4 次提交
    • M
      qed: Don't use attention PTT for configuring BW · 6f437d43
      Mintz, Yuval 提交于
      Commit 653d2ffd6405 ("qed*: Fix link indication race") introduced another
      race - one of the inner functions called from the link-change flow is
      explicitly using the slowpath context dedicated PTT instead of gaining
      that PTT from the caller. Since this flow can now be called from
      a different context as well, we're in risk of the PTT breaking.
      
      Fixes: 653d2ffd6405 ("qed*: Fix link indication race")
      Signed-off-by: NYuval Mintz <Yuval.Mintz@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6f437d43
    • M
      qed: Fix race with multiple VFs · fd3c615a
      Mintz, Yuval 提交于
      A PF syncronizes all IOV activity relating to its VFs
      by using a single workqueue handling the work.
      The workqueue would reach a bitmask of pending VF events
      and act upon each in turn.
      
      Problem is that the indication of a VF message [which sets
      the 'vf event' bit for that VF] arrives and is set in
      the slowpath attention context, which isn't syncronized with
      the processing of the events.
      When multiple VFs are present, it's possible that PF would
      lose the indication of one of the VF's pending evens, leading
      that VF to later timeout.
      
      Instead of adding locks/barriers, simply move from a bitmask
      into a per-VF indication inside that VF entry in the PF database.
      Signed-off-by: NYuval Mintz <Yuval.Mintz@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fd3c615a
    • T
      mac80211_hwsim: Replace bogus hrtimer clockid · 8fbcfeb8
      Thomas Gleixner 提交于
      mac80211_hwsim initializes a hrtimer with clockid
      CLOCK_MONOTONIC_RAW. That's not supported.
      
      Use CLOCK_MONOTONIC instead.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8fbcfeb8
    • E
      net/mlx4_en: fix overflow in mlx4_en_init_timestamp() · 47d3a075
      Eric Dumazet 提交于
      The cited commit makes a great job of finding optimal shift/multiplier
      values assuming a 10 seconds wrap around, but forgot to change the
      overflow_period computation.
      
      It overflows in cyclecounter_cyc2ns(), and the final result is 804 ms,
      which is silly.
      
      Lets simply use 5 seconds, no need to recompute this, given how it is
      supposed to work.
      
      Later, we will use a timer instead of a work queue, since the new RX
      allocation schem will no longer need mlx4_en_recover_from_oom() and the
      service_task firing every 250 ms.
      
      Fixes: 31c128b6 ("net/mlx4_en: Choose time-stamping shift value according to HW frequency")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Tariq Toukan <tariqt@mellanox.com>
      Cc: Eugenia Emantayev <eugenia@mellanox.com>
      Reviewed-by: NTariq Toukan <tariqt@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      47d3a075