Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/62683/?format=api
http://patches.dpdk.org/api/patches/62683/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1573146604-17803-6-git-send-email-viacheslavo@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": "<1573146604-17803-6-git-send-email-viacheslavo@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1573146604-17803-6-git-send-email-viacheslavo@mellanox.com", "date": "2019-11-07T17:09:50", "name": "[v3,05/19] net/mlx5: update flow functions", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "7fbe319875d0515c18e7c110c977f55fd6a5e109", "submitter": { "id": 1102, "url": "http://patches.dpdk.org/api/people/1102/?format=api", "name": "Slava Ovsiienko", "email": "viacheslavo@mellanox.com" }, "delegate": { "id": 3268, "url": "http://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1573146604-17803-6-git-send-email-viacheslavo@mellanox.com/mbox/", "series": [ { "id": 7336, "url": "http://patches.dpdk.org/api/series/7336/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7336", "date": "2019-11-07T17:09:46", "name": "net/mlx5: implement extensive metadata feature", "version": 3, "mbox": "http://patches.dpdk.org/series/7336/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/62683/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/62683/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 5C730A034E;\n\tThu, 7 Nov 2019 18:10:58 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 758131BFBE;\n\tThu, 7 Nov 2019 18:10:26 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 405D31BFA0\n for <dev@dpdk.org>; Thu, 7 Nov 2019 18:10:18 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n viacheslavo@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 7 Nov 2019 19:10:17 +0200", "from pegasus11.mtr.labs.mlnx (pegasus11.mtr.labs.mlnx\n [10.210.16.104])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id xA7HAHPM021925;\n Thu, 7 Nov 2019 19:10:17 +0200", "from pegasus11.mtr.labs.mlnx (localhost [127.0.0.1])\n by pegasus11.mtr.labs.mlnx (8.14.7/8.14.7) with ESMTP id xA7HAH07017947;\n Thu, 7 Nov 2019 17:10:17 GMT", "(from viacheslavo@localhost)\n by pegasus11.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id xA7HAHFj017946;\n Thu, 7 Nov 2019 17:10:17 GMT" ], "X-Authentication-Warning": "pegasus11.mtr.labs.mlnx: viacheslavo set sender to\n viacheslavo@mellanox.com using -f", "From": "Viacheslav Ovsiienko <viacheslavo@mellanox.com>", "To": "dev@dpdk.org", "Cc": "matan@mellanox.com, rasland@mellanox.com, thomas@monjalon.net,\n orika@mellanox.com, Yongseok Koh <yskoh@mellanox.com>", "Date": "Thu, 7 Nov 2019 17:09:50 +0000", "Message-Id": "<1573146604-17803-6-git-send-email-viacheslavo@mellanox.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1573146604-17803-1-git-send-email-viacheslavo@mellanox.com>", "References": "<1572940915-29416-1-git-send-email-viacheslavo@mellanox.com>\n <1573146604-17803-1-git-send-email-viacheslavo@mellanox.com>", "Subject": "[dpdk-dev] [PATCH v3 05/19] net/mlx5: update flow functions", "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": "Update flow creation/destroy functions for future reuse.\nList operations can be skipped inside functions and done\nseparately out of flow creation.\n\nSigned-off-by: Yongseok Koh <yskoh@mellanox.com>\nSigned-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c | 14 ++++++++++----\n 1 file changed, 10 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex d1661f2..6e6c845 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -2736,7 +2736,10 @@ uint32_t mlx5_flow_adjust_priority(struct rte_eth_dev *dev, int32_t priority,\n * @param dev\n * Pointer to Ethernet device.\n * @param list\n- * Pointer to a TAILQ flow list.\n+ * Pointer to a TAILQ flow list. If this parameter NULL,\n+ * no list insertion occurred, flow is just created,\n+ * this is caller's responsibility to track the\n+ * created flow.\n * @param[in] attr\n * Flow rule attributes.\n * @param[in] items\n@@ -2881,7 +2884,8 @@ uint32_t mlx5_flow_adjust_priority(struct rte_eth_dev *dev, int32_t priority,\n \t\tif (ret < 0)\n \t\t\tgoto error;\n \t}\n-\tTAILQ_INSERT_TAIL(list, flow, next);\n+\tif (list)\n+\t\tTAILQ_INSERT_TAIL(list, flow, next);\n \tflow_rxq_flags_set(dev, flow);\n \treturn flow;\n error_before_flow:\n@@ -2975,7 +2979,8 @@ struct rte_flow *\n * @param dev\n * Pointer to Ethernet device.\n * @param list\n- * Pointer to a TAILQ flow list.\n+ * Pointer to a TAILQ flow list. If this parameter NULL,\n+ * there is no flow removal from the list.\n * @param[in] flow\n * Flow to destroy.\n */\n@@ -2995,7 +3000,8 @@ struct rte_flow *\n \t\tmlx5_flow_id_release(priv->sh->flow_id_pool,\n \t\t\t\t flow->hairpin_flow_id);\n \tflow_drv_destroy(dev, flow);\n-\tTAILQ_REMOVE(list, flow, next);\n+\tif (list)\n+\t\tTAILQ_REMOVE(list, flow, next);\n \trte_free(flow->fdir);\n \trte_free(flow);\n }\n", "prefixes": [ "v3", "05/19" ] }{ "id": 62683, "url": "