Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/74966/?format=api
http://patches.dpdk.org/api/patches/74966/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1595988891-151622-1-git-send-email-yuvalav@mellanox.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": "<1595988891-151622-1-git-send-email-yuvalav@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1595988891-151622-1-git-send-email-yuvalav@mellanox.com", "date": "2020-07-29T02:14:51", "name": "[v2] regex/mlx5: fix sq free check on enqueue", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ed66b213be0139c75da5c0c049cc53249967ff72", "submitter": { "id": 1846, "url": "http://patches.dpdk.org/api/people/1846/?format=api", "name": "Yuval Avnery", "email": "yuvalav@mellanox.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1595988891-151622-1-git-send-email-yuvalav@mellanox.com/mbox/", "series": [ { "id": 11375, "url": "http://patches.dpdk.org/api/series/11375/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11375", "date": "2020-07-29T02:14:51", "name": "[v2] regex/mlx5: fix sq free check on enqueue", "version": 2, "mbox": "http://patches.dpdk.org/series/11375/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/74966/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/74966/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 9D921A052B;\n\tWed, 29 Jul 2020 04:15:01 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4BD904C93;\n\tWed, 29 Jul 2020 04:15:00 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id E216737B7\n for <dev@dpdk.org>; Wed, 29 Jul 2020 04:14:58 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n yuvalav@mellanox.com) with SMTP; 29 Jul 2020 05:14:54 +0300", "from pegasus04.mtr.labs.mlnx (pegasus04.mtr.labs.mlnx\n [10.210.16.126])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 06T2Es5R031559;\n Wed, 29 Jul 2020 05:14:54 +0300", "from pegasus04.mtr.labs.mlnx (localhost [127.0.0.1])\n by pegasus04.mtr.labs.mlnx (8.14.7/8.14.7) with ESMTP id 06T2Estn151707;\n Wed, 29 Jul 2020 02:14:54 GMT", "(from yuvalav@localhost)\n by pegasus04.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id 06T2ErxM151704;\n Wed, 29 Jul 2020 02:14:53 GMT" ], "From": "Yuval Avnery <yuvalav@mellanox.com>", "To": "Ori Kam <orika@mellanox.com>", "Cc": "thomas@monjalon.net, dev@dpdk.org, yuvalav@mellanox.com", "Date": "Wed, 29 Jul 2020 02:14:51 +0000", "Message-Id": "<1595988891-151622-1-git-send-email-yuvalav@mellanox.com>", "X-Mailer": "git-send-email 1.8.3.1", "Subject": "[dpdk-dev] [PATCH v2] regex/mlx5: fix sq free check on enqueue", "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": "Free sq check had a bug, causing jobs to overwrite.\n\nFixes: 8740ba5fe57f (\"regex/mlx5: add enqueue implementation\")\nSigned-off-by: Yuval Avnery <yuvalav@mellanox.com>\nAcked-by: Ori Kam <orika@mellanox.com>\n---\n drivers/regex/mlx5/mlx5_regex_fastpath.c | 5 +----\n 1 file changed, 1 insertion(+), 4 deletions(-)", "diff": "diff --git a/drivers/regex/mlx5/mlx5_regex_fastpath.c b/drivers/regex/mlx5/mlx5_regex_fastpath.c\nindex fc5a7fc..4385d85 100644\n--- a/drivers/regex/mlx5/mlx5_regex_fastpath.c\n+++ b/drivers/regex/mlx5/mlx5_regex_fastpath.c\n@@ -152,10 +152,7 @@ struct mlx5_regex_job {\n \n static inline int\n can_send(struct mlx5_regex_sq *sq) {\n-\treturn unlikely(sq->ci > sq->pi) ?\n-\t\t\tMLX5_REGEX_MAX_WQE_INDEX + sq->pi - sq->ci <\n-\t\t\tsq_size_get(sq) :\n-\t\t\tsq->pi - sq->ci < sq_size_get(sq);\n+\treturn ((uint16_t)(sq->pi - sq->ci) < sq_size_get(sq));\n }\n \n static inline uint32_t\n", "prefixes": [ "v2" ] }{ "id": 74966, "url": "