git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice: enable flow redirect on switch
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user
/
virtio_user_dev.c
diff --git
a/drivers/net/virtio/virtio_user/virtio_user_dev.c
b/drivers/net/virtio/virtio_user/virtio_user_dev.c
index
ffbaa75
..
1c6b26f
100644
(file)
--- a/
drivers/net/virtio/virtio_user/virtio_user_dev.c
+++ b/
drivers/net/virtio/virtio_user/virtio_user_dev.c
@@
-546,8
+546,11
@@
virtio_user_dev_uninit(struct virtio_user_dev *dev)
}
if (dev->vhostfds) {
}
if (dev->vhostfds) {
- for (i = 0; i < dev->max_queue_pairs; ++i)
+ for (i = 0; i < dev->max_queue_pairs; ++i)
{
close(dev->vhostfds[i]);
close(dev->vhostfds[i]);
+ if (dev->tapfds[i] >= 0)
+ close(dev->tapfds[i]);
+ }
free(dev->vhostfds);
free(dev->tapfds);
}
free(dev->vhostfds);
free(dev->tapfds);
}