[spp] [PATCH v3 09/12] spp_nfv: stop vhost before detach
Itsuro Oda
oda at valinux.co.jp
Fri Jan 10 00:10:23 CET 2020
Make sure to free resources of vhost before detach.
Signed-off-by: Itsuro Oda <oda at valinux.co.jp>
---
src/nfv/commands.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/nfv/commands.h b/src/nfv/commands.h
index f6c2305..7e50c8c 100644
--- a/src/nfv/commands.h
+++ b/src/nfv/commands.h
@@ -25,6 +25,7 @@ do_del(char *p_type, int p_id)
port_id = find_port_id(p_id, VHOST);
if (port_id == PORT_RESET)
return -1;
+ rte_eth_dev_stop(port_id);
dev_detach_by_port_id(port_id);
} else if (!strcmp(p_type, "ring")) {
--
2.17.1
More information about the spp
mailing list