From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50080.outbound.protection.outlook.com [40.107.5.80]) by dpdk.org (Postfix) with ESMTP id 48303CFA0 for ; Mon, 21 May 2018 12:25:18 +0200 (CEST) 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=/R8ivoFBxyWn9a4t+tF0obQJGFms3fi3uM7UGzsYudg=; b=N1HZYfdPjd9bCm0p0wSGm5+CX5sxH3LfFxrLGJGIRElxVtsN/IVW4SWFCKKqYiUoTtbM00fJmeJRXWmjkAQNb2pHmO7X2TDjtiIkBXnOQ2grQLYgseM49MsPLKQLhq4Kh/TKRhe/A7L7bKb+CsWSsnWwazKYUPfB550yW2hIogY= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4427.eurprd05.prod.outlook.com (52.134.109.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Mon, 21 May 2018 10:25:17 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::e57e:5e77:595f:d4f7]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::e57e:5e77:595f:d4f7%13]) with mapi id 15.20.0776.015; Mon, 21 May 2018 10:25:17 +0000 From: Shahaf Shuler To: =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "David Marchand" CC: "dev@dpdk.org" , Adrien Mazarguil , Yongseok Koh Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix invalid count in xstats Thread-Index: AQHT8BKIGJXNUQk/nkGsB2q4NoVyfqQ5wFoAgAA7XhA= Date: Mon, 21 May 2018 10:25:17 +0000 Message-ID: References: <1526804038-27137-1-git-send-email-david.marchand@6wind.com> <20180521065214.4kp72ayjhlizixvz@laranjeiro-vm.dev.6wind.com> In-Reply-To: <20180521065214.4kp72ayjhlizixvz@laranjeiro-vm.dev.6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4427; 7:OyHVKOeOphy8MwETcMlvk/7stPhP+F+UyQ4R47h/lDafEgxqI0BsYHMQbnEdPoSAYX+s3oDBkhPRKX9YUce4KDrnhRTjjiaFr5dGo9OVsrVivKSEXGyYU4IJs6XMQTrWt7qWPIh+9GeVrt+bQq5N/OJrvDIOzTYN2pM60AimA3CdrIdFcKnTW9UQ4ZxmeOp8TbsRzE0PkjnsIJfDBm6kd7DcN8pKNE87e8BjlAHuYMesH0//WcEwSrXb+0ZXUuBq x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4427; x-ms-traffictypediagnostic: DB7PR05MB4427: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB7PR05MB4427; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4427; x-forefront-prvs: 06793E740F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(396003)(366004)(39860400002)(346002)(189003)(199004)(476003)(81166006)(76176011)(8676002)(7736002)(102836004)(305945005)(478600001)(186003)(7696005)(6506007)(5660300001)(229853002)(486006)(4326008)(26005)(446003)(11346002)(99286004)(81156014)(107886003)(2900100001)(86362001)(68736007)(25786009)(8936002)(6436002)(3660700001)(316002)(105586002)(110136005)(54906003)(97736004)(33656002)(106356001)(3280700002)(6246003)(74316002)(53936002)(2906002)(14454004)(66066001)(5250100002)(55016002)(6116002)(3846002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4427; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 87TfbNrB8sO101tusR78vUNunayNanErZrZFrGiQ3UeePZ5GQ8zaVZ+WxarrvzjzbS1DUDyXin3Pk62exwqSlMmGvrdCt47syWCNSDnKOf1fSVfR3ovGFn8TzWtlZGrSQc9R/4Yr3BqM5qjHnyWfqXhsogSRaUU4rTO3krZwYAZjutTjupKwqzZ7dIRxiMvU spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c5ffc302-388f-4844-b48e-08d5bf0525c9 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5ffc302-388f-4844-b48e-08d5bf0525c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2018 10:25:17.1729 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4427 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix invalid count in xstats 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: , X-List-Received-Date: Mon, 21 May 2018 10:25:18 -0000 Monday, May 21, 2018 9:52 AM, N=E9lio Laranjeiro: > Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix invalid count in xstats >=20 > On Sun, May 20, 2018 at 10:13:58AM +0200, David Marchand wrote: > > With the commit af4f09f28294 ("net/mlx5: prefix all functions with > > mlx5"), > > mlx5_xstats_get() is not compliant any longer with the api. > > It always returns the caller max entries count while it should return > > how many entries it wrote/wanted to write. > > > > Fixes: af4f09f28294 ("net/mlx5: prefix all functions with mlx5") > > > > Signed-off-by: David Marchand >=20 > Acked-by: Nelio Laranjeiro Applied to next-net-mlx, thanks.=20