From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 15524A2EFC for ; Thu, 19 Sep 2019 12:35:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F06071EF2F; Thu, 19 Sep 2019 12:35:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 8955B1EF2C for ; Thu, 19 Sep 2019 12:35:23 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8JATmUN022521; Thu, 19 Sep 2019 03:35:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=UDBpHp060vmNCyWT5OZKdextLLQ1YmiVKtkBIFV12Qw=; b=lntWx89DKHLicvIdPqG4tBlPzs7MWBRW+JxMGNdIISVsRvni7EXTwG3iNN4Yd8XttSoQ TSjVd2RsarNkGwPR2QuU7cfImZehR05DYLrVb/nIghNv1INY1PG1eUTEXiyAxFYwO25q 8VM4DqJ8BWb6cWRsE4AHR1uSlZxC/oU0FZnjQg2oWI+txwJ1gAp5Avxw7eRcZmRkQ8eR mpC+SB529IDuPsjywiwcxkje8PPVQZHcP5UiYkKCNz0k4/sEgIiYGQGMfRSsZX4ZeH2a jhGzKQk4eBZ9mrMfQUBT+XvPGTyHekme7gB+c9J8yS4v2yINZbsp0KgjUxPKPD0en4mN 9A== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2v3vcdtfd3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2019 03:35:22 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Sep 2019 03:35:20 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.59) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 19 Sep 2019 03:35:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aRxucXlqaskJIVRE3hsSNsYmDpdBRSyi4BZwKwIN7PhktNXpoDFTsSHOLwLSBG4fFTnH9IlOTLBeBuLGNtBngm7YokkJHIpu81Sfk5AMn04lX28yanXn1GjE4NLHC1HrbT/ul1fhbTOPwF/PDFjdDe15Lb3lZ6qXFwcf+VBNsgyLgIPkvijhSaGlV+DbPWz4WcWsVABv5bICzEvTuvvyCvxqZ+VJtv2L76hlJp/BwPjut4jknlvY1OP0H5YHZsUApKLvipi9AdloIvfJ9MbJZm8qxRMEqfBipc4PiVqJKhoZ1YxfEW1IBO2n1KANbzJWsznvSR2XMKRvjCDAnyCQIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UDBpHp060vmNCyWT5OZKdextLLQ1YmiVKtkBIFV12Qw=; b=ARv26jN65l9gBykvMiqU8X/8sNCP/IKr4clG8kAJ/NxFP9BHPea9Qd+/Plc64qDEk232gCTAbH6Dp4AsPeWiRXiA+1oRhuPBF/EaBLxhqB/U2HIeXe6s2htN04cmJ2Aav1xLI9R/gs7/LvjupEyv6dMOgyRmniKGi0X84ETwiFC24CbKHfq6y9SsGW8YXu6DiYApSJWcdjjZolXgIevu1w5+fzDXGF/FziKJcFAeWStPlGga0y7Kk08jiP+XiYzr/sz3y+a5wPoi5/5FDpZ3yNpYkFhzxvqoZ7C4316JrWsjCE0GV7GAQXRULgFOvMj/WyAWBcNOBKcmzqSPheCorA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UDBpHp060vmNCyWT5OZKdextLLQ1YmiVKtkBIFV12Qw=; b=bRYT5eG+tIvuEH12WQ6nZllSjUlW9/XreVZ2HFGf2lGQok/ahH1rZC9dZJ6kWUSKoGLa1E0V9fQA+6IUKjuS9hJqb/RG4f+Iu+ylti20yUosqkfX2+pIEJWI1yimr6tFXVY9He2CoWBz9Au9jm+TdDrU/4Ql5SH18HTK/IGjwpk= Received: from BN8PR18MB3075.namprd18.prod.outlook.com (20.179.75.151) by BN8PR18MB2931.namprd18.prod.outlook.com (20.179.75.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.24; Thu, 19 Sep 2019 10:35:19 +0000 Received: from BN8PR18MB3075.namprd18.prod.outlook.com ([fe80::c087:8e94:50ba:e424]) by BN8PR18MB3075.namprd18.prod.outlook.com ([fe80::c087:8e94:50ba:e424%3]) with mapi id 15.20.2284.009; Thu, 19 Sep 2019 10:35:19 +0000 From: Sunil Kumar Kori To: Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" , "bruce.richardson@intel.com" , "akhil.goyal@nxp.com" , Marko Kovacevic , Ori Kam , Radu Nicolau , Tomasz Kantecki , Pavan Nikhilesh Bhagavatula CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 05/10] examples/l2fwd-event: add eventdev queue and port setup Thread-Index: AQHVbtMACYdaTizBzUu1jG5TQWbgfKcyzZeg Date: Thu, 19 Sep 2019 10:35:18 +0000 Message-ID: References: <20190919092603.5485-2-pbhagavatula@marvell.com> <20190919101346.8832-1-pbhagavatula@marvell.com> <20190919101346.8832-6-pbhagavatula@marvell.com> In-Reply-To: <20190919101346.8832-6-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 548a2861-ce96-4ef1-e968-08d73ced114a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:BN8PR18MB2931; x-ms-traffictypediagnostic: BN8PR18MB2931: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(396003)(39860400002)(346002)(376002)(189003)(199004)(7736002)(7696005)(486006)(4744005)(14454004)(76176011)(8936002)(66556008)(66946007)(316002)(66446008)(76116006)(110136005)(81166006)(2501003)(81156014)(64756008)(9686003)(66476007)(4326008)(476003)(33656002)(11346002)(86362001)(256004)(71190400001)(2201001)(66066001)(6436002)(74316002)(26005)(186003)(52536014)(5660300002)(8676002)(25786009)(6246003)(305945005)(71200400001)(99286004)(446003)(229853002)(478600001)(55016002)(55236004)(6506007)(3846002)(6636002)(2906002)(6116002)(102836004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR18MB2931; H:BN8PR18MB3075.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: KXml67gGUZM8Z+R8X4Frvr0WGd0B0zVIXm7L5X3kQogNZPSEFiQd/oK+PUYRCIf0MNHplEJfr7EwSNEI+AZfh/ZQYi8O9JMLQiiFV3tndBdvoO8x+U8h3IHye9s9/PdaaMhy8/h5bp+6wbtexwCHVr0V5lacFCkZ4bv1dyzxpYnhMePX6dw3rnt7k+94ySkmPtZyOrYy6HecMYfc1+HBCLe4L+LdVOKA58IyKYhVm0+6mUr9tw6H9zfnnMzm54SgKV4taHZH6SoZSxiF+eO/iBuMjGPqdsZPH7svK3bUlDxwJ+/a/ePzo93pzA5hvDK9JktFg8oF3F/XqtRW9qGoQc9WZUoG0Pn0IRYB26BNMFBqHpTgiwM0RwNQ4Imik2bnoLjWDmgLwlWAPs+R2RO20SSA6zLrbd1OEMnqkeGY4NY= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 548a2861-ce96-4ef1-e968-08d73ced114a X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 10:35:18.9693 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Ba2O0aNXg5XlA7kyXGQTYZCHjZwlEmZSQZeS/5dbxWyZH5vJ7XViUf4//uTX3IzoIapC9RPQNn2LD3UGJ2FThw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR18MB2931 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-19_03:2019-09-18,2019-09-19 signatures=0 Subject: Re: [dpdk-dev] [PATCH v3 05/10] examples/l2fwd-event: add eventdev queue and 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >+static void >+event_port_setup_generic(void) >+{ >+ struct eventdev_resources *eventdev_rsrc =3D get_eventdev_rsrc(); >+ uint8_t event_d_id =3D eventdev_rsrc->event_d_id; >+ struct rte_event_port_conf event_p_conf =3D { >+ .dequeue_depth =3D 32, >+ .enqueue_depth =3D 32, >+ .new_event_threshold =3D 4096 >+ }; >+ struct rte_event_port_conf def_p_conf; >+ uint8_t event_p_id; >+ int32_t ret; >+ >+ /* Service cores are not used to run worker thread */ >+ eventdev_rsrc->evp.nb_ports =3D eventdev_rsrc->evp.nb_ports; Is this line needed ?