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 8CE71A04BA; Wed, 7 Oct 2020 10:36:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C01B01B3C8; Wed, 7 Oct 2020 10:36:25 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 738C14C9D for ; Wed, 7 Oct 2020 10:36:23 +0200 (CEST) Received: from HKMAIL104.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 07 Oct 2020 16:36:22 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 08:36:16 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 7 Oct 2020 08:36:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6rLesasp15KXKDoh3yp6tADTghF6o+h2tEZZ5l+AvI41q323UXXuKvZo3fFxZ6dfjA576TIZxhr7aTul2EkL0y6Kia9vmlHQNtsNDr0hM8HZLA7W3IZXN1TLzIYEQdxlc0u0EGG6yQSxNTzj6I56tjtvMVGygEJ2/AHQNIG/mn2UllCGsGUURnUQMUZN9y9dtzcxxxCVzKHyd3OYFz9MKffruL4OlgjMLySelqQvx/Av2UAhiCYhutYQjUYujR0Zb9vI5hG9ucesNd7RUJO1rs7tSH1RTPfdmWy4OWzM38Xs0JB5aqtY2NDXwSeoE79gc9rGMS1Pg7regw+3C17uQ== 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=1JmrnuAFG79KHDXaD8vTcctbq82duGSpm38kP5H4TlM=; b=MZDVKBNb4kn4Xy6LLp9rOVEDe3xpITLFnD/Cq1LllX2er9NjEseLEe13PZyduW816XRuG6ft3WFoM8UoqkGheLVwk4iXsLCXPcxJizQ+T9uJ8CuxV9FdZdkUz33E1yjG/A/x0kbsv39GT/zV0cYsAJtIkA69assx+LVJEN87BiCK5ECaeeXJJtjiHu4/0gHhvGEfh3DAy8U/gAJ0ogmTK3wegAesOqA0fs+YPYD8du7WMlRDdr6Qr8mqncBc8MtAVTGb2cx9/1liHO9bZhF1ScMc+E/uYrJJY7xDkVHR3bJ+mGDsdSrmGuKGV2nLEUo+WMRkgOl9NsVsWx1Mki4RLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM5PR12MB1161.namprd12.prod.outlook.com (2603:10b6:3:73::16) by DM5PR12MB1258.namprd12.prod.outlook.com (2603:10b6:3:79::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Wed, 7 Oct 2020 08:36:13 +0000 Received: from DM5PR12MB1161.namprd12.prod.outlook.com ([fe80::b0b9:2a96:7ad7:9a93]) by DM5PR12MB1161.namprd12.prod.outlook.com ([fe80::b0b9:2a96:7ad7:9a93%8]) with mapi id 15.20.3433.045; Wed, 7 Oct 2020 08:36:13 +0000 From: Ophir Munk To: Kalesh Anakkur Purayil CC: "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "Ajit Khaparde (ajit.khaparde@broadcom.com)" Thread-Topic: [dpdk-dev] [RFC PATCH v4 3/3] app/testpmd: handle device recovery event Thread-Index: AQHWnGTo4ExrB7CwWUyohjoEvcEhqKmLzuYA Date: Wed, 7 Oct 2020 08:36:13 +0000 Message-ID: References: <20200122101654.20824-1-kalesh-anakkur.purayil@broadcom.com> <20200930123314.27669-1-kalesh-anakkur.purayil@broadcom.com> <20200930123314.27669-4-kalesh-anakkur.purayil@broadcom.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: broadcom.com; dkim=none (message not signed) header.d=none;broadcom.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [84.229.96.120] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7c24f1b3-2675-42d7-9aba-08d86a9c0ce5 x-ms-traffictypediagnostic: DM5PR12MB1258: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /qnzJqyjoYHkNA0Z/u3ydNM7TvCyjAQEIqtraVsWbpaJGjcEgk9paskc0OBJ7G0/kgvF7pXRTT8Qh9PGMQAjqL6MQTt8eP4WNr4b8Goh9G/EWJGMnOnwDelmw8pHhbR40FuTiUgtsmJfOecwUGExbU5k38G0EG0r68Tn7KPJgxnXLOJwUcsyweiReS8NDXM2NFldgVt2sfkOlD80TsS0rj5Pw8VTNE+SQFJHnY1QcUMnwYNQDwDVHJLBdzqnfTEGESao4+2oE+CyDQ7083Vdg0spTER8McjnEDt3yGQ59nREjOlFaZN6B82e/Mb66gEx05dyLGllEUvbceC+OlvQTQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB1161.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(2906002)(33656002)(8936002)(8676002)(83380400001)(55016002)(66446008)(64756008)(76116006)(66476007)(66946007)(4326008)(66556008)(316002)(7696005)(9686003)(186003)(52536014)(26005)(5660300002)(71200400001)(53546011)(6506007)(54906003)(6916009)(86362001)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 3gB3qtSY9/cmYKZgWASFj3DXVE6rjKfPGyOhQ7GTFCwDrCWxc9YspOoowFkbyvTe7/hhgqq+k8Ay1Q1HH5mohTqT2qbg3pveXBVz0ri5wCU5AnmiNNO9co9O+6xUObJmyEDASoe9RgGPB1HOa/tMYv0VnfHzlK/zTr6ecAqXIzUBP9gWi5RWcJCIyTV3WGbwje0XS7ebwXFIWXSCnwTb5HNJ3egmdQipBphB0Q+UzmxsWtaTccQXH1w0cWG3wSwMPLo+sIHjmW45MRpmthiBzF+30xzKt9mnR7eVcyxDskFa2mC7FoWKK33BgerYD1erj1SeeuPgT7J/9QNS2CszhCa6eMWe3hogY4ibUUGDXYakahM8CM7t5Gsq39+OJ9KpS3ZcSuZXt9FY7dd/fI12qMDA0Y4boNsE9zI4fy7nvQPr1ZsDJQNoR9p0lS1u9Hr0ObzQV6mCusgoT4FIWZLmcJoWKwERGqgRUa1yA1SIHZJdjF5gN2ZyEmtzuzDJxhgW0Gvr/opfM00cqLlfxPJqVgWNtDlovCvf5zX7eS3KU3X8JhYIzhUj3rv+FldfKi9OpVW5D9KXxo88YIN/NsaHxmB9NjqiizJl53zNcvvHmHTL8BID7a3arQkxQCM5ms360XXPFIElLVYFW7W6gv0r1g== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1161.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c24f1b3-2675-42d7-9aba-08d86a9c0ce5 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2020 08:36:13.5801 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nEaC95suWLxSApEbrN2iIG1QwveAWXbhM3gQcIzFl8VrT0HRA7v4oRysF0zebIJo8Gr9GX5U49mgpPtn3UOljQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1258 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602059782; bh=1JmrnuAFG79KHDXaD8vTcctbq82duGSpm38kP5H4TlM=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:MIME-Version:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=IAcU6MYC/THuWllB2z6Am/j5IAuASYckbQ1MKppN9cnUrdE/vY22ZJTpjiW32T3/q 1SJtTcWIuQ5ggrTJA31niZUkTcjS9LzrIXKvCsdIcxpkV1IjaUgW6jx1qAIZpRwY6+ H8s+XRmf0UMwKSkxupOgGftAhUaTxcJOwfeEQKH99oZSARsWtw/nd3GLqJG+Q5EcUw VgWzsAVUqd71XfhJZfEYyihrujuYQRuBc1avE74yR4NzsSmqpZhoaIotQZbWtMZXTP 47yS+yClKPGnM21uYr1lOQBoaMEz+dHUGN6XeuxLBpF5rZGkevrXEasqPafo25M5+5 hn1N6ES2ARnOw== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [RFC PATCH v4 3/3] app/testpmd: handle device recovery event 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" QWRkaW5nIEZlcnJ1aCBhbmQgQWppdA0KDQpGcm9tOiBLYWxlc2ggQW5ha2t1ciBQdXJheWlsIDxr YWxlc2gtYW5ha2t1ci5wdXJheWlsQGJyb2FkY29tLmNvbT4NClNlbnQ6IFdlZG5lc2RheSwgT2N0 b2JlciA3LCAyMDIwIDc6NDcgQU0NClRvOiBPcGhpciBNdW5rIDxvcGhpcm11QG52aWRpYS5jb20+ DQpDYzogZGV2QGRwZGsub3JnOyBOQlUtQ29udGFjdC1UaG9tYXMgTW9uamFsb24gPHRob21hc0Bt b25qYWxvbi5uZXQ+DQpTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUkZDIFBBVENIIHY0IDMvM10g YXBwL3Rlc3RwbWQ6IGhhbmRsZSBkZXZpY2UgcmVjb3ZlcnkgZXZlbnQNCg0KSGkgT3BoaXIsDQoN ClRoYW5rIHlvdSBmb3IgdGhlIGNvbW1lbnRzLiBJIHdpbGwgYWRkcmVzcyB0aGVtIGluIHRoZSBu ZXh0IHZlcnNpb24uDQoNCkkgd2lsbCBwdXNoIHRoZXNlIGNoYW5nZXMgYXMgUGF0Y2hlcyBuZXh0 IHRpbWUgYW5kIG5vdCBhcyBhbiBSRkMuIEhvcGUgdGhhdCBpcy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