From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 19AF91B34D for ; Tue, 26 Dec 2017 11:03:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2017 02:03:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,459,1508828400"; d="scan'208";a="14615041" Received: from kmsmsx154.gar.corp.intel.com ([172.21.73.14]) by FMSMGA003.fm.intel.com with ESMTP; 26 Dec 2017 02:03:12 -0800 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.108]) by KMSMSX154.gar.corp.intel.com ([169.254.12.68]) with mapi id 14.03.0319.002; Tue, 26 Dec 2017 18:03:11 +0800 From: "Zhao1, Wei" To: "orika@mellanox.com" CC: "Lu, Wenzhuo" , "dev@dpdk.org" Thread-Topic: [PATCH] examples/flow_filtering: add Tx queues setup process Thread-Index: AQHTfiv5q/U95YaTIkq2KJa/7XBXSaNVZODQ Date: Tue, 26 Dec 2017 10:03:10 +0000 Message-ID: References: <20171226092104.82707-1-wei.zhao1@intel.com> In-Reply-To: <20171226092104.82707-1-wei.zhao1@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/flow_filtering: add Tx queues setup process 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: Tue, 26 Dec 2017 10:03:15 -0000 Add maintainer orika@mellanox.com into cc list. > -----Original Message----- > From: Zhao1, Wei > Sent: Tuesday, December 26, 2017 5:21 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhao1, Wei > > Subject: [PATCH] examples/flow_filtering: add Tx queues setup process >=20 > This example do not has the process of set up tx queues, but some NIC sta= rt > up process will be blocked if this is no tx queue and only rx queues. So = add tx > queues setup process in main code. >=20 > Signed-off-by: Wei Zhao > --- > examples/flow_filtering/main.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) >=20 > diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/mai= n.c > index 7d739b4..b5c7677 100644 > --- a/examples/flow_filtering/main.c > +++ b/examples/flow_filtering/main.c > @@ -173,6 +173,17 @@ init_port(void) > } > } >=20 > + for (i =3D 0; i < nr_queues; i++) { > + ret =3D rte_eth_tx_queue_setup(port_id, i, 512, > + rte_eth_dev_socket_id(port_id), > + NULL); > + if (ret < 0) { > + rte_exit(EXIT_FAILURE, > + ":: Tx queue setup failed: err=3D%d, > port=3D%u\n", > + ret, port_id); > + } > + } > + > rte_eth_promiscuous_enable(port_id); > ret =3D rte_eth_dev_start(port_id); > if (ret < 0) { > -- > 2.9.3