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 AAC62A2F63 for ; Thu, 3 Oct 2019 19:15:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C35731C12A; Thu, 3 Oct 2019 19:15:14 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 57BE61C117 for ; Thu, 3 Oct 2019 19:15:13 +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 x93H4l1Z016949; Thu, 3 Oct 2019 10:15:12 -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=EOGqWf1BHNAuR+av9qcgdw2eh1+QefonaUyo3F1UNOU=; b=TqVTMlYPzVyusKs8nKIjx049bO67KAB7C3crtufacYu5HdKzt8j2SCy2+EDgoEnvA1Xh dG5qB3CtV/vsH5m72zxyYUYTYviWnvJUy3lgoakhBroxdZ+S0fa/QRQZi8zcZjaFRuTH DZdaQ7gxuUKGOujVzaPIQ8HDhMUMhxBiGwZBmyNTxQGJ2LQVDN7AyjdNS7O9O2Gc0WWM JE60S7dxIO4YdBKxv3msvs1F+YjgSieTGp60auzCMoAZJYm/AYvXro+ptXnU/QiZ4qqR yqe7M7qJ2V1f+5M1tZt2vlU2Pi9/bPEHNw7wQ7qE72cnaO78plZSWyEwfGSrCP8JvFyV bw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2vd0y74k6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 03 Oct 2019 10:15:12 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 3 Oct 2019 10:15:11 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.51) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 3 Oct 2019 10:15:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PRUzk73k5uNh1Mk8LYfciQJ45t353Y4rkuxAHtlqEnjvBDSafm+OQOJntpv8MspF/vlku6fHWW59NxxAGQvZ6IvwNElesvHvrNuoz2//O/bnSPnS0IzmwgoCRMzir3M+IMDKU5fDiMV3cLhtPcwKp3auIpEvx5JPoBSOBxKPDlbDsDTckt+8V0IdoPsWlVLKHMNZ1mGv+VAq2VdBGi2oKyhyl5xCvFkfSXL7QR/yr7b7Ak5KdOE/ZRikVEFSTNRZ8c6eqDbaIQkmKKp0uTsIn3OMh1D+3lrkDfcVDPVXtGATigUap2g0+4sTYLrldTIPcCAI1Blkly0luVeNaoRzZQ== 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=EOGqWf1BHNAuR+av9qcgdw2eh1+QefonaUyo3F1UNOU=; b=dMn1f5X8oyH91Ku/UNaKZp7eYsf9m/QxMpur/y4GB0+jJ1hdcx9qEgBRcIHgxGapMqi9fvvsoC4kgus11yXw8uoCoZ5jFVufFfXvzDSpBh5i87IPn1SGqY8WAvw//mfLhMvlqso/DIvU3fgL5HcR8CG9zOvaxNBx+l4ShohAEAnkKitMm/HyrXwPKW10q1QA5OzwMJgpkyrQnbG0Vdx8KzXPLz1yVx8hAPab9yLfeJgR1MY6Zcla7hxJflWWoqWm7WSUn61X98HayRRLKjgATH+RewchmGRe2czOErEXQYWS+FF07RvqExCcOoGavqaquuh86+pDq1njwSVIJv5ojg== 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=EOGqWf1BHNAuR+av9qcgdw2eh1+QefonaUyo3F1UNOU=; b=V77ifBoZFonNMxhBBr35fUJgMNuN5SWqo13Y2YJbs7VxWXXalKm74hRQBsYQGX4kkMvwiZSs4bPzKT0RxrPdnnjJoXQeaAiddKYY5A3OZiXPMu9LPi5zVq2CJpzX5OhF+d8/DYm3kQoKP3zyKdjslxzl8bKe+8NW0s6mI+YER9s= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.160) by DM6SPR01MB0061.namprd18.prod.outlook.com (20.178.224.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.22; Thu, 3 Oct 2019 17:15:09 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::15d1:f4cf:f510:8fa]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::15d1:f4cf:f510:8fa%4]) with mapi id 15.20.2305.023; Thu, 3 Oct 2019 17:15:09 +0000 From: Pavan Nikhilesh Bhagavatula To: Andrew Rybchenko , Jerin Jacob Kollanukkaran , John McNamara , "Marko Kovacevic" , Thomas Monjalon , Ferruh Yigit CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v8 1/7] ethdev: add set ptype function Thread-Index: AQHVeWlvxOK9yFIAgUGJvOiQYzC0B6dIiOyAgACWJCA= Date: Thu, 3 Oct 2019 17:15:09 +0000 Message-ID: References: <20191002034716.6842-1-pbhagavatula@marvell.com> <20191002213612.14207-1-pbhagavatula@marvell.com> <20191002213612.14207-2-pbhagavatula@marvell.com> <6c27cc72-4eaa-272d-aabe-02de8fe3e5ec@solarflare.com> In-Reply-To: <6c27cc72-4eaa-272d-aabe-02de8fe3e5ec@solarflare.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.181.54.97] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dd41cad1-b5de-4103-aa59-08d748253e97 x-ms-traffictypediagnostic: DM6SPR01MB0061: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 01792087B6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(346002)(366004)(39860400002)(376002)(396003)(13464003)(199004)(189003)(76116006)(71190400001)(66946007)(71200400001)(74316002)(110136005)(8936002)(26005)(305945005)(66476007)(66556008)(64756008)(66446008)(81156014)(52536014)(81166006)(8676002)(5660300002)(6436002)(7736002)(55016002)(229853002)(25786009)(66066001)(6246003)(478600001)(256004)(186003)(4326008)(14444005)(446003)(486006)(476003)(86362001)(14454004)(11346002)(9686003)(99286004)(6116002)(7696005)(3846002)(6506007)(2906002)(102836004)(76176011)(316002)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6SPR01MB0061; H:CY4PR1801MB1863.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: c8k14Ilqmrfuhp5cGo5zkFR6kWQL6D9gz+b6QA3nffis8t4RhLFCbChCeVrWNUeoTQrqaPAqSHplSLamLXiwbRzoXqZsRgJyLgvY4ii4Vs2f83CqPF24ZZMAEMd8PhzYjYhZ8XFHCbbKjGzMThiFWnfM9eQBFWW/NB4B//47f5rGxlYGbH9pQ3Zru+/uPnxkpMYJfNCtZ/Yb7BM63SYHFkgT4s7JZd+oXE3xbVMICUWtg9piNDKQKDMriMcVzHarGT/TyHFagozlE1WrylGpyzS0FLJGsiCXVcm8uNP2dOzct4Y2F7m+itHArW84/GZ53Hl17rg5lh8u4iLGZznuMgpQWhqacZpSf+Jv53xUGGJtkBIbRdnrAheZ6NMjQzBzta/f/oL60djOAXXdHrSua8FHutkd3B9NUHURUfHDuX4= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: dd41cad1-b5de-4103-aa59-08d748253e97 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Oct 2019 17:15:09.5582 (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: n0X4OEkhPyVpQF+bAPYz5YVCbG+HZf1Wa5q8S4gX4YXVFkFHIaGpqtYBE1iYQfQghLapFfUkhywSn23EBch2KrwWIxytEYCArFySx1isA78= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6SPR01MB0061 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-03_07:2019-10-03,2019-10-03 signatures=0 Subject: Re: [dpdk-dev] [PATCH v8 1/7] ethdev: add set ptype function 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" DQoNCj4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPkZyb206IGRldiA8ZGV2LWJvdW5jZXNA ZHBkay5vcmc+IE9uIEJlaGFsZiBPZiBBbm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QgYmUgdXNlZnVsIHRvIGNoZWNrIGl0IHRvIGF2 b2lkIG1pc3VzZSBvZiB0aGUgQVBJDQo+d2hlbiwgZm9yIGV4YW1wbGUsIFJURV9QVFlQRV9MNF9U Q1AgaXMgc3BlY2lmaWVkIGFzIHB0eXBlX21hc2suDQoNCkkgZmVlbCB0aGUgc2FtZSB3ZSBjb3Vs ZCBkbyBzb21ldGhpbmcgbGlrZSANCg0KICAgICAgICB0ZXN0X3B0eXBlX21hc2sgPSBwdHlwZV9t YXNrOw0KICAgICAgICB3aGlsZSAodGVzdF9wdHlwZV9tYXNrKSB7DQogICAgICAgICAgICAgICAg dWludDhfdCBtYXNrID0gdGVzdF9wdHlwZV9tYXNrICYgUlRFX1BUWVBFX0wyX01BU0s7DQoNCiAg ICAgICAgICAgICAgICBpZiAobWFzayAmJiAobWFzayAhPSBSVEVfUFRZUEVfTDJfTUFTSykpIHsN CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChudW0gPiAwKQ0KICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBzZXRfcHR5cGVzWzBdID0gUlRFX1BUWVBFX1VOS05PV047DQoNCiAgICAg ICAgICAgICAgICAgICAgICAgIHJldHVybiAtRUlOVkFMOw0KICAgICAgICAgICAgICAgIH0NCg0K ICAgICAgICAgICAgICAgIHRlc3RfcHR5cGVfbWFzayA+Pj0gX19idWlsdGluX3BvcGNvdW50KFJU RV9QVFlQRV9MMl9NQVNLKTsNCiAgICAgICAgfQ0KDQo+DQo+PiArICogQHBhcmFtIHNldF9wdHlw ZXMNCj4+ICsgKiAgIEFuIGFycmF5IHBvaW50ZXIgdG8gc3RvcmUgc2V0IHBhY2tldCB0eXBlcywg YWxsb2NhdGVkIGJ5IGNhbGxlci4gVGhlDQo+PiArICogICBmdW5jdGlvbiBtYXJrcyB0aGUgZW5k IG9mIGFycmF5IHdpdGggUlRFX1BUWVBFX1VOS05PV04uDQo+PiArICogQHBhcmFtIG51bQ0KPj4g KyAqICAgU2l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