[spp] [PATCH 5/6] spp_nfv: replacement of rte_eth_dev_detach()

x-fn-spp at sl.ntt-tx.co.jp x-fn-spp at sl.ntt-tx.co.jp
Wed Nov 7 06:07:31 CET 2018


From: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>

Replace rte_eth_dev_detach() with detach() for nfv.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki at lab.ntt.co.jp>
---
 src/nfv/nfv.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nfv/nfv.c b/src/nfv/nfv.c
index e53037e..926180a 100644
--- a/src/nfv/nfv.c
+++ b/src/nfv/nfv.c
@@ -316,7 +316,7 @@ do_del(char *res_uid)
 		if (port_id == PORT_RESET)
 			return -1;
 
-		rte_eth_dev_detach(port_id, name);
+		detach(port_id, name);
 
 	} else if (!strcmp(p_type, "pcap")) {
 		char name[RTE_ETH_NAME_MAX_LEN];
@@ -325,7 +325,7 @@ do_del(char *res_uid)
 		if (port_id == PORT_RESET)
 			return -1;
 
-		rte_eth_dev_detach(port_id, name);
+		detach(port_id, name);
 
 	} else if (!strcmp(p_type, "nullpmd")) {
 		char name[RTE_ETH_NAME_MAX_LEN];
@@ -334,7 +334,7 @@ do_del(char *res_uid)
 		if (port_id == PORT_RESET)
 			return -1;
 
-		rte_eth_dev_detach(port_id, name);
+		detach(port_id, name);
 
 	}
 
-- 
2.18.0



More information about the spp mailing list