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 570E2A0545; Wed, 15 Jul 2020 12:54:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 953261BED6; Wed, 15 Jul 2020 12:54:30 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2082.outbound.protection.outlook.com [40.107.21.82]) by dpdk.org (Postfix) with ESMTP id B37FC1BEC0; Wed, 15 Jul 2020 12:54:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UXvxJ83mnq7wwpaV2rFuwIHFxMB6j+Yxd7KX077kG4YpvBnRnFX+uPg9IG5CfIF3s5vl+LrcS9sCzdTmc1KZdGKiZmFQngUJ0LmCp7edFhfPzdW0Uwb77S8r4GbcBqlrgSkMoQ9q8Ku/kcUvorBrsEDwTqB3GKjPXug2kMV/lFGEPlnxKu2ztNI6ufDJTf2fO9osDw5knaY75n5YE+dL2I5rX/z6pKwgO6Cq5SazQYo2b/OquUXNc6fMoY1C4oSXN1YraXqZeufr2kUjt0TIPRiuI68bYZGJ9dkAUX47vnABpNQm0TwFnymZ2O+FPt4Z+acSP0ob7dz3M4yFiRCMuQ== 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=vRpNpHdwrYFDdFuA7Vrjhhh75PUBR85pJ+QRQMydXBA=; b=D9Ne/gW/GuKxxA16PRtvQ7mr3Rzk8i5FY3GkX4R6I6p6to6VQ+bnnFMvkOnZbeFArlMcXWOsjJJNgoa9oYvlYbtf11zab6HjpTv5JFFD6KPXm3QEH9GYzWx0r4MF6Xo/5km9HEDbJRw7i8+YmJDivaAoS17YdGXoar0xEJUrb4eD+KiBxVSbiI2aVNziZC0tYBj9mWSQhlo/cFvMaQqIvjJT3MNaNCuQj4J8KhY1FxbTwOwJntcFoTrSK42VGGthdKWvj5o28zOKwhnzZEXbHpEeoIq3E0v3WZJfj/7NNvG/+jxlkksoIy3yPWxHl9x5FCpdeJklSQNIj3MiqpQsLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vRpNpHdwrYFDdFuA7Vrjhhh75PUBR85pJ+QRQMydXBA=; b=s3CW1oVsrMibtLUlZIsGLz/dgD2LiSTI3hHaD716BHddwFjRk2oVmBebHdtuoFnLpNO9z6+0oyT/YN2Ezo6QqI/1vjWzvkwtwkHwluQ2mm9rSa+9axQ8XFb/IJmxm7bRgxFDddLf/swrjkJaxPSK4kuBYUhAxC3hAj7gb8SbycI= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:8::26) by AM0PR05MB5794.eurprd05.prod.outlook.com (2603:10a6:208:11c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.25; Wed, 15 Jul 2020 10:54:28 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed%2]) with mapi id 15.20.3195.018; Wed, 15 Jul 2020 10:54:28 +0000 From: Slava Ovsiienko To: Shy Shyman , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix file path location of HW counters Thread-Index: AQHWWpXU1oHc5eBg7keC8WnvdlZgf6kId0yA Date: Wed, 15 Jul 2020 10:54:28 +0000 Message-ID: References: <20200715105055.80089-1-shys@mellanox.com> In-Reply-To: <20200715105055.80089-1-shys@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 08b99f98-ac8a-49ce-79be-08d828ad7234 x-ms-traffictypediagnostic: AM0PR05MB5794: x-ms-exchange-transport-forked: True 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: yxoE4cq0qe5ghUISmhwuvgjigjn+DDCPSp8orbV4u+qkuiHCXxmF1Wzhh5LRXVTeycD06IlopZG3MQn0pIIjPe1tM/1LgFmg5WDY7F6vFNgjGQWR9IIrgGGmpUrTHdgLqQlJb4yMKZh9qkf2oKNXpaic0qlu+TEZDBGTGIHVN2Kmt1S+yBC31wKhfUCWZ/wVw/hKmSYRGayUxMxfbKOjvkCoZz3G5ZtbWjdau9EBZ2UKbrOwNLQfZRw11UQ/FekixsjknhKxJTOjd5O+bcolDLtWAPQBhdTUniwOtV5rrz5h3PyTITRclyC4+P6KUu5hoRi2nFfF8GiBFK7xJQiNiA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR05MB3265.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(396003)(39860400002)(366004)(346002)(376002)(26005)(9686003)(186003)(4744005)(110136005)(5660300002)(86362001)(8936002)(478600001)(8676002)(53546011)(6506007)(83380400001)(66446008)(316002)(2906002)(66556008)(76116006)(66476007)(64756008)(4326008)(450100002)(66946007)(52536014)(55016002)(7696005)(71200400001)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: R7fMpWRtw4xxtF2PpGQi0v856zmVRB4XCghxSFJYrkSg1YoH76YMZRl584bXRR9y8su8r1X2GtIm4HL21VCvUzv98Qo1kbLOaBw2Zn8TArVTs7JJALsqZRl5McZ55+eoVl9bzOHtYPwYwcZ9w8eEIek7ZjWE8fhZYtXECO4oXJT7npXgyFXomGFSVTo807WWgC4wLJ3AQEY1BGQoKf4YeWOUsP0RqukrIEWVIqJ+Am8rNNermQvSv7HsGZyCnyLly6whvNwvyFbvtSSb+n48m++No0V1nXFk01kOLTy/EJFDytjf3HcxyJFnYAqhLySRrk7xi/zbnFmHut0f0X7HYU+lWzZONxA/YP829ErSsmQNo8twijFP6AKGreVwX+8vOoWC2PpxFnokdd1QWdiz0G/2v+o3waaSTHNvYWzLLdDKzK9MKPt+Fk+wJEEHZxUbXAp4HdpZfjAE3R486E3Be3oIQ3l8dWCkZVyX/Xz0+kw= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM4PR05MB3265.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08b99f98-ac8a-49ce-79be-08d828ad7234 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2020 10:54:28.1951 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oOfiONYJrC/Us5gtjIpiOeEv7qN6+f6313azLIswtzsm0mwW/TQXgEErVprQR7LeJ11N0/tcFozO3E0puDzFU9Dvz9KsBUOG1abjuVTL/sM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5794 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix file path location of HW counters 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: Shy Shyman > Sent: Wednesday, July 15, 2020 13:51 > To: dev@dpdk.org > Cc: Slava Ovsiienko ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix file path location of HW counters >=20 > When debugging performance of a DPDK application the user may need to > view the different statistics of DPDK(for example out_of_buffer) This can= be > enabled by using testpmd command 'show port xstats ' for > example. >=20 > The current implementation assumes legacy mode in which the counters are > at //hw_counters/. > In switchdev mode the counters file is located right after the device nam= e, > hence resides at /hw_counters. >=20 > The fix tries to open the path in the second location after a failure to = open > the file from the first location. >=20 > Fixes: 9c0a9eed37f1 ("net/mlx5: switch to the names in the shared IB > context") >=20 > Cc: stable@dpdk.org > Cc: viacheslavo@mellanox.com >=20 > Signed-off-by: Shy Shyman Acked-by: Viacheslav Ovsiienko