1. 17 4月, 2015 10 次提交
  2. 16 4月, 2015 2 次提交
    • E
      bnx2x: Fix busy_poll vs netpoll · 074975d0
      Eric Dumazet 提交于
      Commit 9a2620c8 ("bnx2x: prevent WARN during driver unload")
      switched the napi/busy_lock locking mechanism from spin_lock() into
      spin_lock_bh(), breaking inter-operability with netconsole, as netpoll
      disables interrupts prior to calling our napi mechanism.
      
      This switches the driver into using atomic assignments instead of the
      spinlock mechanisms previously employed.
      
      Based on initial patch from Yuval Mintz & Ariel Elior
      
      I basically added softirq starvation avoidance, and mixture
      of atomic operations, plain writes and barriers.
      
      Note this slightly reduces the overhead for this driver when no
      busy_poll sockets are in use.
      
      Fixes: 9a2620c8 ("bnx2x: prevent WARN during driver unload")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      074975d0
    • T
      net: hip04: Make tx coalesce timer actually work · 48b63776
      Thomas Gleixner 提交于
      The code sets the expiry value of the timer to a relative value and
      starts it with hrtimer_start_expires. That's fine, but that only works
      once. The timer is started in relative mode, so the expiry value gets
      overwritten with the absolut expiry time (now + expiry).
      
      So once the timer expired, a new call to hrtimer_start_expires results
      in an immidiately expired timer, because the expiry value is
      already in the past.
      
      Use the proper mechanisms to (re)start the timer in the intended way.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: dingtianhong <dingtianhong@huawei.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Zhangfei Gao <zhangfei.gao@linaro.org>
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Cc: netdev@vger.kernel.org
      Acked-by: NDing Tianhong <dingtianhong@huawei.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      48b63776
  3. 15 4月, 2015 28 次提交