get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/84960/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 84960,
    "url": "http://patches.dpdk.org/api/patches/84960/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201210150648.8784-10-talshn@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": "<20201210150648.8784-10-talshn@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201210150648.8784-10-talshn@nvidia.com",
    "date": "2020-12-10T15:06:24",
    "name": "[v2,09/33] net/mlx5: wrap glue alloc/dealloc PD with OS calls",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b1494cf22a03923c278262f2ad904aa05d58ba16",
    "submitter": {
        "id": 1893,
        "url": "http://patches.dpdk.org/api/people/1893/?format=api",
        "name": "Tal Shnaiderman",
        "email": "talshn@nvidia.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/20201210150648.8784-10-talshn@nvidia.com/mbox/",
    "series": [
        {
            "id": 14240,
            "url": "http://patches.dpdk.org/api/series/14240/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14240",
            "date": "2020-12-10T15:06:17",
            "name": "mlx5 Windows support - part #5",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/14240/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/84960/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/84960/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 D566DA04DB;\n\tThu, 10 Dec 2020 16:11:09 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9E18FC9E8;\n\tThu, 10 Dec 2020 16:08:05 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id E0204C96E\n for <dev@dpdk.org>; Thu, 10 Dec 2020 16:07:47 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 10 Dec 2020 17:07:45 +0200",
            "from nvidia.com (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BAF7h91007994;\n Thu, 10 Dec 2020 17:07:44 +0200"
        ],
        "From": "Tal Shnaiderman <talshn@nvidia.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, matan@nvidia.com, rasland@nvidia.com,\n ophirmu@nvidia.com",
        "Date": "Thu, 10 Dec 2020 17:06:24 +0200",
        "Message-Id": "<20201210150648.8784-10-talshn@nvidia.com>",
        "X-Mailer": "git-send-email 2.16.1.windows.4",
        "In-Reply-To": "<20201210150648.8784-1-talshn@nvidia.com>",
        "References": "<20201027232335.31427-2-ophirmu@nvidia.com>\n <20201210150648.8784-1-talshn@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v2 09/33] net/mlx5: wrap glue alloc/dealloc PD\n\twith OS calls",
        "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": "From: Ophir Munk <ophirmu@nvidia.com>\n\nWrap glue calls alloc_pd() and dealloc_pd() with generic OS calls.  In\nLinux - protection domain allocations are implemented by Verbs glue API\nwhile in Windows it is by DevX API.\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/common/mlx5/linux/mlx5_common_os.h | 11 +++++++++++\n drivers/net/mlx5/mlx5.c                    |  6 +++---\n 2 files changed, 14 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/linux/mlx5_common_os.h b/drivers/common/mlx5/linux/mlx5_common_os.h\nindex 3420937859..c9f8d7cbc1 100644\n--- a/drivers/common/mlx5/linux/mlx5_common_os.h\n+++ b/drivers/common/mlx5/linux/mlx5_common_os.h\n@@ -201,4 +201,15 @@ mlx5_os_get_devx_uar_page_id(void *uar)\n #endif\n }\n \n+static inline void *\n+mlx5_os_alloc_pd(void *ctx)\n+{\n+\treturn mlx5_glue->alloc_pd(ctx);\n+}\n+\n+static inline int\n+mlx5_os_dealloc_pd(void *pd)\n+{\n+\treturn mlx5_glue->dealloc_pd(pd);\n+}\n #endif /* RTE_PMD_MLX5_COMMON_OS_H_ */\ndiff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex 8e9df6abcf..7d1b4fbdc0 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -932,7 +932,7 @@ mlx5_alloc_shared_dev_ctx(const struct mlx5_dev_spawn_data *spawn,\n \t\tsh->port[i].ih_port_id = RTE_MAX_ETHPORTS;\n \t\tsh->port[i].devx_ih_port_id = RTE_MAX_ETHPORTS;\n \t}\n-\tsh->pd = mlx5_glue->alloc_pd(sh->ctx);\n+\tsh->pd = mlx5_os_alloc_pd(sh->ctx);\n \tif (sh->pd == NULL) {\n \t\tDRV_LOG(ERR, \"PD allocation failure\");\n \t\terr = ENOMEM;\n@@ -1032,7 +1032,7 @@ mlx5_alloc_shared_dev_ctx(const struct mlx5_dev_spawn_data *spawn,\n \tif (sh->tx_uar)\n \t\tmlx5_glue->devx_free_uar(sh->tx_uar);\n \tif (sh->pd)\n-\t\tclaim_zero(mlx5_glue->dealloc_pd(sh->pd));\n+\t\tclaim_zero(mlx5_os_dealloc_pd(sh->pd));\n \tif (sh->ctx)\n \t\tclaim_zero(mlx5_glue->close_device(sh->ctx));\n \tmlx5_free(sh);\n@@ -1100,7 +1100,7 @@ mlx5_free_shared_dev_ctx(struct mlx5_dev_ctx_shared *sh)\n \t\tsh->tx_uar = NULL;\n \t}\n \tif (sh->pd)\n-\t\tclaim_zero(mlx5_glue->dealloc_pd(sh->pd));\n+\t\tclaim_zero(mlx5_os_dealloc_pd(sh->pd));\n \tif (sh->tis)\n \t\tclaim_zero(mlx5_devx_cmd_destroy(sh->tis));\n \tif (sh->td)\n",
    "prefixes": [
        "v2",
        "09/33"
    ]
}