Re: [dpdk-dev] [PATCH v2 8/8] net/mlx5: fix synchonization on polling Rx completions

2018-01-15 Thread Jianbo Liu
The 01/15/2018 17:10, Yongseok Koh wrote: > Polling a new packet is basically sensing the generation bit in a > completion entry. For some processors not having strongly-ordered memory > model, there has to be an IO memory barrier between reading the generation > bit and other fields of the entry i

[dpdk-dev] [PATCH v2 8/8] net/mlx5: fix synchonization on polling Rx completions

2018-01-15 Thread Yongseok Koh
Polling a new packet is basically sensing the generation bit in a completion entry. For some processors not having strongly-ordered memory model, there has to be an IO memory barrier between reading the generation bit and other fields of the entry in order to guarantee data is not stale. Fixes: 57