get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105544,
    "url": "http://patchwork.dpdk.org/api/patches/105544/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220102070638.2211160-2-michaelba@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20220102070638.2211160-2-michaelba@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220102070638.2211160-2-michaelba@nvidia.com",
    "date": "2022-01-02T07:06:36",
    "name": "[RFC,1/3] common/mlx5: glue device and PD importation",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "0112a269714150926cebe844ffa6913996ed5231",
    "submitter": {
        "id": 1949,
        "url": "http://patchwork.dpdk.org/api/people/1949/?format=api",
        "name": "Michael Baum",
        "email": "michaelba@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patchwork.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220102070638.2211160-2-michaelba@nvidia.com/mbox/",
    "series": [
        {
            "id": 21045,
            "url": "http://patchwork.dpdk.org/api/series/21045/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21045",
            "date": "2022-01-02T07:06:35",
            "name": "net/mlx5: add external RxQ support",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/21045/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/105544/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/105544/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3946AA0093;\n\tSun,  2 Jan 2022 08:07:08 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4012D41141;\n\tSun,  2 Jan 2022 08:07:04 +0100 (CET)",
            "from NAM11-CO1-obe.outbound.protection.outlook.com\n (mail-co1nam11on2062.outbound.protection.outlook.com [40.107.220.62])\n by mails.dpdk.org (Postfix) with ESMTP id 4F0E540698\n for <dev@dpdk.org>; Sun,  2 Jan 2022 08:07:02 +0100 (CET)",
            "from MW2PR16CA0023.namprd16.prod.outlook.com (2603:10b6:907::36) by\n DM6PR12MB3228.namprd12.prod.outlook.com (2603:10b6:5:18c::24) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.4844.15; Sun, 2 Jan 2022 07:07:00 +0000",
            "from CO1NAM11FT033.eop-nam11.prod.protection.outlook.com\n (2603:10b6:907:0:cafe::1f) by MW2PR16CA0023.outlook.office365.com\n (2603:10b6:907::36) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14 via Frontend\n Transport; Sun, 2 Jan 2022 07:07:00 +0000",
            "from mail.nvidia.com (12.22.5.238) by\n CO1NAM11FT033.mail.protection.outlook.com (10.13.174.247) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4844.14 via Frontend Transport; Sun, 2 Jan 2022 07:07:00 +0000",
            "from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com\n (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Sun, 2 Jan 2022 07:06:59 +0000",
            "from nvidia.com (172.20.187.6) by rnnvmail201.nvidia.com\n (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.9; Sat, 1 Jan 2022\n 23:06:57 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=dZ4rt7JeJo5Rz4wsu/aVvAWq8p6hIrtJSMjYh4d02Ry3uqy6JqNEPvLKRUrmbcwFb1clYBc0VRqfofErlYk3J6dg8tZ4YDXdy7AjkWe3llIKGDIMPv4rn/HEuakdL60m/AjFDA+6pkhIXBbVV7mvvsgoZrZkQAZD/ySZVfv5Gc0v1bv9otFWHuSLSRHF0tQJiCMYXZZfkRPrKrl4+W2QntgS5IOgYemLy4yyvcVKwM1o0o1oZSl9zMCBuWhmVkuUAU0sKMFkOYAuyFawD+GaMXFdUXADVecD1aDNw5DOWRJl41sPv1t8z0HkH36JZ0F10v7mZXNtfZbrfR/x1VYgag==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=/5osMn1o2lpKet5rZC+zD9QiI2GYfRkcQzj9rJFp4oc=;\n b=WVjPMCn5fQfMeuHK21OJiBhhRjcJ+mj659TFlJG3zWUQcp4DwnqL4LD4ABNZdOv06ejEXhUTz+nvNMaTYlnZRrIoxSQk4frlQEQ+BcSPiBDxrif0R+i0I1nxEJPaueBlzd/1fQQZqDiPLYFZQez8miW9/Rze2ROjcyNP40eNbc0y1NgY8hHmLwXBsvhooF5YgphWTTADwvqTEhJlJEy+WQET5mFl3Ykmr6Sihc3mB7WgxYOKOyZDpK4xgz18wqgVbBNJHMmXpMeh8kmMgGcQcdO0cOrNQs2asZ6AcZZM9tKXt1gYsWGRdlxQMvGsuHWq8zbTw/xFYoJIGKKNZfBwyQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass\n (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none\n (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=/5osMn1o2lpKet5rZC+zD9QiI2GYfRkcQzj9rJFp4oc=;\n b=qQxEioEvYLFlFA4WycMKxIlDCr8ZoKI39raFAJ37/WWXfvuL4fyd5nrZHKX7e2UIhOJ6X62okbWy+H73CytlRZsQfFYwT4nIvYIM9qzw8OtOlEg1WJ1ykzIo20g0sV392aqq2V4FMppMFroM+TNq9bEo08SajdyP6ohzD/UkLUmz7o9d3YICoG2KlVfZDtq3o7cPJfhCu+hrbQe7ODzEBqHfb4zakvm1Dfr+q3nC1A8zEApbQs/LsY8+Gym2rZMhfx2wJWgIaTRA8YMVCLze0dYKkkLg/4qAdOD95D6gHINsuMkYax91zXBIcDBXVyewuVbMZ9JIqB6/SXhVp+tqPA==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 12.22.5.238)\n smtp.mailfrom=nvidia.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 12.22.5.238 as permitted sender) receiver=protection.outlook.com;\n client-ip=12.22.5.238; helo=mail.nvidia.com;",
        "From": "<michaelba@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Matan Azrad <matan@nvidia.com>, Raslan Darawsheh <rasland@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Michael Baum\n <michaelba@nvidia.com>",
        "Subject": "[RFC 1/3] common/mlx5: glue device and PD importation",
        "Date": "Sun, 2 Jan 2022 09:06:36 +0200",
        "Message-ID": "<20220102070638.2211160-2-michaelba@nvidia.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220102070638.2211160-1-michaelba@nvidia.com>",
        "References": "<20220102070638.2211160-1-michaelba@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[172.20.187.6]",
        "X-ClientProxiedBy": "HQMAIL107.nvidia.com (172.20.187.13) To\n rnnvmail201.nvidia.com (10.129.68.8)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "443b5278-8dfa-44a4-97fc-08d9cdbe78b8",
        "X-MS-TrafficTypeDiagnostic": "DM6PR12MB3228:EE_",
        "X-Microsoft-Antispam-PRVS": "\n <DM6PR12MB3228F25EBF1017F95ECA8252CC489@DM6PR12MB3228.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:4714;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n YiiToGXsI1U/n1R6cpGXyCEd+SHAVupPNu+LgG5XnPMOk83lKoFbTLefBbvbrv9FviMzmAj+mhuHNFYoICKXmdFlU5XLkxmzNRFAS/fpoATfaUnEY9RMurPkRqzIFITp1f10nSGMcpd1pJPJE+8IPf/tfM/JFg1TedDaxkNmbUAcrjZD0/Go21SJlnY2iBHU8M0Jeu3c95i+pQZZXyaYet68wJUHUh/UcbNzVQq6UgUE6670D8UBnrvImHkaVmBjDv2RTgvyqC7NVI55sHjHWjNiZllF6GBXFhV5msFoIm1pVCW8PRPbXGeXmsepcZA64NqjZeDKpYm8vjYs5lPyGHarHS9mjirBxizax3MXpnK6OY16kFetFxJ2F81cvQXeW/O5OgJDXLYMvxcZZd2qHYf8rBTIQ3neEzj3Y1+xLLYb7Zvxx0Z5G6QPhGVZGeewz4iNP4Kotj+OWKpXAOqi2Baqy8b4qlhJc7kEbsFT7J1lUtx4i4k4Sq4Edz5xo5J/phhbbZKmuxT/NOva1McVTnlKVEUs40EvgXZjrUS3TFO2nnZsjpKAGnicXaABm1YCk3L/mjkac+Ik0kbRc2FooyTpufZwgWltdAnpgs9bK5a2xeGSWwK+9R8YYEcQBToENR1GvGsB6p1cMiNIy+4HspWUY93/jx4hKcC/77RnL/HHEiOC95VwAoarcyv1Zp0o53qb6UYN+sxEjdLAsvkOyp1jJEblUB54SKf9zmZBIuyhp0Of8epeUqGcznTCTdjYmWvHk4Dpjbup63piehtv6lgfyZKzWaaKO9c0xscc5Og=",
        "X-Forefront-Antispam-Report": "CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE;\n SFS:(4636009)(40470700002)(46966006)(36840700001)(4326008)(70206006)(426003)(1076003)(70586007)(86362001)(2616005)(107886003)(2906002)(5660300002)(316002)(47076005)(6286002)(508600001)(6666004)(336012)(55016003)(8676002)(8936002)(83380400001)(36860700001)(16526019)(36756003)(40460700001)(7696005)(6916009)(26005)(186003)(356005)(81166007)(54906003)(2876002)(82310400004)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "02 Jan 2022 07:07:00.1385 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 443b5278-8dfa-44a4-97fc-08d9cdbe78b8",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CO1NAM11FT033.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM6PR12MB3228",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "From: Michael Baum <michaelba@nvidia.com>\n\nAdd support for rdma-core API to import device.\nThe API gets ibv_context file descriptor and returns an ibv_context\npointer that is associated with the given file descriptor.\nAdd also support for rdma-core API to import PD.\nThe API gets ibv_context and PD handle and returns a protection domain\n(PD) that is associated with the given handle in the given context.\n\nSigned-off-by: Michael Baum <michaelba@nvidia.com>\n---\n drivers/common/mlx5/linux/mlx5_glue.c | 21 +++++++++++++++++++++\n drivers/common/mlx5/linux/mlx5_glue.h |  4 ++++\n 2 files changed, 25 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/linux/mlx5_glue.c b/drivers/common/mlx5/linux/mlx5_glue.c\nindex bc6622053f..2f70e7f320 100644\n--- a/drivers/common/mlx5/linux/mlx5_glue.c\n+++ b/drivers/common/mlx5/linux/mlx5_glue.c\n@@ -34,6 +34,18 @@ mlx5_glue_dealloc_pd(struct ibv_pd *pd)\n \treturn ibv_dealloc_pd(pd);\n }\n \n+static struct ibv_pd *\n+mlx5_glue_import_pd(struct ibv_context *context, uint32_t pd_handle)\n+{\n+\treturn ibv_import_pd(context, pd_handle);\n+}\n+\n+static void\n+mlx5_glue_unimport_pd(struct ibv_pd *pd)\n+{\n+\tibv_unimport_pd(pd);\n+}\n+\n static struct ibv_device **\n mlx5_glue_get_device_list(int *num_devices)\n {\n@@ -52,6 +64,12 @@ mlx5_glue_open_device(struct ibv_device *device)\n \treturn ibv_open_device(device);\n }\n \n+static struct ibv_context *\n+mlx5_glue_import_device(int cmd_fd)\n+{\n+\treturn ibv_import_device(cmd_fd);\n+}\n+\n static int\n mlx5_glue_close_device(struct ibv_context *context)\n {\n@@ -1402,9 +1420,12 @@ const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue) {\n \t.fork_init = mlx5_glue_fork_init,\n \t.alloc_pd = mlx5_glue_alloc_pd,\n \t.dealloc_pd = mlx5_glue_dealloc_pd,\n+\t.import_pd = mlx5_glue_import_pd,\n+\t.unimport_pd = mlx5_glue_unimport_pd,\n \t.get_device_list = mlx5_glue_get_device_list,\n \t.free_device_list = mlx5_glue_free_device_list,\n \t.open_device = mlx5_glue_open_device,\n+\t.import_device = mlx5_glue_import_device,\n \t.close_device = mlx5_glue_close_device,\n \t.query_device = mlx5_glue_query_device,\n \t.query_device_ex = mlx5_glue_query_device_ex,\ndiff --git a/drivers/common/mlx5/linux/mlx5_glue.h b/drivers/common/mlx5/linux/mlx5_glue.h\nindex 4e6d31f263..5ed38e4fd9 100644\n--- a/drivers/common/mlx5/linux/mlx5_glue.h\n+++ b/drivers/common/mlx5/linux/mlx5_glue.h\n@@ -151,9 +151,13 @@ struct mlx5_glue {\n \tint (*fork_init)(void);\n \tstruct ibv_pd *(*alloc_pd)(struct ibv_context *context);\n \tint (*dealloc_pd)(struct ibv_pd *pd);\n+\tstruct ibv_pd *(*import_pd)(struct ibv_context *context,\n+\t\t\t\t    uint32_t pd_handle);\n+\tvoid (*unimport_pd)(struct ibv_pd *pd);\n \tstruct ibv_device **(*get_device_list)(int *num_devices);\n \tvoid (*free_device_list)(struct ibv_device **list);\n \tstruct ibv_context *(*open_device)(struct ibv_device *device);\n+\tstruct ibv_context *(*import_device)(int cmd_fd);\n \tint (*close_device)(struct ibv_context *context);\n \tint (*query_device)(struct ibv_context *context,\n \t\t\t    struct ibv_device_attr *device_attr);\n",
    "prefixes": [
        "RFC",
        "1/3"
    ]
}