net/virtio-user: lock-protect status updates
authorAdrian Moreno <amorenoz@redhat.com>
Mon, 26 Oct 2020 16:39:28 +0000 (17:39 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:05 +0000 (23:35 +0100)
commitd7e10ea92ee6676af1be36d9afcc008423ad099e
treec344a4328bed12cd40746c29bdf839454d816012
parent5043a0608da1f4774465298a39ced350b151d80c
net/virtio-user: lock-protect status updates

In order to safely set and get the device status from different
threads (e.g: interrupt handlers).

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c
drivers/net/virtio/virtio_user/virtio_user_dev.h
drivers/net/virtio/virtio_user_ethdev.c