net/virtio: unmap port IO for legacy device
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Jun 2019 09:43:39 +0000 (17:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit535f8a109a655552b30a7cead6ffdcba3e73db29
treebfc448d6ebd18927ca7b9bb7557c3656746e6767
parent2b38151f745a30ebe653a202563bf8539740633f
net/virtio: unmap port IO for legacy device

For legacy devices, we should also unmap the port IO
resource on device removal.

Fixes: b8f04520ad71 ("virtio: use PCI ioport API")
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