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 F403EA0096 for ; Tue, 4 Jun 2019 10:16:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BE12C1B9FC; Tue, 4 Jun 2019 10:16:54 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9CDF61B96E for ; Tue, 4 Jun 2019 10:16:52 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 01:16:51 -0700 X-ExtLoop1: 1 Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 04 Jun 2019 01:16:51 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 01:16:50 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 01:16:50 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.113]) with mapi id 14.03.0415.000; Tue, 4 Jun 2019 16:16:48 +0800 From: "Li, Xiaoyun" To: Jerin Jacob Kollanukkaran , "Wu, Jingjing" , "Wiles, Keith" , "Liang, Cunming" , "Maslekar, Omkar" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 5/6] usertools/dpdk-devbind.py: add support for ntb Thread-Index: AQHVGqq0hwaOqu+NnkqEZUg88tksGqaLJUdQ Date: Tue, 4 Jun 2019 08:16:47 +0000 Message-ID: References: <20190603084611.40931-1-xiaoyun.li@intel.com> <20190603084611.40931-6-xiaoyun.li@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.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" OK. "communication devices" seems a good option but a little long. Will think if there is another choice. If not, will use it. Thanks. > -----Original Message----- > From: Jerin Jacob Kollanukkaran [mailto:jerinj@marvell.com] > Sent: Tuesday, June 4, 2019 15:54 > To: Li, Xiaoyun ; Wu, Jingjing ; > Wiles, Keith ; Liang, Cunming > ; Maslekar, Omkar > Cc: dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 5/6] usertools/dpdk-devbind.py: add suppor= t for > ntb >=20 > > -----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 > > > > 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 add device ids for the specific HW instances. And only > > support skx platform right now. > > > > Signed-off-by: Xiaoyun Li > > --- > > usertools/dpdk-devbind.py | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > 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,a0= fc', > > 'SVendor': None, 'SDevice': None} > > > > +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] > > > > # global dict ethernet devices present. Dictionary indexed by PCI addr= ess. > > # 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") > > > > + if status_dev =3D=3D "ntb" or status_dev =3D=3D "all": > > + show_device_status(ntb_devices , "NTB") >=20 >=20 > Please change ntb to some generic name. it look like it is the product na= me, > does not reflect the device type. How about, "communication devices" or = any > generic name appropriate for ntb.