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 7C0CDA0471 for ; Wed, 17 Jul 2019 10:08:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7EDED1DBF; Wed, 17 Jul 2019 10:08:29 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 721001DBE for ; Wed, 17 Jul 2019 10:08:28 +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 x6H84s9I028861; Wed, 17 Jul 2019 01:08:27 -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-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=vI+OXh5gr5ceFXougbmSmeBkxn1CDbE/SK+TaJNisrU=; b=vMdY7rWjRNOL00ys/td20u0Q49qSWZYaINZ7lDENAZxodaZoWNlrc8sHAlo1G08cytfB G4+Pm5A3a+NLqJkxsrSyNqXYgNOrAFMGr5Q8is0R5qI+BiVZenUtu5JvQwTf56qXnSxq ZgWIyOjF/ADi3pMcEzZhK46Ut/2/MVum94z2zY/ouF6dUhtSmF0PIf5j9uSncfnZWRaL /z1ClfCE6ZNF4iPa3omQgxzg3CB4SIDD1ZrAhZkMwt6g81aERy+QUwpqraD1hQhiMkPW D3ymu0xpnSiIgfLw05Jka1lYxhjOqxa5/dn4HaJC2Fhpmx+O3saoMmgjEIAjKoJx4C1b dA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2ts07vfasx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 01:08:27 -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; Wed, 17 Jul 2019 01:08:25 -0700 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (104.47.33.52) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 17 Jul 2019 01:08:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9pjs/x1X40mRwfyckxvtjN627EbTJIpHM/+0r1UZhdzR8iJe6ShVC+DqGpzmrtbJgm+8l8XgahOwNoUZbT3gddf3cxGKK9uTjygJjENyM5MMePtFtzrfXxttIzls+1pp1ioZACeeAR8dAqZ868i6I9om9jfk0ZUyMrt+MkqTrtLe3W4licqC8VqPjmCMHz/IYmk4KBbgktC70C7Fa4cNy96owNSnS7YvV/ZGq4/y74opGjSvflJmte2WeDD6epa5e0EmeGJD8TD9XiD6sV0LmrvpNTMYpMGdMVrCw81rD4fIlnfiZlCujax92XAomIUomHZQ5vPZ0IN/HLsDtqicA== 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=vI+OXh5gr5ceFXougbmSmeBkxn1CDbE/SK+TaJNisrU=; b=Nxt8DZg/jpcjPhUMBXasQXtEt/71X5JfK8IoYXpEx1PcPUwL+X41caGU+LLkVZz4dSunGCpqDYHlzsaB5+Fek/k5oWSLC87hsxhRlcuEVXUPVC7PN+jI6+x/FRQ9t4G/RmfPdnLq8iKXf2MGC+obI8bIKmv4HaNRv2X4PesymuzoltSnjc8zaJwHjvbElwc1ndiwjY5TMDTQH63Qopw7NTDO5n+axjZapQgNT85znQD9vpP01brFKyKTavvHGjZCg1ELl3J/izyTC5T2A9dC92TNbb2BPGU1bv9wo9MDF0Qd6beWzLAZyBJGwLV6X3TKDPl6kl3nDBBS4BskT1cXVQ== 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=vI+OXh5gr5ceFXougbmSmeBkxn1CDbE/SK+TaJNisrU=; b=nOLa71U+tirdZkgSfJJT4ws30YA9AX2UrSOLxCml6COGNnWdMA2/RXu34OHfRHV+QbkgEFbUP45G7qcfKHv2qBSVwuKUYRvvvucmts3a+FlcFg/p1SrOKH0fntm0fLJ7sghQHmk6fWjZECQTXjovfAbMTzjPiEdNm3Lcgxr8qTA= Received: from DM6PR18MB2427.namprd18.prod.outlook.com (20.179.104.21) by DM6PR18MB2570.namprd18.prod.outlook.com (20.179.106.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.11; Wed, 17 Jul 2019 08:08:23 +0000 Received: from DM6PR18MB2427.namprd18.prod.outlook.com ([fe80::657a:5df9:1fee:f4d4]) by DM6PR18MB2427.namprd18.prod.outlook.com ([fe80::657a:5df9:1fee:f4d4%4]) with mapi id 15.20.2073.015; Wed, 17 Jul 2019 08:08:23 +0000 From: Nithin Kumar Dabilpuram To: Ferruh Yigit CC: "ferruh.yigit@linux.intel.com" , Wenzhuo Lu , Jingjing Wu , "Bernard Iremonger" , John McNamara , Marko Kovacevic , "thomas@monjalon.net" , "dev@dpdk.org" Thread-Topic: [EXT] Re: [dpdk-dev] [PATCH v2] app/testpmd: add device related cmds Thread-Index: AQHVNyBlNTojwTpUxEKlZxQ7OCUWCabNms6AgADkdoA= Date: Wed, 17 Jul 2019 08:08:23 +0000 Message-ID: <20190717080805.GA94636@outlook.office365.com> References: <20190513112112.7069-1-ndabilpuram@marvell.com> <20190710130704.131936-1-ndabilpuram@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::13) To DM6PR18MB2427.namprd18.prod.outlook.com (2603:10b6:5:180::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a2e3e276-6390-455a-72ab-08d70a8df01a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:DM6PR18MB2570; x-ms-traffictypediagnostic: DM6PR18MB2570: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 01018CB5B3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(396003)(366004)(346002)(136003)(189003)(199004)(7736002)(4326008)(6916009)(6246003)(478600001)(66476007)(66556008)(305945005)(5660300002)(71190400001)(66946007)(66446008)(81156014)(64756008)(66066001)(229853002)(81166006)(8936002)(1076003)(71200400001)(6116002)(6486002)(3846002)(53546011)(5024004)(256004)(476003)(8676002)(2906002)(11346002)(446003)(33656002)(14444005)(6436002)(52116002)(53936002)(186003)(99286004)(486006)(102836004)(6506007)(386003)(55236004)(68736007)(76176011)(26005)(86362001)(14454004)(25786009)(316002)(9686003)(6512007)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR18MB2570; H:DM6PR18MB2427.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: Jx5BEjHy9KYb2NknC5bnBSPxmFCmeWkC1P39Ml6nDJu8yzkaUgGtj7cZ7n/oyFz4ROWiy6x1aKhfTVaAXpHpeoosoQckLWT3PV0xbKbEtyJUSxS5lAJwEX9D7UgRKmZkaBDPJg+ZbRx7rWZ8QVKm7cKB/3zictmLMVsOemj5lBRT/m9h78fpgS9Mg6FDjr7Oten6Q+8st1iYrusYEqQvlYtcQioY8RW8CArdOJy1uQ4XesaeF9P13h84a06AtlxUGA8/wmuAL3k0dZXmzV9Tf6EI2aBZcaVp/Mw0fpZDehHGYC2gQD+mk9+Bkt4Bdv5muWuXphA9mUtbtKFWCjCn6rs7Z77WbVqIvKv4aCoe1ktfu1d698KaOE0edJMHILx2VAVc9NoqyHQVmtP5+DwVCCGtT3vddgO0FRz25FY+Tbo= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a2e3e276-6390-455a-72ab-08d70a8df01a X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 08:08:23.3914 (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: ndabilpuram@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2570 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-17_02:2019-07-16,2019-07-17 signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: [PATCH v2] app/testpmd: add device related cmds 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" On Tue, Jul 16, 2019 at 07:30:23PM +0100, Ferruh Yigit wrote: > External Email >=20 > ---------------------------------------------------------------------- > On 7/10/2019 2:07 PM, Nithin Dabilpuram wrote: > > With the latest published interface of > > rte_eal_hotplug_[add,remove](), and rte_eth_dev_close(), > > rte_eth_dev_close() would cleanup all the data structures of > > port's eth dev leaving the device common resource intact > > if RTE_ETH_DEV_CLOSE_REMOVE is set in dev flags. > >=20 > > So a new command "detach device" (~hotplug remove) to work, > > with device identifier like "port attach" is added > > to be able to detach closed devices. > >=20 > > Also to display currently probed devices, another command > > "show device info |all" is also added as a > > part of this change. > >=20 > > Signed-off-by: Nithin Dabilpuram > > --- > > app/test-pmd/cmdline.c | 88 +++++++++++++++++++++= ++++++++ > > app/test-pmd/config.c | 73 +++++++++++++++++++++= +++ > > app/test-pmd/testpmd.c | 45 +++++++++++++++ > > app/test-pmd/testpmd.h | 2 + > > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 64 +++++++++++++++++++++ > > 5 files changed, 272 insertions(+) >=20 > Can you please add new commands to help string in 'cmd_help_long_parsed()= ' too? > Sorry, I missed that, will add it in next version. > <...> >=20 >=20