Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52970/?format=api
https://patches.dpdk.org/api/patches/52970/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190420000243.39143-1-yskoh@mellanox.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": "<20190420000243.39143-1-yskoh@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190420000243.39143-1-yskoh@mellanox.com", "date": "2019-04-20T00:02:43", "name": "net/mlx5: fix Direct Rules build", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6aed80c0e2fb9e2bd2fc9df22194db4394118d7f", "submitter": { "id": 636, "url": "https://patches.dpdk.org/api/people/636/?format=api", "name": "Yongseok Koh", "email": "yskoh@mellanox.com" }, "delegate": { "id": 6624, "url": "https://patches.dpdk.org/api/users/6624/?format=api", "username": "shahafs", "first_name": "Shahaf", "last_name": "Shuler", "email": "shahafs@mellanox.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190420000243.39143-1-yskoh@mellanox.com/mbox/", "series": [ { "id": 4405, "url": "https://patches.dpdk.org/api/series/4405/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4405", "date": "2019-04-20T00:02:43", "name": "net/mlx5: fix Direct Rules build", "version": 1, "mbox": "https://patches.dpdk.org/series/4405/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/52970/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/52970/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 92E0C1BB4F;\n\tSat, 20 Apr 2019 02:07:32 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 543DC1BB4B\n\tfor <dev@dpdk.org>; Sat, 20 Apr 2019 02:07:31 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tyskoh@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 20 Apr 2019 03:02:47 +0300", "from scfae-sc-2.mti.labs.mlnx (scfae-sc-2.mti.labs.mlnx\n\t[10.101.0.96])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x3K02jka011598;\n\tSat, 20 Apr 2019 03:02:45 +0300" ], "From": "Yongseok Koh <yskoh@mellanox.com>", "To": "shahafs@mellanox.com", "Cc": "dev@dpdk.org, viacheslavo@mellanox.com", "Date": "Fri, 19 Apr 2019 17:02:43 -0700", "Message-Id": "<20190420000243.39143-1-yskoh@mellanox.com>", "X-Mailer": "git-send-email 2.11.0", "Subject": "[dpdk-dev] [PATCH] net/mlx5: fix Direct Rules build", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "All the library calls must be called via the glue layer.\n\nFixes: b2177648b8de (\"net/mlx5: add Direct Rules flow data alloc/free routines\")\nFixes: 79e35d0d5979 (\"net/mlx5: share Direct Rules/Verbs flow related structures\")\nCc: viacheslavo@mellanox.com\n\nSigned-off-by: Yongseok Koh <yskoh@mellanox.com>\n---\n drivers/net/mlx5/mlx5.c | 14 ++++++++------\n 1 file changed, 8 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex 65c69afe5a..08ed678d0d 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -332,14 +332,16 @@ mlx5_alloc_shared_dr(struct mlx5_priv *priv)\n \t\treturn 0;\n \t}\n \t/* Reference counter is zero, we should initialize structures. */\n-\tns = mlx5dv_dr_create_ns(sh->ctx, MLX5DV_DR_NS_DOMAIN_INGRESS_BYPASS);\n+\tns = mlx5_glue->dr_create_ns(sh->ctx,\n+\t\t\t\t MLX5DV_DR_NS_DOMAIN_INGRESS_BYPASS);\n \tif (!ns) {\n \t\tDRV_LOG(ERR, \"ingress mlx5dv_dr_create_ns failed\");\n \t\terr = errno;\n \t\tgoto error;\n \t}\n \tsh->rx_ns = ns;\n-\tns = mlx5dv_dr_create_ns(sh->ctx, MLX5DV_DR_NS_DOMAIN_EGRESS_BYPASS);\n+\tns = mlx5_glue->dr_create_ns(sh->ctx,\n+\t\t\t\t MLX5DV_DR_NS_DOMAIN_EGRESS_BYPASS);\n \tif (!ns) {\n \t\tDRV_LOG(ERR, \"egress mlx5dv_dr_create_ns failed\");\n \t\terr = errno;\n@@ -367,11 +369,11 @@ mlx5_alloc_shared_dr(struct mlx5_priv *priv)\n error:\n /* Rollback the created objects. */\n \tif (sh->rx_ns) {\n-\t\tmlx5dv_dr_destroy_ns(sh->rx_ns);\n+\t\tmlx5_glue->dr_destroy_ns(sh->rx_ns);\n \t\tsh->rx_ns = NULL;\n \t}\n \tif (sh->tx_ns) {\n-\t\tmlx5dv_dr_destroy_ns(sh->tx_ns);\n+\t\tmlx5_glue->dr_destroy_ns(sh->tx_ns);\n \t\tsh->tx_ns = NULL;\n \t}\n \tif (sh->fdb_ns) {\n@@ -410,11 +412,11 @@ mlx5_free_shared_dr(struct mlx5_priv *priv)\n \tif (sh->dv_refcnt && --sh->dv_refcnt)\n \t\treturn;\n \tif (sh->rx_ns) {\n-\t\tmlx5dv_dr_destroy_ns(sh->rx_ns);\n+\t\tmlx5_glue->dr_destroy_ns(sh->rx_ns);\n \t\tsh->rx_ns = NULL;\n \t}\n \tif (sh->tx_ns) {\n-\t\tmlx5dv_dr_destroy_ns(sh->tx_ns);\n+\t\tmlx5_glue->dr_destroy_ns(sh->tx_ns);\n \t\tsh->tx_ns = NULL;\n \t}\n #ifdef HAVE_MLX5DV_DR_ESWITCH\n", "prefixes": [] }{ "id": 52970, "url": "