Re: [PATCH net-next 1/3] net/mlx4_en: use READ_ONCE when freeing xdp_prog

2016-07-20 Thread Alexei Starovoitov
On Wed, Jul 20, 2016 at 05:22:33PM -0700, Brenden Blanco wrote: > For consistency, and in order to hint at the synchronous nature of the > xdp_prog field, use READ_ONCE in the destroy path of the ring. All > occurrences should now use either READ_ONCE or xchg. > > Signed-off-by: Brenden Blanco

[PATCH net-next 1/3] net/mlx4_en: use READ_ONCE when freeing xdp_prog

2016-07-20 Thread Brenden Blanco
For consistency, and in order to hint at the synchronous nature of the xdp_prog field, use READ_ONCE in the destroy path of the ring. All occurrences should now use either READ_ONCE or xchg. Signed-off-by: Brenden Blanco --- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 6