get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1370697,
    "url": "http://patchwork.ozlabs.org/api/patches/1370697/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20200924143231.GA186492@mtl-vdi-166.wap.labs.mlnx/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20200924143231.GA186492@mtl-vdi-166.wap.labs.mlnx>",
    "list_archive_url": null,
    "date": "2020-09-24T14:32:31",
    "name": "[V1,vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module",
    "commit_ref": null,
    "pull_url": null,
    "state": "awaiting-upstream",
    "archived": false,
    "hash": "42db876ea1cf93736e00e3668370be1156c0d6dc",
    "submitter": {
        "id": 80026,
        "url": "http://patchwork.ozlabs.org/api/people/80026/?format=api",
        "name": "Eli Cohen",
        "email": "elic@nvidia.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20200924143231.GA186492@mtl-vdi-166.wap.labs.mlnx/mbox/",
    "series": [
        {
            "id": 203957,
            "url": "http://patchwork.ozlabs.org/api/series/203957/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=203957",
            "date": "2020-09-24T14:32:31",
            "name": "[V1,vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/203957/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1370697/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1370697/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming-netdev@ozlabs.org",
        "Delivered-To": "patchwork-incoming-netdev@ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=23.128.96.18; helo=vger.kernel.org;\n envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=nvidia.com",
            "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=nvidia.com header.i=@nvidia.com header.a=rsa-sha256\n header.s=n1 header.b=C2+HY/jH;\n\tdkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [23.128.96.18])\n\tby ozlabs.org (Postfix) with ESMTP id 4BxyF63Mp3z9sVq\n\tfor <patchwork-incoming-netdev@ozlabs.org>;\n Fri, 25 Sep 2020 00:32:42 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n        id S1728292AbgIXOci (ORCPT\n        <rfc822;patchwork-incoming-netdev@ozlabs.org>);\n        Thu, 24 Sep 2020 10:32:38 -0400",
            "from hqnvemgate24.nvidia.com ([216.228.121.143]:5786 \"EHLO\n        hqnvemgate24.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n        with ESMTP id S1728088AbgIXOci (ORCPT\n        <rfc822;netdev@vger.kernel.org>); Thu, 24 Sep 2020 10:32:38 -0400",
            "from hqmail.nvidia.com (Not Verified[216.228.121.13]) by\n hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA)\n        id <B5f6cada50000>; Thu, 24 Sep 2020 07:31:01 -0700",
            "from mtl-vdi-166.wap.labs.mlnx (10.124.1.5) by HQMAIL107.nvidia.com\n (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 24 Sep\n 2020 14:32:35 +0000"
        ],
        "Date": "Thu, 24 Sep 2020 17:32:31 +0300",
        "From": "Eli Cohen <elic@nvidia.com>",
        "To": "<mst@redhat.com>, <jasowang@redhat.com>,\n        <virtualization@lists.linux-foundation.org>,\n        <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>",
        "CC": "<eli@nvidia.com>",
        "Subject": "[PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct\n module",
        "Message-ID": "<20200924143231.GA186492@mtl-vdi-166.wap.labs.mlnx>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Disposition": "inline",
        "User-Agent": "Mutt/1.9.5 (bf161cf53efb) (2018-04-13)",
        "X-Originating-IP": "[10.124.1.5]",
        "X-ClientProxiedBy": "HQMAIL111.nvidia.com (172.20.187.18) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1;\n        t=1600957862; bh=nc2vNiYTrqyZAVfOBX+/N1PhV107Mq0CuuADPzerkwA=;\n        h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type:\n         Content-Disposition:User-Agent:X-Originating-IP:X-ClientProxiedBy;\n        b=C2+HY/jHQmA3V0wnnGb9jUchWPBfllMmy6N4w28X6W/X4u53yjS3eTvLusqH1Tphj\n         NO6umwaCq5eaKwfAkhJT2wJafZGoHglWqOHuCi3emtbp/nrGYsZBj+/TDz44KyQDl1\n         rKWK+0Zo5aIoHO4Jq5AuzGyxFs1l/epHu2u4hedrmowwxD33+Op2FAHjULur5jTHdj\n         uNch/lgKSpIQlnHtOqz1KBjjUNhPvTQnrfCADL7A0Cak3HkP6TBKeAwR3ZkeItwqce\n         /7qDgFmtLUtvl8ShhfUjS84e8HXydX9vLWpGtnetnXNk2VAj5ghjf0EmNqHcCULw9I\n         74xNOfwsORXwQ==",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Change core vdpa functionality into a loadbale module such that upcoming\nblock implementation will be able to use it.\n\nSigned-off-by: Eli Cohen <elic@nvidia.com>\n---\nV0 --> V1:\nRemoved \"default n\" for configu options as 'n' is the default\n\n drivers/vdpa/Kconfig               |  8 +++-----\n drivers/vdpa/Makefile              |  2 +-\n drivers/vdpa/mlx5/Makefile         |  7 +++++--\n drivers/vdpa/mlx5/core/core_main.c | 20 ++++++++++++++++++++\n drivers/vdpa/mlx5/core/mr.c        |  3 +++\n drivers/vdpa/mlx5/core/resources.c | 10 ++++++++++\n 6 files changed, 42 insertions(+), 8 deletions(-)\n create mode 100644 drivers/vdpa/mlx5/core/core_main.c",
    "diff": "diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig\nindex 4271c408103e..57ff6a7f7401 100644\n--- a/drivers/vdpa/Kconfig\n+++ b/drivers/vdpa/Kconfig\n@@ -29,10 +29,9 @@ config IFCVF\n \t  To compile this driver as a module, choose M here: the module will\n \t  be called ifcvf.\n \n-config MLX5_VDPA\n-\tbool \"MLX5 VDPA support library for ConnectX devices\"\n+config MLX5_VDPA_CORE\n+\ttristate \"MLX5 VDPA support library for ConnectX devices\"\n \tdepends on MLX5_CORE\n-\tdefault n\n \thelp\n \t  Support library for Mellanox VDPA drivers. Provides code that is\n \t  common for all types of VDPA drivers. The following drivers are planned:\n@@ -40,8 +39,7 @@ config MLX5_VDPA\n \n config MLX5_VDPA_NET\n \ttristate \"vDPA driver for ConnectX devices\"\n-\tdepends on MLX5_VDPA\n-\tdefault n\n+\tdepends on MLX5_VDPA_CORE\n \thelp\n \t  VDPA network driver for ConnectX6 and newer. Provides offloading\n \t  of virtio net datapath such that descriptors put on the ring will\ndiff --git a/drivers/vdpa/Makefile b/drivers/vdpa/Makefile\nindex d160e9b63a66..07353bbb9f8b 100644\n--- a/drivers/vdpa/Makefile\n+++ b/drivers/vdpa/Makefile\n@@ -2,4 +2,4 @@\n obj-$(CONFIG_VDPA) += vdpa.o\n obj-$(CONFIG_VDPA_SIM) += vdpa_sim/\n obj-$(CONFIG_IFCVF)    += ifcvf/\n-obj-$(CONFIG_MLX5_VDPA) += mlx5/\n+obj-$(CONFIG_MLX5_VDPA_CORE) += mlx5/\ndiff --git a/drivers/vdpa/mlx5/Makefile b/drivers/vdpa/mlx5/Makefile\nindex 89a5bededc9f..9f50f7e8d889 100644\n--- a/drivers/vdpa/mlx5/Makefile\n+++ b/drivers/vdpa/mlx5/Makefile\n@@ -1,4 +1,7 @@\n subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core\n \n-obj-$(CONFIG_MLX5_VDPA_NET) += mlx5_vdpa.o\n-mlx5_vdpa-$(CONFIG_MLX5_VDPA_NET) += net/main.o net/mlx5_vnet.o core/resources.o core/mr.o\n+obj-$(CONFIG_MLX5_VDPA_CORE) += mlx5_vdpa_core.o\n+mlx5_vdpa_core-$(CONFIG_MLX5_VDPA_CORE) += core/resources.o core/mr.o core/core_main.o\n+\n+obj-$(CONFIG_MLX5_VDPA_NET) += mlx5_vdpa_net.o\n+mlx5_vdpa_net-$(CONFIG_MLX5_VDPA_NET) += net/main.o net/mlx5_vnet.o\ndiff --git a/drivers/vdpa/mlx5/core/core_main.c b/drivers/vdpa/mlx5/core/core_main.c\nnew file mode 100644\nindex 000000000000..4b39b55f57ab\n--- /dev/null\n+++ b/drivers/vdpa/mlx5/core/core_main.c\n@@ -0,0 +1,20 @@\n+// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB\n+/* Copyright (c) 2020 Mellanox Technologies Ltd. */\n+\n+#include <linux/module.h>\n+\n+MODULE_AUTHOR(\"Eli Cohen <elic@nvidia.com>\");\n+MODULE_DESCRIPTION(\"Mellanox VDPA core driver\");\n+MODULE_LICENSE(\"Dual BSD/GPL\");\n+\n+static int __init mlx5_vdpa_core_init(void)\n+{\n+\treturn 0;\n+}\n+\n+static void __exit mlx5_vdpa_core_exit(void)\n+{\n+}\n+\n+module_init(mlx5_vdpa_core_init);\n+module_exit(mlx5_vdpa_core_exit);\ndiff --git a/drivers/vdpa/mlx5/core/mr.c b/drivers/vdpa/mlx5/core/mr.c\nindex ef1c550f8266..c093eab6c714 100644\n--- a/drivers/vdpa/mlx5/core/mr.c\n+++ b/drivers/vdpa/mlx5/core/mr.c\n@@ -434,6 +434,7 @@ int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb)\n \tmutex_unlock(&mr->mkey_mtx);\n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_create_mr);\n \n void mlx5_vdpa_destroy_mr(struct mlx5_vdpa_dev *mvdev)\n {\n@@ -456,6 +457,7 @@ void mlx5_vdpa_destroy_mr(struct mlx5_vdpa_dev *mvdev)\n out:\n \tmutex_unlock(&mr->mkey_mtx);\n }\n+EXPORT_SYMBOL(mlx5_vdpa_destroy_mr);\n \n static bool map_empty(struct vhost_iotlb *iotlb)\n {\n@@ -484,3 +486,4 @@ int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *io\n \n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_handle_set_map);\ndiff --git a/drivers/vdpa/mlx5/core/resources.c b/drivers/vdpa/mlx5/core/resources.c\nindex 96e6421c5d1c..89606a18e286 100644\n--- a/drivers/vdpa/mlx5/core/resources.c\n+++ b/drivers/vdpa/mlx5/core/resources.c\n@@ -98,6 +98,7 @@ int mlx5_vdpa_create_tis(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tisn)\n \n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_create_tis);\n \n void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)\n {\n@@ -108,6 +109,7 @@ void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)\n \tMLX5_SET(destroy_tis_in, in, tisn, tisn);\n \tmlx5_cmd_exec_in(mvdev->mdev, destroy_tis, in);\n }\n+EXPORT_SYMBOL(mlx5_vdpa_destroy_tis);\n \n int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn)\n {\n@@ -121,6 +123,7 @@ int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *\n \n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_create_rqt);\n \n void mlx5_vdpa_destroy_rqt(struct mlx5_vdpa_dev *mvdev, u32 rqtn)\n {\n@@ -131,6 +134,7 @@ void mlx5_vdpa_destroy_rqt(struct mlx5_vdpa_dev *mvdev, u32 rqtn)\n \tMLX5_SET(destroy_rqt_in, in, rqtn, rqtn);\n \tmlx5_cmd_exec_in(mvdev->mdev, destroy_rqt, in);\n }\n+EXPORT_SYMBOL(mlx5_vdpa_destroy_rqt);\n \n int mlx5_vdpa_create_tir(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tirn)\n {\n@@ -144,6 +148,7 @@ int mlx5_vdpa_create_tir(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tirn)\n \n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_create_tir);\n \n void mlx5_vdpa_destroy_tir(struct mlx5_vdpa_dev *mvdev, u32 tirn)\n {\n@@ -154,6 +159,7 @@ void mlx5_vdpa_destroy_tir(struct mlx5_vdpa_dev *mvdev, u32 tirn)\n \tMLX5_SET(destroy_tir_in, in, tirn, tirn);\n \tmlx5_cmd_exec_in(mvdev->mdev, destroy_tir, in);\n }\n+EXPORT_SYMBOL(mlx5_vdpa_destroy_tir);\n \n int mlx5_vdpa_alloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 *tdn)\n {\n@@ -170,6 +176,7 @@ int mlx5_vdpa_alloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 *tdn)\n \n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_alloc_transport_domain);\n \n void mlx5_vdpa_dealloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 tdn)\n {\n@@ -180,6 +187,7 @@ void mlx5_vdpa_dealloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 tdn)\n \tMLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn);\n \tmlx5_cmd_exec_in(mvdev->mdev, dealloc_transport_domain, in);\n }\n+EXPORT_SYMBOL(mlx5_vdpa_dealloc_transport_domain);\n \n int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in,\n \t\t\t  int inlen)\n@@ -266,6 +274,7 @@ int mlx5_vdpa_alloc_resources(struct mlx5_vdpa_dev *mvdev)\n \tmutex_destroy(&mvdev->mr.mkey_mtx);\n \treturn err;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_alloc_resources);\n \n void mlx5_vdpa_free_resources(struct mlx5_vdpa_dev *mvdev)\n {\n@@ -282,3 +291,4 @@ void mlx5_vdpa_free_resources(struct mlx5_vdpa_dev *mvdev)\n \tmutex_destroy(&mvdev->mr.mkey_mtx);\n \tres->valid = false;\n }\n+EXPORT_SYMBOL(mlx5_vdpa_free_resources);\n",
    "prefixes": [
        "V1",
        "vhost-next"
    ]
}