From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2DC3C374 for ; Fri, 23 Jun 2017 14:36:51 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2017 05:36:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,378,1493708400"; d="scan'208";a="277830502" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga004.fm.intel.com with ESMTP; 23 Jun 2017 05:36:49 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.211]) by IRSMSX151.ger.corp.intel.com ([169.254.4.191]) with mapi id 14.03.0319.002; Fri, 23 Jun 2017 13:36:48 +0100 From: "Van Haaren, Harry" To: Jerin Jacob , "dev@dpdk.org" CC: "Richardson, Bruce" , "hemant.agrawal@nxp.com" , "Eads, Gage" , "nipun.gupta@nxp.com" , "Vangati, Narender" , "Rao, Nikhil" , "gprathyusha@caviumnetworks.com" Thread-Topic: [dpdk-dev] [PATCH 14/33] app/testeventdev: order: add eventdev port setup Thread-Index: AQHS1+0nHBfdLbms70i25APZeP/cj6IyikyQ Date: Fri, 23 Jun 2017 12:36:47 +0000 Message-ID: References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> <20170528195854.6064-15-jerin.jacob@caviumnetworks.com> In-Reply-To: <20170528195854.6064-15-jerin.jacob@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGQ1YmZhZGUtMzhkNS00OTBjLThkOGMtMzdmOWFjODZhZDc0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ilc4UUtvZlNZckpOMmxZcFZmb1BJSXRtR0dLOFZaSWVxUTluT3crYnFNUWs9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 14/33] app/testeventdev: order: add eventdev port setup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2017 12:36:51 -0000 > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > Sent: Sunday, May 28, 2017 8:59 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; Van Haaren, Harry > ; hemant.agrawal@nxp.com; Eads, Gage ; > nipun.gupta@nxp.com; Vangati, Narender ; Rao,= Nikhil > ; gprathyusha@caviumnetworks.com; Jerin Jacob > > Subject: [dpdk-dev] [PATCH 14/33] app/testeventdev: order: add eventdev p= ort setup >=20 > Setup one port per worker and link to all queues and setup > one producer port to inject the events. >=20 > Signed-off-by: Jerin Jacob One suggestion below to increase the enqueue depth, or was there a reason s= et it to 8? Acked-by: Harry van Haaren > + /* setup one port per worker, linking to all queues */ > + for (port =3D 0; port < nb_workers; port++) { > + struct worker_data *w =3D &t->worker[port]; > + > + w->dev_id =3D opt->dev_id; > + w->port_id =3D port; > + w->t =3D t; > + > + ret =3D rte_event_port_setup(opt->dev_id, port, &wkr_p_conf); > + if (ret) { > + evt_err("failed to setup port %d", port); > + return ret; > + } > + > + ret =3D rte_event_port_link(opt->dev_id, port, NULL, NULL, 0); > + if (ret !=3D nb_queues) { > + evt_err("failed to link all queues to port %d", port); > + return -EINVAL; > + } > + } > + /* port for producer, no links */ > + const struct rte_event_port_conf prod_conf =3D { > + .dequeue_depth =3D 8, > + .enqueue_depth =3D 8, .enqueue_depth =3D 32 or so?