Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85304/?format=api
https://patches.dpdk.org/api/patches/85304/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201217103731.24074-3-orika@nvidia.com/", "project": { "id": 1, "url": "https://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": "<20201217103731.24074-3-orika@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201217103731.24074-3-orika@nvidia.com", "date": "2020-12-17T10:37:31", "name": "[2/2] regex/mlx5: add regex response flags", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "74598a142899367f68c08a8f16f0753f1ed1f8ff", "submitter": { "id": 1869, "url": "https://patches.dpdk.org/api/people/1869/?format=api", "name": "Ori Kam", "email": "orika@nvidia.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201217103731.24074-3-orika@nvidia.com/mbox/", "series": [ { "id": 14345, "url": "https://patches.dpdk.org/api/series/14345/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14345", "date": "2020-12-17T10:37:29", "name": "regexdev: add new response flag", "version": 1, "mbox": "https://patches.dpdk.org/series/14345/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85304/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/85304/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 41108A09F0;\n\tThu, 17 Dec 2020 11:38:15 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1F4E8CA1C;\n\tThu, 17 Dec 2020 11:37:47 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 0F1C4CA1A\n for <dev@dpdk.org>; Thu, 17 Dec 2020 11:37:45 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n orika@nvidia.com) with SMTP; 17 Dec 2020 12:37:39 +0200", "from MTL-ORIKA.mtl.com ([172.27.14.211])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BHAbaVm029627;\n Thu, 17 Dec 2020 12:37:39 +0200" ], "From": "Ori Kam <orika@nvidia.com>", "To": "jerinj@marvell.com", "Cc": "guyk@marvell.com, dev@dpdk.org, thomas@monjalon.net, orika@nvidia.com,\n Francis Kelly <fkelly@nvidia.com>", "Date": "Thu, 17 Dec 2020 12:37:31 +0200", "Message-Id": "<20201217103731.24074-3-orika@nvidia.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20201217103731.24074-1-orika@nvidia.com>", "References": "<20201217103731.24074-1-orika@nvidia.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 2/2] regex/mlx5: add regex response flags", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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": "This commit propagate the response flags from the regex engine.\n\nSigned-off-by: Francis Kelly <fkelly@nvidia.com>\nSigned-off-by: Ori Kam <orika@nvidia.com>\n---\n drivers/regex/mlx5/mlx5_regex_fastpath.c | 23 ++++++++++++++++++++++-\n 1 file changed, 22 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/regex/mlx5/mlx5_regex_fastpath.c b/drivers/regex/mlx5/mlx5_regex_fastpath.c\nindex ee72f89c99..593b7d183a 100644\n--- a/drivers/regex/mlx5/mlx5_regex_fastpath.c\n+++ b/drivers/regex/mlx5/mlx5_regex_fastpath.c\n@@ -209,7 +209,10 @@ mlx5_regexdev_enqueue(struct rte_regexdev *dev, uint16_t qp_id,\n static inline void\n extract_result(struct rte_regex_ops *op, struct mlx5_regex_job *job)\n {\n-\tsize_t j, offset;\n+\tsize_t j;\n+\tsize_t offset;\n+\tuint16_t status;\n+\n \top->user_id = job->user_id;\n \top->nb_matches = MLX5_GET_VOLATILE(regexp_metadata, job->metadata +\n \t\t\t\t\t MLX5_REGEX_METADATA_OFF,\n@@ -230,6 +233,24 @@ extract_result(struct rte_regex_ops *op, struct mlx5_regex_job *job)\n \t\t\tMLX5_GET_VOLATILE(regexp_match_tuple,\n \t\t\t\t\t (job->output + offset), length);\n \t}\n+\tstatus = MLX5_GET_VOLATILE(regexp_metadata, job->metadata +\n+\t\t\t\t MLX5_REGEX_METADATA_OFF,\n+\t\t\t\t status);\n+\top->rsp_flags = 0;\n+\tif (status & MLX5_RXP_RESP_STATUS_PMI_SOJ)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_PMI_SOJ_F;\n+\tif (status & MLX5_RXP_RESP_STATUS_PMI_EOJ)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_PMI_EOJ_F;\n+\tif (status & MLX5_RXP_RESP_STATUS_MAX_LATENCY)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_MAX_SCAN_TIMEOUT_F;\n+\tif (status & MLX5_RXP_RESP_STATUS_MAX_MATCH)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_MAX_MATCH_F;\n+\tif (status & MLX5_RXP_RESP_STATUS_MAX_PREFIX)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_MAX_PREFIX_F;\n+\tif (status & MLX5_RXP_RESP_STATUS_MAX_PRI_THREADS)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_RESOURCE_LIMIT_REACHED_F;\n+\tif (status & MLX5_RXP_RESP_STATUS_MAX_SEC_THREADS)\n+\t\top->rsp_flags |= RTE_REGEX_OPS_RSP_RESOURCE_LIMIT_REACHED_F;\n }\n \n static inline volatile struct mlx5_cqe *\n", "prefixes": [ "2/2" ] }{ "id": 85304, "url": "