git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: fix null dereference in session cleanup
[dpdk.git]
/
app
/
test
/
test_pdump.c
diff --git
a/app/test/test_pdump.c
b/app/test/test_pdump.c
index
6a1180b
..
ea03056
100644
(file)
--- a/
app/test/test_pdump.c
+++ b/
app/test/test_pdump.c
@@
-6,7
+6,7
@@
#include <stdint.h>
#include <limits.h>
#include <stdint.h>
#include <limits.h>
-#include <
rte_
ethdev_driver.h>
+#include <ethdev_driver.h>
#include <rte_pdump.h>
#include "rte_eal.h"
#include "rte_lcore.h"
#include <rte_pdump.h>
#include "rte_eal.h"
#include "rte_lcore.h"
@@
-147,11
+147,19
@@
send_pkts(void *empty)
ret = test_get_mbuf_from_pool(&mp, pbuf, poolname);
if (ret < 0)
printf("get_mbuf_from_pool failed\n");
ret = test_get_mbuf_from_pool(&mp, pbuf, poolname);
if (ret < 0)
printf("get_mbuf_from_pool failed\n");
- do {
+
+ ret = test_dev_start(portid, mp);
+ if (ret < 0)
+ printf("test_dev_start(%hu, %p) failed, error code: %d\n",
+ portid, mp, ret);
+
+ while (ret >= 0 && flag_for_send_pkts) {
ret = test_packet_forward(pbuf, portid, QUEUE_ID);
if (ret < 0)
printf("send pkts Failed\n");
ret = test_packet_forward(pbuf, portid, QUEUE_ID);
if (ret < 0)
printf("send pkts Failed\n");
- } while (flag_for_send_pkts);
+ };
+
+ rte_eth_dev_stop(portid);
test_put_mbuf_to_pool(mp, pbuf);
return empty;
}
test_put_mbuf_to_pool(mp, pbuf);
return empty;
}
@@
-184,7
+192,7
@@
run_pdump_server_tests(void)
};
snprintf(coremask, sizeof(coremask), "%x",
};
snprintf(coremask, sizeof(coremask), "%x",
- (1 << rte_get_ma
ster
_lcore()));
+ (1 << rte_get_ma
in
_lcore()));
ret = test_pdump_init();
ret |= launch_p(argv1);
ret = test_pdump_init();
ret |= launch_p(argv1);