Cover Detail
Show a cover letter.
GET /api/covers/91774/?format=api
http://patches.dpdk.org/api/covers/91774/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/1618848506-37569-1-git-send-email-jiaweiw@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": "<1618848506-37569-1-git-send-email-jiaweiw@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1618848506-37569-1-git-send-email-jiaweiw@nvidia.com", "date": "2021-04-19T16:08:23", "name": "[v9,0/2] Support meter policy API", "submitter": { "id": 1939, "url": "http://patches.dpdk.org/api/people/1939/?format=api", "name": "Jiawei Wang", "email": "jiaweiw@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/1618848506-37569-1-git-send-email-jiaweiw@nvidia.com/mbox/", "series": [ { "id": 16496, "url": "http://patches.dpdk.org/api/series/16496/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16496", "date": "2021-04-19T16:08:23", "name": "Support meter policy API", "version": 9, "mbox": "http://patches.dpdk.org/series/16496/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/91774/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 96417A0524;\n\tMon, 19 Apr 2021 18:08:32 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 417E941390;\n\tMon, 19 Apr 2021 18:08:32 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 13CEE41390\n for <dev@dpdk.org>; Mon, 19 Apr 2021 18:08:30 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n jiaweiw@nvidia.com) with SMTP; 19 Apr 2021 19:08:26 +0300", "from nvidia.com (gen-l-vrt-281.mtl.labs.mlnx [10.237.44.1])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 13JG8QLq024825;\n Mon, 19 Apr 2021 19:08:26 +0300" ], "From": "Jiawei Wang <jiaweiw@nvidia.com>", "To": "matan@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com,\n shahafs@nvidia.com", "Cc": "dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com, roniba@nvidia.com", "Date": "Mon, 19 Apr 2021 19:08:23 +0300", "Message-Id": "<1618848506-37569-1-git-send-email-jiaweiw@nvidia.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<20210415092023.2089541-1-lizh@nvidia.com>", "References": "<20210415092023.2089541-1-lizh@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v9 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\nV9: Rebase and Fix the comments for softnic driver.\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 .../prog_guide/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 drivers/net/softnic/rte_eth_softnic_internals.h | 18 +-\n drivers/net/softnic/rte_eth_softnic_meter.c | 297 ++++++++++---\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, 879 insertions(+), 1270 deletions(-)" }{ "id": 91774, "url": "