Re: [PATCH net-next] mlx4: do not use priv->stats_lock in mlx4_en_auto_moderation()

2016-11-27 Thread David Miller
From: Eric Dumazet Date: Wed, 23 Nov 2016 09:46:52 -0800 > From: Eric Dumazet > > Per RX ring packets/bytes counters are not protected by global > priv->stats_lock. > > Better not confuse the reader, and use READ_ONCE() to show we read > these counters without surrounding synchronization. > >

[PATCH net-next] mlx4: do not use priv->stats_lock in mlx4_en_auto_moderation()

2016-11-23 Thread Eric Dumazet
From: Eric Dumazet Per RX ring packets/bytes counters are not protected by global priv->stats_lock. Better not confuse the reader, and use READ_ONCE() to show we read these counters without surrounding synchronization. Interrupt moderation is best effort, and we do not really care of ultra prec