From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7742FA0096 for ; Tue, 4 Jun 2019 09:54:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 26C491BB0B; Tue, 4 Jun 2019 09:54:00 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 3B5AC1BA5E for ; Tue, 4 Jun 2019 09:53:58 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x547eG8s002117; Tue, 4 Jun 2019 00:53:57 -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=x+4Ug37f7qmubckt6MD4qGr0SI0Nu/CkN9L6g6as2DQ=; b=qf2Y30QvjgL0ua8Ck1fFP06fqIBSUAoGAFAzM9KRBZBbA+P+3Go/To8AhxOcfA+xTu2+ sTZTHa38Z7ZjBq9zx4NBm+Bx4bgWH8r53piwRLlu96vbaetiGETm49K8uGM0LZSrYzVN XxOh83AD7b5f21yDBg9RMdldfV1VXgDb9+TfmjeOxqlEPYcJH/4ZQrgDNF0PalheBvX6 CyTCHlvalho00WC16snVTKEpFCb9i9NGPzocC9oNKoWprXrLf//VN+xYyI14CnwavtzW 91DhEv/kHPfTuLlfCCVfUFrbdOrRejSvv7C4QgqU0ZdFjVxWQWiBzP9sek2FrlN+9veN MA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2swejx99xw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2019 00:53:57 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 4 Jun 2019 00:53:55 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (104.47.37.52) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 4 Jun 2019 00:53:55 -0700 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=x+4Ug37f7qmubckt6MD4qGr0SI0Nu/CkN9L6g6as2DQ=; b=J0qB3LIkvnVtffeTJsGSSFHFJ7qkb15N9PDZKddHwkPAnsfKEaI8zAOZcmYcTUjjSJoqp6jp06H03nDjqJOGnQ9bxvjRbDQHXZdSx8JPyrm4nuBeA9C41nItjTkISP+CUAjNZqAj9RpkDDJivqzpmhZ48ncMG/OV0gQtfXJHU8E= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB3046.namprd18.prod.outlook.com (20.179.60.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.17; Tue, 4 Jun 2019 07:53:50 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1ce4:557d:eeb8:843c]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1ce4:557d:eeb8:843c%7]) with mapi id 15.20.1965.011; Tue, 4 Jun 2019 07:53:50 +0000 From: Jerin Jacob Kollanukkaran To: Xiaoyun Li , "jingjing.wu@intel.com" , "keith.wiles@intel.com" , "cunming.liang@intel.com" , "omkar.maslekar@intel.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 5/6] usertools/dpdk-devbind.py: add support for ntb Thread-Index: AQHVGen61a4laKK1TEWD3ffMA25hqqaLH9Ug Date: Tue, 4 Jun 2019 07:53:50 +0000 Message-ID: References: <20190603084611.40931-1-xiaoyun.li@intel.com> <20190603084611.40931-6-xiaoyun.li@intel.com> In-Reply-To: <20190603084611.40931-6-xiaoyun.li@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.178.234.223] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a1d35187-698f-493d-27d3-08d6e8c1c87f x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB3046; x-ms-traffictypediagnostic: BYAPR18MB3046: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0058ABBBC7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(346002)(376002)(39850400004)(136003)(13464003)(199004)(189003)(52536014)(446003)(11346002)(68736007)(2201001)(14444005)(5660300002)(71190400001)(71200400001)(9686003)(478600001)(316002)(2501003)(86362001)(14454004)(486006)(256004)(76176011)(64756008)(73956011)(66946007)(33656002)(81156014)(476003)(25786009)(6436002)(186003)(76116006)(81166006)(55016002)(4326008)(8936002)(66476007)(66556008)(229853002)(66446008)(102836004)(53936002)(6506007)(2906002)(53546011)(66066001)(110136005)(3846002)(74316002)(99286004)(6246003)(305945005)(7736002)(6116002)(7696005)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB3046; H:BYAPR18MB2424.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-message-info: 5yqiWvyjPgTVSl3ghQWyqq5o4fIr3DyY6zc1XDkcDmLbha5oaPAebo/xumLMFqSxoQVRNnHXEsJy84psL+AgHA4pJfSuQIJn1Cngm/FDjvjkZ9RB7NQhk92bkuPyK8rbFS64rNkkzDmNE589RmpTeZI9j7y/RDP50jmahDiC8xT1DctIoO/qW6aUMT4QQaYdnhTsJzR9nX/R7eLbGRdFqzCZCpsfaTQ+O5WG9t2+ngLlYQwTbB4xWEnXNCyYwazyxlqu36rUPe+IrY0OmqQjzgZSk4zexwokF++Dljr42tjMjkMJyigvNRZwIl5f6uY3pmmqO4eBT4PXyHNeU8QDAIfWcKObjj9W6RsIIwqSxNfUGP57Vz6T8m2o/JcjQ5MRo9balTShNC4ziAKxBmwf94QFdFOzFKVR8RY3YukYs4U= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a1d35187-698f-493d-27d3-08d6e8c1c87f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2019 07:53:50.7773 (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: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB3046 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-04_06:, , signatures=0 Subject: Re: [dpdk-dev] [PATCH 5/6] usertools/dpdk-devbind.py: add support for ntb 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" > -----Original Message----- > From: dev On Behalf Of Xiaoyun Li > Sent: Monday, June 3, 2019 2:16 PM > To: jingjing.wu@intel.com; keith.wiles@intel.com; cunming.liang@intel.com= ; > omkar.maslekar@intel.com > Cc: dev@dpdk.org; Xiaoyun Li > Subject: [dpdk-dev] [PATCH 5/6] usertools/dpdk-devbind.py: add support > for ntb >=20 > In order to allow binding/unbinding of devices for use by the ntb_rawdev, > we need to update the devbind script to add a new class of device, and ad= d > device ids for the specific HW instances. And only support skx platform r= ight > now. >=20 > Signed-off-by: Xiaoyun Li > --- > usertools/dpdk-devbind.py | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index > 9e79f0d28..470869ff3 100755 > --- a/usertools/dpdk-devbind.py > +++ b/usertools/dpdk-devbind.py > @@ -36,11 +36,15 @@ > octeontx2_npa =3D {'Class': '08', 'Vendor': '177d', 'Device': 'a0fb,a0fc= ', > 'SVendor': None, 'SDevice': None} >=20 > +intel_ntb_skx =3D {'Class': '06', 'Vendor': '8086', 'Device': '201c', > + 'SVendor': None, 'SDevice': None} > + > network_devices =3D [network_class, cavium_pkx, avp_vnic, ifpga_class] > crypto_devices =3D [encryption_class, intel_processor_class] > eventdev_devices =3D [cavium_sso, cavium_tim, octeontx2_sso] > mempool_devices =3D [cavium_fpa, octeontx2_npa] compress_devices =3D > [cavium_zip] > +ntb_devices =3D [intel_ntb_skx] >=20 > # global dict ethernet devices present. Dictionary indexed by PCI addres= s. > # Each device within this is itself a dictionary of device properties @@= -595,6 > +599,9 @@ def show_status(): > if status_dev =3D=3D "compress" or status_dev =3D=3D "all": > show_device_status(compress_devices , "Compress") >=20 > + if status_dev =3D=3D "ntb" or status_dev =3D=3D "all": > + show_device_status(ntb_devices , "NTB") Please change ntb to some generic name. it look like it is the product name= , does not reflect the device type. How about, "communication devices" or any generic name approp= riate for ntb.