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 2B555A04BC; Thu, 8 Oct 2020 12:54:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C13801BF3A; Thu, 8 Oct 2020 12:54:08 +0200 (CEST) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by dpdk.org (Postfix) with ESMTP id EF1A01BF33 for ; Thu, 8 Oct 2020 12:54:06 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 08 Oct 2020 03:53:52 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 8 Oct 2020 10:53:59 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 8 Oct 2020 10:53:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XKq7J5KaGW8fyRKuvkEkoJcXzxPpu3XmJUqTODP2944WMEbFFk9elSB6r8Pa4FsIHzfXriIU66tDDK/cDveh3jLRJLGSMGKABJK2hNMle+pdUDWWxCxNkZ24as+OJH529jUM/7n7MoMVD4BwTjw/dJbLzKynxzQJBKpiVGiPelHcBKMU+gpb4PXq6LiYMWQYcWRrCk3kJA5Thce2Yd9glMAs4VozKWpJve28ErrW8QvG68plwBCuw/UeAKsId2dRGXqbKwFQ7KD9HrMiqK/lZaGoyMoOceQ2UyAUY6mdExV/t89vcIfuM5xNipCuzWS73ZGFOxRXpSw+3TPGnS1m1w== 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=0tj00e1RKhC0HF5zoH5o7euWionE9FPgHOVZRlRbI/Q=; b=hjheRfIkp/NjETsCiF1zA7gsrrK9QV+YLVJpyboykTPgt+AG9m/7Wypji2Fj5KvJtkON8eiKGwyPW0hEPqtBNLrZR/eNTAtDaxNMB1HLQ0fY7aBChNVty2Z+tvjDUI1HXiwWrDukinL41tmwqQFRRy2uiJyVqUFygpUvggh1SeLW3sz5I5rLdEC7M5HOG8XkkibIaYKY04yQfZmQU3YoaYbGUXwObXN8REGkvcgUmd7N4bBOjMFulhB+o7XG0JDsUdfguDemBI2f5jZoZTTh1FKXJ1lc9bKCZkn1dFxH2xRT1mO49KxW/1eCv1coJIND+7hIofBInNqg/ZuB8stD7Q== 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 DM5PR12MB2406.namprd12.prod.outlook.com (2603:10b6:4:b7::23) by DM6PR12MB3146.namprd12.prod.outlook.com (2603:10b6:5:11b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Thu, 8 Oct 2020 10:53:57 +0000 Received: from DM5PR12MB2406.namprd12.prod.outlook.com ([fe80::c806:9c0b:4af5:a686]) by DM5PR12MB2406.namprd12.prod.outlook.com ([fe80::c806:9c0b:4af5:a686%6]) with mapi id 15.20.3455.024; Thu, 8 Oct 2020 10:53:57 +0000 From: Asaf Penso To: Kalesh A P , "dev@dpdk.org" CC: NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "ajit.khaparde@broadcom.com" Thread-Topic: [dpdk-dev] [RFC PATCH v3 3/3] app/testpmd: handle device recovery event Thread-Index: AQHWlvc+I3YVhn+30k6UJEjhGxsCy6mNlABg Date: Thu, 8 Oct 2020 10:53:57 +0000 Message-ID: References: <20200122101654.20824-1-kalesh-anakkur.purayil@broadcom.com> <20200930071258.22457-1-kalesh-anakkur.purayil@broadcom.com> <20200930071258.22457-4-kalesh-anakkur.purayil@broadcom.com> In-Reply-To: <20200930071258.22457-4-kalesh-anakkur.purayil@broadcom.com> 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: [217.111.27.204] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: edc1632c-f716-42ed-b100-08d86b787536 x-ms-traffictypediagnostic: DM6PR12MB3146: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PEnEVPrSbuwUxdiMsv3BAjOiCOYe46RCSqwikvswspWX2ZW83jQEmJmxXdsao5seyE0LShTEbA/3QdY98OAy8VvosDoq3rjkTfrC/M9WYH1VC0D+XVdXWdpHPn57XZ2v+UiQEjj2UTYqs7BbIbrmXVFFGCi1cUmPcS5t5/8uAVc8Lo6rPH70htaKGgxYPt36hfLJUgGs5+RGgiFYVQXl81vgK+goxy03itNbh+Xtb/Zy50VGyJ3/PHqcZLwPzWeUQYSL21Qut0rTI5aAF78fYozzNtIBGtDSEl1qi+HqmLE1P9iqxWqgntLGjI6GW2iiOBEbc8iogYvSzmPU201XNA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB2406.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(346002)(366004)(396003)(136003)(4326008)(83380400001)(86362001)(66946007)(26005)(2906002)(76116006)(186003)(110136005)(54906003)(5660300002)(316002)(55236004)(6506007)(66446008)(71200400001)(52536014)(8936002)(66476007)(478600001)(64756008)(66556008)(33656002)(55016002)(9686003)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: CU86VmMZwVvKnLk5bBcVBEAOkCxf9OJWMtwaGPlpeCSNqjpPxDQJULRjQLdcBDR4Dp8I5Lk/ggJmujxG5pj3BYPuTtwhaZm7CqMpCoHQd+PEbJQm6JxGcubMM7DIUoeANf1aVscfLbMTsVIgf1aKKWayQCFKKW9WzJcWy4f0uitNEg2XPcPGTLHiCQ0T1UrHEffuAhGzxFkqKmSbDY/ilieIvlotRv3DwVWYaFihmn64JdT2iAx5tNC0FY7cyIzFS8dNdKsj1cf5Y9olMbHWSj5D7MqreDm/h9cpwu8YM3IDjd1mFFbsAFZGT8kpbk00bSktHG0wSSNM6jQkAFy7/UK4fmYrGVHm8+g/q4uBOWEGrYut6Q7zP4RFLFMHluCeQ5spsv+59UzcOgIKMtetKu9FHWk8nsaa+kl3dQ8v18r0JDsT0FKyWXIWZYzLRHqsq3TJpRuDLDSVLF7okHYqNW44EpUEoUhthzTTDhcWVhGP/PNOC4iyhmPJeGKM8C/xJfOZkzs/Fx/Nus8duW/tHTfRZ9WKMd05aI/8dHApovFPf0JEi5hG0OH9XK0/Q5MuKnkzu0pUBTCksrpGaPKlCp9kEoCKgfOlLFGAQbDHIJkip54i0wHpA2UAzv+sbRWrOvlQk+2tvkHfrhCEieZfSw== x-ms-exchange-transport-forked: True 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: DM5PR12MB2406.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: edc1632c-f716-42ed-b100-08d86b787536 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 10:53:57.8631 (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: +fyo3OYb5x4LptlHgF9zucSIi1nr/zj8B0S/2NqwYAdTDbAT7jZRwghjf2qIlOaz4odZ4dTIW8Ve2G4WMUzjOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3146 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602154432; bh=0tj00e1RKhC0HF5zoH5o7euWionE9FPgHOVZRlRbI/Q=; 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:Content-Transfer-Encoding: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=b6/F/AhAvdOdjQwE1Z6qQfGBLw0ZyNHf4YBcLGT+ra3NXvqGVfWGdpjRqj8RAEsKL aD1mOuZjGZIANBWx+fojQwIVITJ2DBZmX7tNBDaYMPrmuKL3rnaVLzu8ZegDkfcaW2 CM7pK+SAuYTT07BS1iK1DbaZCWX/sZC6d/C914c34LYRmaT5kxZuxFprGK2KlL2j9D milxfTtBZ7gXzADcbkMKRrl23NK5bDUJmr0TlIGkynPuEFjCA/R48H9ZyBGMBda8zu 5nb6oNFrBIjA1S90j4ea8VWHOoe4UhfIQz/gwO3J1tEkscCkNsEFlG2bf67vqvfNiA pV54iKq54C1Uw== Subject: Re: [dpdk-dev] [RFC PATCH v3 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" >-----Original Message----- >From: dev On Behalf Of Kalesh A P >Sent: Wednesday, September 30, 2020 10:13 AM >To: dev@dpdk.org >Cc: NBU-Contact-Thomas Monjalon ; >ferruh.yigit@intel.com; ajit.khaparde@broadcom.com >Subject: [dpdk-dev] [RFC PATCH v3 3/3] app/testpmd: handle device recovery >event > >From: Kalesh AP > >Added code to handle device reset and recovery event in testpmd. >This is an indication from the PMD that device has reset and recovered err= or >condition. > >Signed-off-by: Kalesh AP >Reviewed-by: Ajit Kumar Khaparde >--- > app/test-pmd/testpmd.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index >fe6450c..1c8fb46 100644 >--- a/app/test-pmd/testpmd.c >+++ b/app/test-pmd/testpmd.c >@@ -380,6 +380,8 @@ static const char * const eth_event_desc[] =3D { > [RTE_ETH_EVENT_NEW] =3D "device probed", > [RTE_ETH_EVENT_DESTROY] =3D "device released", > [RTE_ETH_EVENT_FLOW_AGED] =3D "flow aged", >+ [RTE_ETH_EVENT_RESET] =3D "device reset", >+ [RTE_ETH_EVENT_RECOVERED] =3D "device recovery", > [RTE_ETH_EVENT_MAX] =3D NULL, > }; > >@@ -394,7 +396,9 @@ uint32_t event_print_mask =3D (UINT32_C(1) << >RTE_ETH_EVENT_UNKNOWN) | > (UINT32_C(1) << RTE_ETH_EVENT_IPSEC) | > (UINT32_C(1) << RTE_ETH_EVENT_MACSEC) | > (UINT32_C(1) << RTE_ETH_EVENT_INTR_RMV) | >- (UINT32_C(1) << RTE_ETH_EVENT_FLOW_AGED); >+ (UINT32_C(1) << RTE_ETH_EVENT_FLOW_AGED) | >+ (UINT32_C(1) << RTE_ETH_EVENT_RESET) | >+ (UINT32_C(1) << RTE_ETH_EVENT_RECOVERED); > /* > * Decide if all memory are locked for performance. > */ >-- >2.10.1 I think you would need also to update parse_event_printing_config function = in parameters.c file. Do you think the release_notes_20.11.rst should be updated with these new e= vents?