[dpdk-dev] [PATCH 6/8] app/eventdev: add event Rx adapter setup
Jerin Jacob
jerin.jacob at caviumnetworks.com
Sun Dec 10 13:13:37 CET 2017
-----Original Message-----
> Date: Wed, 18 Oct 2017 18:09:06 +0530
> From: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> To: bruce.richardson at intel.com, harry.van.haaren at intel.com,
> gage.eads at intel.com, hemant.agrawal at nxp.com, nipun.gupta at nxp.com,
> nikhil.rao at intel.com, santosh.shukla at caviumnetworks.com,
> jerin.jacob at caviumnetworks.com
> Cc: dev at dpdk.org, Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> Subject: [PATCH 6/8] app/eventdev: add event Rx adapter setup
> X-Mailer: git-send-email 2.7.4
>
> Add functions to setup and configure Rx adapter based on the number of
> ethdev ports setup.
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> ---
> app/test-eventdev/test_perf_common.c | 97 ++++++++++++++++++++++++++++++------
> app/test-eventdev/test_perf_common.h | 1 +
> 2 files changed, 84 insertions(+), 14 deletions(-)
>
> diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c
> index 04c0c65..0ade1dc 100644
> --- a/app/test-eventdev/test_perf_common.c
> +++ b/app/test-eventdev/test_perf_common.c
> @@ -232,12 +232,68 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt,
> return 0;
> }
>
> int
> perf_event_dev_port_setup(struct evt_test *test, struct evt_options *opt,
> uint8_t stride, uint8_t nb_queues)
> {
> struct test_perf *t = evt_test_priv(test);
> - uint8_t port, prod;
> + uint16_t port, prod;
> int ret = -1;
>
> /* port configuration */
> @@ -272,26 +328,38 @@ perf_event_dev_port_setup(struct evt_test *test, struct evt_options *opt,
> }
>
> /* port for producers, no links */
> - const struct rte_event_port_conf prod_conf = {
> + struct rte_event_port_conf prod_conf = {
> .dequeue_depth = 8,
> .enqueue_depth = 32,
> .new_event_threshold = 1200,
Use default config get functions to get optimal values instead of hard
coded values.
With above change:
Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
More information about the dev
mailing list