kni: fix kernel FIFO synchronization
authorPhil Yang <phil.yang@arm.com>
Mon, 8 Oct 2018 09:11:45 +0000 (17:11 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 26 Oct 2018 16:10:14 +0000 (18:10 +0200)
commit711859cd0d076c7abc0c96ce637129a03280645f
tree53a07d7053a76ed64c4adccd451c949609e3c437
parent0b05abe7bf9a46915bc1823753fc29c0a7b99ed1
kni: fix kernel FIFO synchronization

Adding memory barrier to make sure the values being synced
before updating fifo_write in kni_fifo_put and fifo_read in
kni_fifo_get.

Fixes: 3fc5ca2f6352 ("kni: initial import")
Cc: stable@dpdk.org
Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/kni_fifo.h
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h