From: Thomas Monjalon Date: Thu, 13 Feb 2020 15:52:25 +0000 (+0100) Subject: app/testpmd: rename function for detaching by devargs X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5edee5f6da59ac2291a7060463a5b9bfb85abd9f;p=dpdk.git app/testpmd: rename function for detaching by devargs There is a function detach_port_device() which takes a port_id, and a function detach_device() which takes a devargs string. In order to add a third function accepting a rte_device pointer, the function detach_device() is renamed into detach_devargs(). Signed-off-by: Thomas Monjalon Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 99e4168103..38b6d804c6 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -1541,7 +1541,7 @@ static void cmd_operate_detach_device_parsed(void *parsed_result, struct cmd_operate_detach_device_result *res = parsed_result; if (!strcmp(res->keyword, "detach")) - detach_device(res->identifier); + detach_devargs(res->identifier); else printf("Unknown parameter\n"); } diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index a1dd4043e0..031fe25f39 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2683,7 +2683,7 @@ detach_port_device(portid_t port_id) } void -detach_device(char *identifier) +detach_devargs(char *identifier) { struct rte_dev_iterator iterator; struct rte_devargs da; diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index 33ef3e271a..7a7c73f79b 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -813,7 +813,7 @@ void stop_port(portid_t pid); void close_port(portid_t pid); void reset_port(portid_t pid); void attach_port(char *identifier); -void detach_device(char *identifier); +void detach_devargs(char *identifier); void detach_port_device(portid_t port_id); int all_ports_stopped(void); int port_is_stopped(portid_t port_id);