/*-
* BSD LICENSE
*
- * Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include <string.h>
#include <sys/wait.h>
-#include <cmdline_parse.h>
-
#include "test.h"
#ifdef RTE_LIBRTE_KNI
rte_pktmbuf_free(pkts_burst[i]);
}
}
+ rte_delay_ms(10);
}
} else if (lcore_id == lcore_egress) {
while (1) {
stats.egress += num;
for (nb_tx = 0; nb_tx < num; nb_tx++)
rte_pktmbuf_free(pkts_burst[nb_tx]);
+ rte_delay_ms(10);
}
}
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");