From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 99D06A0548;
	Tue, 27 Apr 2021 12:42:00 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 0E00C40142;
	Tue, 27 Apr 2021 12:42:00 +0200 (CEST)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com
 (mail-dm6nam12on2076.outbound.protection.outlook.com [40.107.243.76])
 by mails.dpdk.org (Postfix) with ESMTP id B94F14003D
 for <dev@dpdk.org>; Tue, 27 Apr 2021 12:41:58 +0200 (CEST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=X4TJUSv8r+e+gRXfERklv7R7WJt5FZ+NnJTskUErL5Q19cf67fD6QY8cDfAyZnt19S4gyU/qiXSw5gGpv6riAxP9H82AS/wlvhZC8uoE7sOsBr4Vg3LlYSFz2TNfqSnq231RyzbN+S7oAY1dzwQ0/tn+hj0prLG0sifqu5Rmm9YUAJ7x0IN8ctDz6cEaSd5i1AXewO5wok0cxkY70D6V89qpb2e79mGid7y6/bKCmApNBfcNXXAzBx6KDcVXeA6q2t2aRAOKSfho2i03VNRndNgGacku1G8GxhLOa/7idOe2qilk2ZJqsiRF5ZnuAFLP86OTks1cLwrFL5w2V0fZgw==
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=6fDU/aoGp3W2bYVmnScg11o2ME2qzFGuoDjEXJoG2/E=;
 b=IYXumKWDsv4E8buaPcNJdc+P0W0pYt88usZPj23vIRwZzD4PIsHH8YWYsLkpd47fCWv0yGOu97IGx+TrxJzhOC+noda0MEZIU/NEC/X/zcY9D1LJEhH5XhVMjOmIRNWqJT4NwIuAT/HnpcT2WZtRkBRNnBDIgxQJWvLP1jmhyxLNjydnN0PlsdNUKgfnraW5PZRKgsJsyZp3kpu8LaGtsoYR6uKm1M6twe1SgImfyWXTLfHynViK8+iqjX5s3n2LjNz9m17V7BgmdacacJbv2FN9cBpfIQ3zDPWr/t55+N0ZgIpQWOyoZjL6Pl/sIAF2ZkH9/sSQAcwj0zqCNFm8MA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is
 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com;
 dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com;
 dkim=none (message not signed); 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=6fDU/aoGp3W2bYVmnScg11o2ME2qzFGuoDjEXJoG2/E=;
 b=Uboev7G7089rJLoEaLoK5kS0gy2JgnVy+E20pB4+CZLzD5y1bYyHU9LPWIvwhbAPm1TM7/lPCEPY+hC4of0fxMAYMoCuQq8eGWt8On1hmCDx1bHI4BxAAgwZCoYaUdevlTd/Rn5/AZbCZJd9fdagyF7/H2noPcC6lonC37rAqoJmvNomurZQeTbEKwzUHlnZ6jHBNxq7DVumVpC9zKiOaGLULyagvSTig04EB3nIrllXhpXIT0jgXz3SO8o8ikRwxHzOpo66vbhhMHImLicgmWmCro2A7/oOvqJHcZkJJpbz23QNZyyNQYIPXp1cyCtFstDjkrE0PhgSK4y01Q6Dog==
Received: from BN6PR13CA0008.namprd13.prod.outlook.com (2603:10b6:404:10a::18)
 by BN8PR12MB2964.namprd12.prod.outlook.com (2603:10b6:408:43::24)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Tue, 27 Apr
 2021 10:41:57 +0000
Received: from BN8NAM11FT047.eop-nam11.prod.protection.outlook.com
 (2603:10b6:404:10a:cafe::ec) by BN6PR13CA0008.outlook.office365.com
 (2603:10b6:404:10a::18) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.17 via Frontend
 Transport; Tue, 27 Apr 2021 10:41:57 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34)
 smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed)
 header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com;
Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates
 216.228.112.34 as permitted sender) receiver=protection.outlook.com;
 client-ip=216.228.112.34; helo=mail.nvidia.com;
