net/virtio: make control queue thread-safe
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 10 Jan 2018 01:23:52 +0000 (09:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commita2ffb87b1b60ded74a5e73be69503065faa827c7
treebb489e0e79afdf35d0a6c1f299cf5a9f64359b18
parent61e99293f6591f8ac2e0051b80fe7e1ba638ea96
net/virtio: make control queue thread-safe

The virtio_send_command function may be called from app's configuration
routine, but also from an interrupt handler called when live migration
is done on the backup side. So this patch makes control queue
thread-safe first.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx.h