[PATCH net-next] mlx4: do not use rwlock in fast path

2017-02-09 Thread Eric Dumazet
From: Eric Dumazet Using a reader-writer lock in fast path is silly, when we can instead use RCU or a seqlock. For mlx4 hwstamp clock, a seqlock is the way to go, removing two atomic operations and false sharing. Signed-off-by: Eric Dumazet Cc: Tariq Toukan --- drivers/net/ethernet/mellanox

Re: [PATCH net-next] mlx4: do not use rwlock in fast path

2018-06-27 Thread Tariq Toukan
On 09/02/2017 7:10 PM, Eric Dumazet wrote: From: Eric Dumazet Using a reader-writer lock in fast path is silly, when we can instead use RCU or a seqlock. For mlx4 hwstamp clock, a seqlock is the way to go, removing two atomic operations and false sharing. Signed-off-by: Eric Dumazet Cc: T

Re: [PATCH net-next] mlx4: do not use rwlock in fast path

2018-06-27 Thread Eric Dumazet
On 06/27/2018 05:11 AM, Tariq Toukan wrote: > > > On 09/02/2017 7:10 PM, Eric Dumazet wrote: >> From: Eric Dumazet >> >> Using a reader-writer lock in fast path is silly, when we can >> instead use RCU or a seqlock. >> >> For mlx4 hwstamp clock, a seqlock is the way to go, removing >> two ato

Re: [PATCH net-next] mlx4: do not use rwlock in fast path

2017-02-14 Thread David Miller
From: Eric Dumazet Date: Thu, 09 Feb 2017 09:10:04 -0800 > From: Eric Dumazet > > Using a reader-writer lock in fast path is silly, when we can > instead use RCU or a seqlock. > > For mlx4 hwstamp clock, a seqlock is the way to go, removing > two atomic operations and false sharing. > > Sign

Re: [PATCH net-next] mlx4: do not use rwlock in fast path

2017-02-15 Thread Tariq Toukan
On 14/02/2017 6:28 PM, David Miller wrote: From: Eric Dumazet Date: Thu, 09 Feb 2017 09:10:04 -0800 From: Eric Dumazet Using a reader-writer lock in fast path is silly, when we can instead use RCU or a seqlock. For mlx4 hwstamp clock, a seqlock is the way to go, removing two atomic operat

Re: [PATCH net-next] mlx4: do not use rwlock in fast path

2017-02-15 Thread David Miller
From: Eric Dumazet Date: Thu, 09 Feb 2017 09:10:04 -0800 > From: Eric Dumazet > > Using a reader-writer lock in fast path is silly, when we can > instead use RCU or a seqlock. > > For mlx4 hwstamp clock, a seqlock is the way to go, removing > two atomic operations and false sharing. > > Sign