From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5481CA0093; Mon, 25 Apr 2022 15:53:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E257141109; Mon, 25 Apr 2022 15:53:07 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 4562040E78 for ; Mon, 25 Apr 2022 15:53:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650894786; x=1682430786; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fpiyLgUAoUdiaKsDRMDzQU1yLmoT0y6NfPJ6DsJlVAU=; b=XQYk5eA6XdTCVd5JclKB2PcuVvO66pyhBB1jXcdG+9Ekj0WXZn4t7EhM zSGBVGCgQdc2eoV53Vo7hiIKUk2JS7RtVz9yiEauLdBeWZOFPIkLDTuzQ xInT0x2SAPzDUXrofN0hG0GXq0hS8hslVEoT5s7Nase8QfheHbC8NKYzg SXeSUqYaid+jXCfyQ6RcBag1e380O44wCJ3znc/jAW3KiR5OcERl6z/WY r16NZHTDjtpi8M2z8BLN9LOKFP79OGaZljnvQ1uXpGLXTJHvNKGwXnCI+ 8Z74k6zop5TTEN69VzbRdQQjTQ4CKWAWx/LgV5hi6OKAcUJYsCzjWWQ+F A==; X-IronPort-AV: E=McAfee;i="6400,9594,10328"; a="325739987" X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="325739987" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 06:53:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="557740109" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP; 25 Apr 2022 06:53:05 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 25 Apr 2022 06:53:04 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Mon, 25 Apr 2022 06:53:04 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Mon, 25 Apr 2022 06:53:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hH95JMQC+WgcT41aVyMa/tqvSQ37rOIPrjJX0QXb4pZUgj4CzyvpdYVb5vGNQsYQRM5ekKJdH2bPmA+Sz6ATM2RiIdIWcAuSSV0tgV0KQU4D6bCt9/ZvcqCAWLw1HDvaKwAEyQ8rFOxtl6DX+UH06RJWrzDJ8G7snFy47TTHzxV4oA69FEhvbbjRgf7mCTEc/AGIYZcljHO+9PhKgCSjCwbazTWp4cPMOS00A/cuDr0iuOpZnKgELcWENkRdV0zOdzuo7LN7iDjkK41Vc5USz6KJs/TXDBla1uEi5maq01JIVI/qXeVkDW+kHj+Wpl4Se7Gnlr+wExQ9JeWlScZEdw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=THg+kEQ4/rJ/SThdIgXiMdR5e+cEI4P0nlOJVn/BkkQ=; b=YQ84IUkSXIIEXS7MxX+LG1cH2yvX+5Wg7XNVsuXuHvdP8gKeOSpoZkQPVTwYdG8WPQmKMtU8rmWCetKGKTNWBUdMOstHqNdYLIVZEfS6goDD86iY/qwwh+O1SpntLnpyAIfs2N5aD6SrrT7DDcSG331OSZrYPQHAkMWdS6LMNhdV50laGHZ5722Giny6ATlzci2k+EPh28I6d0//Z9GQyERKUuc7/oHmY0am2CdfMtuOtZMJF6lS6RnbHA4GQ8a5EXIdPiLHygrDz577u6z7YhQbsQfpYTw5YofM9ShgmXlaUhGyatikiklGKmbzpjFme+cBf/7/CPboZECwUtOU5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by DM6PR11MB2985.namprd11.prod.outlook.com (2603:10b6:5:66::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Mon, 25 Apr 2022 13:53:03 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::4d1d:6453:f00c:cf8a]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::4d1d:6453:f00c:cf8a%6]) with mapi id 15.20.5186.020; Mon, 25 Apr 2022 13:53:02 +0000 From: "Xia, Chenbo" To: "Pei, Andy" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" , "david.marchand@redhat.com" Subject: RE: [PATCH v6 08/16] usertools: add support for virtio blk device Thread-Topic: [PATCH v6 08/16] usertools: add support for virtio blk device Thread-Index: AQHYVWD32z/OEO+aNU6MLxcf0AfRfa0Aqtfw Date: Mon, 25 Apr 2022 13:53:02 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1650530034-59744-1-git-send-email-andy.pei@intel.com> <1650530034-59744-9-git-send-email-andy.pei@intel.com> In-Reply-To: <1650530034-59744-9-git-send-email-andy.pei@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 28ac6a5a-4fe4-461b-d3c3-08da26c2ea9d x-ms-traffictypediagnostic: DM6PR11MB2985:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8ldKJ2rT7CPHTVRNnsrRn5vZ+E0VIahoUYTBFPYjmyikxiNNM0wT/KOeGurm3JDY4HHY668T+TBmZJP7guNgfr7aWjBdTerF8k729BdEPcUzSz5K1AXwuuUVstHYqVmvFLUxCro5pSkHF1xZxbT7jMnUaklykuAmlytupG57Rdz3o2s1eatg47pPOV2Zy1W7lnJOdjeBRCnh32J8dI+aw/6hkTj0dYIEN07eBOaNC7+uU6+Gw+0UuklVouhpRAb2I5OjHMQUWS0dCE2m4XKtWJ3X79vkMizmhKhxcSSgtOlSB9Neasqv+PzNLk4QJQX0Z4LF5clxMWZ6nqOmk7z+NODON1+huXjySc99blE4TW8ZqcbrcPh9KvJjTBifT9pYdR8quUQhjnbV1BkJkNHKJSk0fwbig57n6e7e4XLDWIGGOTI5QgoIFlsxOrzZ5ZSRXI1K7Q7sTiJfD2jVnr+ML6qDkU03OVJyzJLXRZvjOWTFUJgLEt6ytwIkku/XIW8J8wut0DvTiz27B3KbB1chngVPg5d0P9hzOh28yVu19Uye+viUQYnpp8qdmUU3OhQTzJGY7j0IJfZ7Z+Kymn7+7Sblx1U4TTFM4kYPz7pi3BOLXIz0yst+34dcw5BHx37HXtOfdFi3OIffk5XQCxYWk0byHb6hEVbX+l7OkXmzn3zXKWZvnQq7SHtGC4n31IOpps6nWVCeVGuPaai/iCdH4Fkk5tcDNuekJ1RA6NtFQf0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(52536014)(4326008)(8936002)(5660300002)(66946007)(8676002)(82960400001)(86362001)(122000001)(508600001)(2906002)(110136005)(38070700005)(38100700002)(83380400001)(316002)(66556008)(54906003)(64756008)(66446008)(66476007)(186003)(76116006)(71200400001)(26005)(53546011)(33656002)(6506007)(9686003)(7696005)(55016003)(21314003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?MMsCW1BxAGQGK0idxfKGmr2HDYpfVJiHhfxqzGn79FwIMGpVEc2r1K7LfgnX?= =?us-ascii?Q?wR5DYijPF1d5F7df9Y1TrHIW50x7qg7rfP1Gp/x1P4YII3Z++tz+30OZL2UJ?= =?us-ascii?Q?tmOT2WV5Yf8exi+BBvpCmIUCCZycLu9fMkCd5F9ovCRPyF+zTAaHKBdThSrg?= =?us-ascii?Q?djyOwYlL25D+LZAjS1UnoTLWK+1Kg4HxKaop9eAGeztJFU5Fr4Y0CWI6BF9f?= =?us-ascii?Q?+p4taayP7YolLmoXzPLvvcExPRLHzvMkK+uDfvDfn1yS+OAo02SwALlDy1Kt?= =?us-ascii?Q?+7dKI7yq5PJJcZNlksHomi2R6EA1/3nbxx5VxeK8zsR2QHSukaxqz7Eefmyd?= =?us-ascii?Q?F/In3fdGqMAMD1ytVMuceeIIqLxCPoHR71/Mgz1HabMxBcOPdNYfQ3vFpX0A?= =?us-ascii?Q?wc+am0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+cJBg1f7jIojuAp4pm8zY?= =?us-ascii?Q?rVRuPEHZ6MC9PQ99LHaqqvTFZz4kAPn/K+UBUKG3VOkDUYlS/v6hrq3biWEt?= =?us-ascii?Q?XXN84ezOf3xRqRh8SVLsXusGT4jNdolMCc8YCs28EfYkr8cqnsJg49igyXQT?= =?us-ascii?Q?MOr4iQ38PpcVcbb3PCJY/mWbR9DHDB9aEtWIrMP2ZA47CpcDCA1ShSYOzKku?= =?us-ascii?Q?tGpyvdW1pwwcQM7AsETPskaGWB+qsQ1dwJiHsPuLrmLm4uIHVnY6y2IeQefY?= =?us-ascii?Q?JDcqNPvybb4Z+FnbkS0OGAenUYwXPv2HiQDjSE9Ts6wSwrvsdBzdvbkyQBUP?= =?us-ascii?Q?oHIQyWNV92IWqVa3U8VEMDNG8G/3JKkuqYhWgrvGeqoIxINpwbHUOx4gK1wv?= =?us-ascii?Q?bzpS8cjJ1QtGrJTEFdpQDgGwfFdJYdEYjdnoxsqz2iijOFRkYsx9CybaXMbj?= =?us-ascii?Q?Ofze8PmiRA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28ac6a5a-4fe4-461b-d3c3-08da26c2ea9d X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2022 13:53:02.7756 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: llb+7EgeOW1LwOecqkLIExm+Qwd7n/kTHiS0liJzg0fm8bHVtaIJbWt3HTUE+Zg2UHwKFHNQzwskeuVKO47vUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2985 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Pei, Andy > Sent: Thursday, April 21, 2022 4:34 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; Cao, > Gang ; Liu, Changpeng > Subject: [PATCH v6 08/16] usertools: add support for virtio blk device >=20 > Add virtio blk device support to devbind. >=20 > Signed-off-by: Andy Pei > --- > usertools/dpdk-devbind.py | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py > index ace4627..cbe336f 100755 > --- a/usertools/dpdk-devbind.py > +++ b/usertools/dpdk-devbind.py > @@ -14,6 +14,8 @@ > from os.path import join as path_join Supporting it in this script or not, it should not be named as 'XXX_class'. And even may not be defined as new class. Maybe go to misc devices for now? I'd like to hear others' opinion. And Stephen commented about using driverctl, please reply to that. Thanks, Chenbo >=20 > # The PCI base class for all devices > +virtio_blk_class =3D {'Class': '01', 'Vendor': "1af4", 'Device': '1001', > + 'SVendor': '8086', 'SDevice': '0002'} > network_class =3D {'Class': '02', 'Vendor': None, 'Device': None, > 'SVendor': None, 'SDevice': None} > acceleration_class =3D {'Class': '12', 'Vendor': None, 'Device': None, > @@ -72,6 +74,7 @@ > cn9k_ree =3D {'Class': '08', 'Vendor': '177d', 'Device': 'a0f4', > 'SVendor': None, 'SDevice': None} >=20 > +virtio_blk_devices =3D [virtio_blk_class] > network_devices =3D [network_class, cavium_pkx, avp_vnic, ifpga_class] > baseband_devices =3D [acceleration_class] > crypto_devices =3D [encryption_class, intel_processor_class] > @@ -587,6 +590,9 @@ def show_status(): > Displays to the user what devices are bound to the igb_uio driver, > the > kernel driver or to no driver''' >=20 > + if status_dev in ["virtio_blk", "all"]: > + show_device_status(virtio_blk_devices, "virtio_blk") > + > if status_dev in ["net", "all"]: > show_device_status(network_devices, "Network", if_field=3DTrue) >=20 > @@ -746,6 +752,7 @@ def do_arg_actions(): > if b_flag is not None: > clear_data() > # refresh if we have changed anything > + get_device_details(virtio_blk_devices) > get_device_details(network_devices) > get_device_details(baseband_devices) > get_device_details(crypto_devices) > @@ -769,6 +776,7 @@ def main(): > parse_args() > check_modules() > clear_data() > + get_device_details(virtio_blk_devices) > get_device_details(network_devices) > get_device_details(baseband_devices) > get_device_details(crypto_devices) > -- > 1.8.3.1