app/testpmd: rename function for detaching by devargs
[dpdk.git] / app / test-pmd / testpmd.c
index f9f4cd1..031fe25 100644 (file)
@@ -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;
@@ -2796,8 +2796,6 @@ struct pmd_test_command {
        cmd_func_t cmd_func;
 };
 
-#define PMD_TEST_CMD_NB (sizeof(pmd_test_menu) / sizeof(pmd_test_menu[0]))
-
 /* Check the link status of all ports in up to 9s, and print them finally */
 static void
 check_all_ports_link_status(uint32_t port_mask)