Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vhost-user: unmap previously configured memory if necessary
[vpp.git]
/
vnet
/
vnet
/
devices
/
dpdk
/
vhost_user.c
diff --git
a/vnet/vnet/devices/dpdk/vhost_user.c
b/vnet/vnet/devices/dpdk/vhost_user.c
index
c153e2e
..
11a81c2
100644
(file)
--- a/
vnet/vnet/devices/dpdk/vhost_user.c
+++ b/
vnet/vnet/devices/dpdk/vhost_user.c
@@
-1130,6
+1130,9
@@
dpdk_vhost_user_socket_read (unix_file_t * uf)
goto close_socket;
}
+ /* Unmap previously configured memory if necessary */
+ dpdk_unmap_all_mem_regions (xd);
+
dpdk_vhost_user_set_mem_table (xd->vlib_hw_if_index, &msg.memory, fds);
break;