提交 d546a893 编写于 作者: J Jon Cooper 提交者: Ben Hutchings

sfc: Add rmb() between reading stats and generation count to ensure consistency

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
上级 5e8a402f
......@@ -545,6 +545,7 @@ static int efx_ef10_try_update_nic_stats(struct efx_nic *efx)
rmb();
efx_nic_update_stats(efx_ef10_stat_desc, EF10_STAT_COUNT, stats_mask,
stats, efx->stats_buffer.addr, false);
rmb();
generation_start = dma_stats[MC_CMD_MAC_GENERATION_START];
if (generation_end != generation_start)
return -EAGAIN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册