Skip to content

Commit f89e49e

Browse files
antonblancharddavem330
authored andcommitted
ibmveth: Use lighter weight read memory barrier in ibmveth_poll
We want to order the read in ibmveth_rxq_pending_buffer and the read of ibmveth_rxq_buffer_valid which are both cacheable memory. smp_rmb() is good enough for this. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8d86c61 commit f89e49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ibmveth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ static int ibmveth_poll(struct napi_struct *napi, int budget)
10101010
if (!ibmveth_rxq_pending_buffer(adapter))
10111011
break;
10121012

1013-
rmb();
1013+
smp_rmb();
10141014
if (!ibmveth_rxq_buffer_valid(adapter)) {
10151015
wmb(); /* suggested by larson1 */
10161016
adapter->rx_invalid_buffer++;

0 commit comments

Comments
 (0)