diff mbox series

[v1,2/2] test: Disable packet parsing in odp_pktio_perf

Message ID 1506092406-26086-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/2] test: Make odp_pktio_perf more scalable | expand

Commit Message

Github ODP bot Sept. 22, 2017, 3 p.m. UTC
From: Ola Liljedahl <ola.liljedahl@arm.com>


Disable packet parsing as it is done in the driver where it affects
scalability of the application. This especially problematic for e.g.
the loopback pktio which has only one RX queue.

Signed-off-by: Ola Liljedahl <ola.liljedahl@arm.com>

Reviewed-by: Brian Brooks <brian.brooks@arm.com>


Change-Id: Icdf4fe00a5cb6d775362cfec059132a1498f8ffa
---
/** Email created from pull request 188 (WonderfulVoid:master)
 ** https://github.com/Linaro/odp/pull/188
 ** Patch: https://github.com/Linaro/odp/pull/188.patch
 ** Base sha: c2ed3f71a8d61449c5e35ce201f020a74a8ea244
 ** Merge commit sha: 8f53c33c86e77be34933d9aeeb3ff3793c941b44
 **/
 test/common_plat/performance/odp_pktio_perf.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c
index 210a833fe..01c2eae14 100644
--- a/test/common_plat/performance/odp_pktio_perf.c
+++ b/test/common_plat/performance/odp_pktio_perf.c
@@ -739,6 +739,7 @@  static int test_init(void)
 	odp_pool_param_t params;
 	const char *iface;
 	int schedule;
+	odp_pktio_config_t cfg;
 
 	odp_pool_param_init(&params);
 	params.pkt.len     = PKT_HDR_LEN + gbl_args->args.pkt_len;
@@ -788,6 +789,13 @@  static int test_init(void)
 		return -1;
 	}
 
+	/* Disable packet parsing as this is done in the driver where it
+	 * affects scalability.
+	 */
+	odp_pktio_config_init(&cfg);
+	cfg.parser.layer = ODP_PKTIO_PARSER_LAYER_NONE;
+	odp_pktio_config(gbl_args->pktio_rx, &cfg);
+
 	if (gbl_args->args.num_ifaces > 1) {
 		if (odp_pktout_queue_config(gbl_args->pktio_rx, NULL)) {
 			LOG_ERR("failed to configure pktio_rx queue\n");