[dpdk-dev] [PATCH 11/13] examples/eventdev: add atq single stage pipeline worker

Van Haaren, Harry harry.van.haaren at intel.com
Tue Dec 19 14:34:07 CET 2017


> From: Pavan Nikhilesh [mailto:pbhagavatula at caviumnetworks.com]
> Sent: Thursday, December 7, 2017 8:37 PM
> To: Eads, Gage <gage.eads at intel.com>; jerin.jacobkollanukkaran at cavium.com;
> Van Haaren, Harry <harry.van.haaren at intel.com>; Rao, Nikhil
> <nikhil.rao at intel.com>; hemant.agrawal at nxp.com; Ma, Liang J
> <liang.j.ma at intel.com>
> Cc: dev at dpdk.org; Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> Subject: [PATCH 11/13] examples/eventdev: add atq single stage pipeline
> worker
> 
> Add optimized eventdev pipeline when ethdev supports thread safe Tx,
> number of configured stages is one and all type queue option is enabled.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> ---
>  .../eventdev_pipeline_sw_pmd/pipeline_worker_tx.c  | 88
> +++++++++++++++++++++-
>  1 file changed, 86 insertions(+), 2 deletions(-)


>  	if (cdata.num_stages == 1) {
> -		if (burst)
> +		if (burst && atq)
> +			caps->worker_loop = worker_do_tx_single_burst_atq;
> +		if (burst && !atq)
>  			caps->worker_loop = worker_do_tx_single_burst;
> -		if (!burst)
> +		if (!burst && atq)
> +			caps->worker_loop = worker_do_tx_single_atq;
> +		if (!burst && !atq)
>  			caps->worker_loop = worker_do_tx_single;
>  	} else {
>  		if (burst && atq)

As per previous notes, this doesn't scale.


More information about the dev mailing list