net/virtio: do not re-enter clean up routines
authorChas Williams <ciwillia@brocade.com>
Mon, 17 Jul 2017 23:05:22 +0000 (19:05 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commit2a821d81f355a40508c81c006f1e3002a1ba2494
tree62cab13a170cd4cb35a6f857c761c60507719190
parent0408f47ba4d67f0cb96f5e907bc9336b6cbff0dd
net/virtio: do not re-enter clean up routines

.dev_uninit calls .dev_stop and .dev_close.  The work that is done in
those routines doesn't need repeated.  Use started and opened to track
the adapter's status.

Fixes: c1f86306a026 ("virtio: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <ciwillia@brocade.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.h