ethdev: remove rte_pmd_init_all function
[dpdk.git] / app / test / test_kni.c
index b2ecfdc..d37758b 100644 (file)
@@ -37,8 +37,6 @@
 #include <string.h>
 #include <sys/wait.h>
 
-#include <cmdline_parse.h>
-
 #include "test.h"
 
 #ifdef RTE_LIBRTE_KNI
@@ -210,6 +208,7 @@ test_kni_loop(__rte_unused void *arg)
                                        rte_pktmbuf_free(pkts_burst[i]);
                                }
                        }
+                       rte_delay_ms(10);
                }
        } else if (lcore_id == lcore_egress) {
                while (1) {
@@ -220,6 +219,7 @@ test_kni_loop(__rte_unused void *arg)
                        stats.egress += num;
                        for (nb_tx = 0; nb_tx < num; nb_tx++)
                                rte_pktmbuf_free(pkts_burst[nb_tx]);
+                       rte_delay_ms(10);
                }
        }
 
@@ -509,11 +509,6 @@ test_kni(void)
                printf("fail to create mempool for kni\n");
                return -1;
        }
-       ret = rte_pmd_init_all();
-       if (ret < 0) {
-               printf("fail to initialize PMD\n");
-               return -1;
-       }
        ret = rte_eal_pci_probe();
        if (ret < 0) {
                printf("fail to probe PCI devices\n");