net/virtio: add barrier in interrupt enable
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 19 Mar 2019 06:43:05 +0000 (14:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Mar 2019 17:15:42 +0000 (18:15 +0100)
commit8f66bc4ac3c0d4a11252d860f495abd806aa871f
treef03756ae99fa0a4c559b44d54bfb16c636a3bfb7
parentc68fee95880820138a16cd2637b6de0300081dfb
net/virtio: add barrier in interrupt enable

Typically, after enabling Rx interrupt, a check should be done
to make sure that there is no new incoming packets before going
to sleep. So a barrier is needed to make sure that any following
check won't happen before the interrupt is actually enabled.

Fixes: c056be239db5 ("net/virtio: add Rx interrupt enable/disable functions")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c