Cover Detail
Show a cover letter.
GET /api/covers/91555/?format=api
http://patches.dpdk.org/api/covers/91555/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/20210415092023.2089541-1-lizh@nvidia.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20210415092023.2089541-1-lizh@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210415092023.2089541-1-lizh@nvidia.com", "date": "2021-04-15T09:20:21", "name": "[v8,0/2] Support meter policy API", "submitter": { "id": 1967, "url": "http://patches.dpdk.org/api/people/1967/?format=api", "name": "Li Zhang", "email": "lizh@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/20210415092023.2089541-1-lizh@nvidia.com/mbox/", "series": [ { "id": 16404, "url": "http://patches.dpdk.org/api/series/16404/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16404", "date": "2021-04-15T09:20:21", "name": "Support meter policy API", "version": 8, "mbox": "http://patches.dpdk.org/series/16404/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/91555/comments/", "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9B845A0A0E;\n\tThu, 15 Apr 2021 11:20:33 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6DC5A16213F;\n\tThu, 15 Apr 2021 11:20:33 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id AABA5162159\n for <dev@dpdk.org>; Thu, 15 Apr 2021 11:20:31 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n lizh@nvidia.com)\n with SMTP; 15 Apr 2021 12:20:27 +0300", "from nvidia.com (c-235-17-1-009.mtl.labs.mlnx [10.235.17.9])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 13F9KRhs026624;\n Thu, 15 Apr 2021 12:20:27 +0300" ], "From": "Li Zhang <lizh@nvidia.com>", "To": "dekelp@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com,\n matan@nvidia.com, shahafs@nvidia.com, cristian.dumitrescu@intel.com,\n lironh@marvell.com, jerinj@marvell.com, ferruh.yigit@intel.com,\n ajit.khaparde@broadcom.com", "Cc": "dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com, roniba@nvidia.com", "Date": "Thu, 15 Apr 2021 12:20:21 +0300", "Message-Id": "<20210415092023.2089541-1-lizh@nvidia.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20210318085815.804896-1-lizh@nvidia.com>", "References": "<20210318085815.804896-1-lizh@nvidia.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v8 0/2] Support meter policy API", "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>,\n <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>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Currently, the flow meter policy does not support multiple actions\nper color; also the allowed action types per color are very limited.\nIn addition, the policy cannot be pre-defined.\n\nDue to the growing in flow actions offload abilities there is a potential\nfor the user to use variety of actions per color differently.\nThis new meter policy API comes to allow this potential in the most ethdev\ncommon way using rte_flow action definition.\nA list of rte_flow actions will be provided by the user per color\nin order to create a meter policy.\nIn addition, the API forces to pre-define the policy before\nthe meters creation in order to allow sharing of single policy\nwith multiple meters efficiently.\n\nmeter_policy_id is added into struct rte_mtr_params.\nSo that it can get the policy during the meters creation.\n\nAdd two common policy template as macros in the header file,\n\nRFC (\"ethdev: add pre-defined meter policy API\")\nhttps://patchwork.dpdk.org/project/dpdk/patch/20210318085815.804896-1-lizh@nvidia.com/\n\nDepends-on: series=16351 (\"Add ASO meter support in MLX5 PMD \")\nhttps://patchwork.dpdk.org/project/dpdk/list/?series=16351\n\nV2: Delete default policy and change relation doc files.\nV3: Fix coding style issues.\nV4: Fix comments about Depends-on\nV5: Fix comments about rte_mtr_meter_policy_add.\nV6: Delete policy example.\nV7: Fix comments and place two common policy template as macros.\nV8: Fix rebase conflict issues and CI warning\n\nHaifei Luo (1):\n app/testpmd: support policy actions per color\n\nLi Zhang (1):\n ethdev: add pre-defined meter policy API\n\n app/test-flow-perf/main.c | 7 -\n app/test-pmd/cmdline.c | 14 +-\n app/test-pmd/cmdline_flow.c | 118 ++++-\n app/test-pmd/cmdline_mtr.c | 257 +++-------\n app/test-pmd/cmdline_mtr.h | 4 +-\n app/test-pmd/config.c | 32 ++\n app/test-pmd/testpmd.h | 2 +\n doc/guides/prog_guide/rte_flow.rst | 21 +\n .../traffic_metering_and_policing.rst | 16 +-\n doc/guides/rel_notes/release_21_05.rst | 21 +\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 48 +-\n drivers/net/mlx5/mlx5.h | 24 +-\n drivers/net/mlx5/mlx5_flow.c | 46 --\n drivers/net/mlx5/mlx5_flow.h | 18 +-\n drivers/net/mlx5/mlx5_flow_aso.c | 8 +-\n drivers/net/mlx5/mlx5_flow_dv.c | 461 +-----------------\n drivers/net/mlx5/mlx5_flow_meter.c | 369 +-------------\n drivers/net/softnic/rte_eth_softnic_flow.c | 19 +-\n .../net/softnic/rte_eth_softnic_internals.h | 18 +-\n drivers/net/softnic/rte_eth_softnic_meter.c | 290 ++++++++---\n lib/librte_ethdev/rte_flow.h | 22 +\n lib/librte_ethdev/rte_mtr.c | 55 ++-\n lib/librte_ethdev/rte_mtr.h | 223 +++++++--\n lib/librte_ethdev/rte_mtr_driver.h | 44 +-\n lib/librte_ethdev/version.map | 5 +-\n 25 files changed, 872 insertions(+), 1270 deletions(-)" }{ "id": 91555, "url": "