From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 72FA2A0C43; Wed, 12 May 2021 13:52:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 59F654003F; Wed, 12 May 2021 13:52:24 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2050.outbound.protection.outlook.com [40.107.220.50]) by mails.dpdk.org (Postfix) with ESMTP id 6C35C4003E; Wed, 12 May 2021 13:52:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DU1jEBdw7Xd2i7yxl+x7+YV/3VC6lyNrv6R3toIPFjetEFFyHsPkZe7N0upQRksJM3vD04MHkNQIFEfTmVgyw9HX9t8cw4GVIps43derjLCrjSw9vsIjAUWKs4xsSsjkAkASEJQrIaJoXrFlL1GB3Ye8+RATJajJSnLdZv6CZ1ut95cr2pQyXMg//XFdR2vI/tM3Y6ZaIWsKj4ejwlViwNiFY8fuLtJfpm9dtPxHB6ARfqgJRSSUuiANC7GXaxzcbwL8RUl4ugwS23penbLkNd9VAzPIrOUxR7eFWui29ZkelVERF5CvXSUU6MU1nVGRgrqFYXgsCU1DjvNS4Cr7Sw== 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=0WLnEbam4ZcuiYg7g7a1qSV2JYZ/uAlMgn3dwdOw8DU=; b=feuGYD1poItyYuMy+Nen+Obn7A48A35LlqIBNuzFVVngR48pYA8QQhJCbUg0RO8SWkdV48A5N3M/0Df3G6oz6G8/X5eDrUqI3oLUB7PopqSBrrwRpMIdOf1mDXde6LKoDsswB5L/bV++NSIH1euFSpuGpFSyFF70NkuqQy6fSb2cbfIvI9UuDm7xcUgIc5/kgD8ul9ia8D4yF+0fXhXlriuDJhslKTXaQNfc4aLgSkvWYN66k+jMkuZXCy/EheC4RXH0gbe4RfKDkVkXUn1LSJoSl2q2LeUUa1R0tDRxaw9IdJKELbSFHwGKGrXe6vtLcf1pzikzUr98M2MVvws39w== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0WLnEbam4ZcuiYg7g7a1qSV2JYZ/uAlMgn3dwdOw8DU=; b=k1WbZNwY48ukxQ3Rk3WOcQ5k4ZvygPB4/7EAZitAMr90CFjN4TG+t8goYmaBwjIlbDQp4lsLijGRYG+aLKH38XKqhAC8WZNAE/kfeDrVTJ2y6h+nxL6v+L50XGHcd4pOgD5qKu226W/SC9guV6M8ezvkCIOQzEY/wL0J5w54JFS8eRAcUHKOCTlztDsQdFSnXrt9G/HIn/oRFz4amlDIcybE78Yku9cg+A9sexKulQduyunSFBAjdjNRXFY+L45mWy6H8KUIYFg+/WI4+wSsIhAKtNVDFYHaXR/0mMCNMZNr2Rk0w3Oi/l+UjIDEcdgn3bKLEfYn/YegZNL9LwHFeQ== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM4PR12MB5071.namprd12.prod.outlook.com (2603:10b6:5:38a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Wed, 12 May 2021 11:52:19 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4%6]) with mapi id 15.20.4108.031; Wed, 12 May 2021 11:52:19 +0000 From: Matan Azrad To: Shun Hao , Ori Kam , Slava Ovsiienko , Shahaf Shuler CC: "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , Raslan Darawsheh , Roni Bar Yanai , "stable@dpdk.org" Thread-Topic: [PATCH v1] net/mlx5: fix meter flow id Thread-Index: AQHXRxiUVW9kNBoqbkagT787QjRnWqrfvDqw Date: Wed, 12 May 2021 11:52:19 +0000 Message-ID: References: <20210512102100.23870-1-shunh@nvidia.com> In-Reply-To: <20210512102100.23870-1-shunh@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [79.179.12.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6dd9e3d7-af8d-40be-a441-08d9153c6583 x-ms-traffictypediagnostic: DM4PR12MB5071: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1091; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dtfiMVt1YovjARaFlPCaTTjK6x5ApwsqWP08le4p3FlL114d/LHYFlY18rHX52j90cv9J2ZeXjQ5M3rOiA8OKppNvGreosbpm+4jbw3SS4vHOgDK4zzHj3WOi+Pd6AV7Wgw3aXH3w6RLGrlo/nnw64d+KWFjlrzjDxH13Y/cfbeBKyOJ42t+Gg06/G+/ZYwqJuy+2xZiDKkbUmRBh3ROIe+VNuAv+0ku1c9mzrjFWk/MCbkU2tCmmPnHrTj9FXsvsG1XlJEVhmhIRsqagxzrEnFbjQSbsjXlVIicdUHPiKGiLh3cNcWOcLPtZkJToYdeCDKWlCMiAk71ag5BaCfRKYWWBKBgWo2djzOahwj0T0xCP6cs4UriY5De0puAe/TCxg2MvT6d9677vHWEvQunyRwXzSRIV2zRHxRHc18UNGeeWoCdyk/KIel1+vFJHEnwSsCoCBLRjHs2w2+37kOilkG6rCBPtQvV7caSLNESZttuq+koa60+tWu1BnW/ueSYsg3VJASz5ZTsxxQiyT6fCdnbYsjtNEw3GEw6AT7pt8njFmGNiymnblXNvfkjaMnzSa+rzLH5gLA5Q/hPe5UuLGIsfkLtAw+IqI2VEsaIup8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(376002)(39860400002)(366004)(396003)(55016002)(9686003)(5660300002)(4326008)(33656002)(110136005)(316002)(2906002)(86362001)(478600001)(54906003)(6636002)(6506007)(52536014)(71200400001)(186003)(66946007)(66556008)(64756008)(66476007)(7696005)(4744005)(76116006)(122000001)(26005)(8936002)(38100700002)(66446008)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?WiTOcJ9SjE6jMHj8cF/Ixm66HfG/FnT74t6YY4zPH4YivMqebkzscc5NTE+O?= =?us-ascii?Q?M65z9et5RwDICui+bErrHroRqVJAD2QTfGg8uJFIgK1CZRyyU4hQpi0TqVyB?= =?us-ascii?Q?uNAeCvhwgTjHOWFSuIZqe1vE2vOgQC+YJKczbzz8acqytRjYi/fpAxL/n29i?= =?us-ascii?Q?mLB4JBqS33Cetj/pFRqfJcGjWEK3zayGe6czgzDZHtbI3zl6jdytbjLaFpLS?= =?us-ascii?Q?8z1oHIk04dhzzcBOZYXiDAbglbs0AgRcgybizxTc5md9zgxNAL96vk5xmZZq?= =?us-ascii?Q?WZ1KRrFdwMZb4Ay2lDPIO5k1FOHBT+IiAYxjr7P0tLvBUW+3NR8g52yzBP1P?= =?us-ascii?Q?LdhkvB9BHyQ8PjbnMJ/XEepjSNpN0lioj8cTpFLa2/k+16F4GpDmfXJq8qUf?= =?us-ascii?Q?InXaha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?= =?us-ascii?Q?4N4=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dd9e3d7-af8d-40be-a441-08d9153c6583 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 11:52:19.4335 (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: 6l5aqxJeWkoW1UPA58Uqf+SOuz/EmrCAljwdg7wXTRvXyKhIW9P7U/mpV8NJUQoULX3pzD1CxY6oVKPxHTlu2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5071 Subject: Re: [dpdk-dev] [PATCH v1] net/mlx5: fix meter flow id X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" From: Shun Hao > When getting meter flow_id bits, there's an issue that not handling corre= ctly > if flow_id is 0. >=20 > This fix this issue that when flow_id is 0, treat it as 1 bit. >=20 > Fixes: 83306d6c46 ("net/mlx5: fix meter statistics") > Cc: stable@dpdk.org >=20 > Signed-off-by: Shun Hao Acked-by: Matan Azrad