Received: from mail.nvidia.com (216.228.112.34) by
 BN8NAM11FT047.mail.protection.outlook.com (10.13.177.220) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id
 15.20.4065.21 via Frontend Transport; Tue, 27 Apr 2021 10:41:56 +0000
Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com
 (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Apr
 2021 10:41:54 +0000
From: Li Zhang <lizh@nvidia.com>
To: <orika@nvidia.com>, <viacheslavo@nvidia.com>, <matan@nvidia.com>,
 <shahafs@nvidia.com>
CC: <dev@dpdk.org>, <thomas@monjalon.net>, <rasland@nvidia.com>,
 <roniba@nvidia.com>
Date: Tue, 27 Apr 2021 13:41:33 +0300
Message-ID: <20210427104134.3946-1-lizh@nvidia.com>
X-Mailer: git-send-email 2.21.0
In-Reply-To: <20210331092319.1446618-1-lizh@nvidia.com>
References: <20210331092319.1446618-1-lizh@nvidia.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-Originating-IP: [172.20.145.6]
X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To
 HQMAIL107.nvidia.com (172.20.187.13)
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 7c2563cd-a294-4550-24e4-08d90969147d
X-MS-TrafficTypeDiagnostic: BN8PR12MB2964:
X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr
X-Microsoft-Antispam-PRVS: <BN8PR12MB296464C98F2A91287C4C017FBF419@BN8PR12MB2964.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:309;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: AWaQ/5afcGDWwiRjdgOMsNIl0Pl5aQbnUMZeQv2kcG+YU+uQMP9gfabohoD6vcGdYmLeu3fxwWSV4/DTc12Mq7afZAS60eEYn8Qyi+lP4V0PROqw3uuWUvRlm3hbKAPKXvbWHPcjt8hYgIiiuLur97+D2cYEXo2LFPvOOuQmdCCdvwYYu9VqhQjg8QBGFKCvAAhH32iTCr3cd7/GUv/tYS+pRC749ZY2h6tF8L9Bn/m5xVczrIfIvpeTrEkRgjdFPW4fYicpMss8DonfVH4pUmkLU9jasPzDfT3GSmuTCvm9QuOWzei3ivrXcIxRn36HIjEfiRceeQpt1CtAT+xSKbrA5kcWhIQfSHAzxxtipfTPXX+VUoXdgNmL5GMeKB4B+7yWOSyWbYHS+U6zj/gvFvxc7B0tQYLQeAjS763+y1VdZC1CWlvxV7z63ZD3HoVwZyqPzIK2zzkppxH7jkqBzbO1uDihm9NSsXfLTS+VkHT54yoQCWEyPq0teS2sYvUiHJxd/Bt9Nn+qBZEJuuQhtI2HJq842pTfbc7uEZJYpsytMukLug89QqHN3ZCscpMpwviPC3NxD52HP4tenN97svJKGzKV/n1yHA6SvN/BBFZM3KkTJ0L83yZ2xhbwBrekSLrkNsoHTxT4PTHUGR1ur3d7KKpSoCrgPJKG449xaqU6hA9DxpZgovKKhZ8pzth4Mlhe0o47bsHAmLoq2V99ye65f3rKiX66jBM4Xymch4s=
X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;
 SFS:(4636009)(396003)(376002)(136003)(346002)(39860400002)(46966006)(36840700001)(26005)(316002)(54906003)(110136005)(7696005)(6636002)(4744005)(83380400001)(36860700001)(6666004)(36906005)(336012)(82310400003)(6286002)(107886003)(4326008)(966005)(36756003)(478600001)(82740400003)(7636003)(356005)(70586007)(186003)(5660300002)(1076003)(2906002)(55016002)(8676002)(8936002)(16526019)(47076005)(426003)(2616005)(86362001)(70206006);
 DIR:OUT; SFP:1101; 
X-OriginatorOrg: Nvidia.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2021 10:41:56.7898 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 7c2563cd-a294-4550-24e4-08d90969147d
X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34];
 Helo=[mail.nvidia.com]
X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT047.eop-nam11.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB2964
Subject: [dpdk-dev] [PATCH v5 0/1] Support meter PPS(packet per second) in
 MLX5 PMD
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Currently meter algorithms only supports rate is bytes per second(BPS).
Add packet_mode flag in meter profile parameters data structure.
So that it can meter traffic by packet per second.

Depends-on: series=16312  ("Support PPS(packet per second) on meter")
https://patchwork.dpdk.org/project/dpdk/list/?series=16312

Depends-on: series=16535  ("support meter policy operations")
https://patchwork.dpdk.org/project/dpdk/list/?series=16535

V5:
* Fix comments about release-note and merge two patches.
v4:
* Rebase.
V3:
* Rebase.
* Fix comments about Depends-on.
V2:
* Fix comments about commit-log

Li Zhang (1):
  net/mlx5: support meter PPS profile

 doc/guides/nics/mlx5.rst               |  1 +
 doc/guides/rel_notes/release_21_05.rst |  1 +
 drivers/common/mlx5/mlx5_prm.h         |  8 +++
 drivers/net/mlx5/mlx5_flow_aso.c       | 17 +++---
 drivers/net/mlx5/mlx5_flow_meter.c     | 74 ++++++++++++++++++++------
 5 files changed, 78 insertions(+), 23 deletions(-)

-- 
2.27.0