raw/ntb: fix write memory barrier
authorXiaoyun Li <xiaoyun.li@intel.com>
Wed, 4 Dec 2019 15:19:16 +0000 (23:19 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jan 2020 08:58:43 +0000 (09:58 +0100)
commit657cd1370dccf15d8d61e49b7e751ccc7ae6a29b
treee582312f58ec941b8400d6af523ff2adc15e3b41
parentaebdf3cadc6185932a6ac8ab975c4b667c207af3
raw/ntb: fix write memory barrier

All buffers and ring info should be written before tail register update.
This patch relocates the write memory barrier before updating tail register
to avoid potential issues.

Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/raw/ntb/ntb.c