net/mlx4_en: use READ_ONCE when freeing xdp_prog
authorBrenden Blanco <bblanco@plumgrid.com>
Thu, 21 Jul 2016 00:22:33 +0000 (17:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2016 05:07:23 +0000 (22:07 -0700)
commitcb7386d37eae20141cbc292a883e5e358cb5a929
tree0354fdaaa1a67cd7ffeef329d85a83d63a37b68c
parentf67fe5c80ba09edeca7f3d05800382cca89bc1d5
net/mlx4_en: use READ_ONCE when freeing xdp_prog

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 <bblanco@plumgrid.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c