get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35173,
    "url": "http://patches.dpdk.org/api/patches/35173/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180214145330.4679-3-zhiyong.yang@intel.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": "<20180214145330.4679-3-zhiyong.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180214145330.4679-3-zhiyong.yang@intel.com",
    "date": "2018-02-14T14:53:28",
    "name": "[dpdk-dev,2/4] net/virtio-user: add data members to support server mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6f684cab2565c721c03864a44da9dfd3d7e91f25",
    "submitter": {
        "id": 540,
        "url": "http://patches.dpdk.org/api/people/540/?format=api",
        "name": "Yang, Zhiyong",
        "email": "zhiyong.yang@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180214145330.4679-3-zhiyong.yang@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35173/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35173/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 5F7821B342;\n\tWed, 14 Feb 2018 15:53:40 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id CB6501B327\n\tfor <dev@dpdk.org>; Wed, 14 Feb 2018 15:53:38 +0100 (CET)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Feb 2018 06:53:38 -0800",
            "from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.198])\n\tby fmsmga007.fm.intel.com with ESMTP; 14 Feb 2018 06:53:36 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.46,512,1511856000\"; d=\"scan'208\";a=\"17661426\"",
        "From": "Zhiyong Yang <zhiyong.yang@intel.com>",
        "To": "dev@dpdk.org, yliu@fridaylinux.org, maxime.coquelin@redhat.com,\n\tjianfeng.tan@intel.com, tiwei.bie@intel.com, zhihong.wang@intel.com",
        "Cc": "dong1.wang@intel.com,\n\tZhiyong Yang <zhiyong.yang@intel.com>",
        "Date": "Wed, 14 Feb 2018 22:53:28 +0800",
        "Message-Id": "<20180214145330.4679-3-zhiyong.yang@intel.com>",
        "X-Mailer": "git-send-email 2.13.3",
        "In-Reply-To": "<20180214145330.4679-1-zhiyong.yang@intel.com>",
        "References": "<20180214145330.4679-1-zhiyong.yang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/4] net/virtio-user: add data members to support\n\tserver mode",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add data members so as to support server mode.\n\nSigned-off-by: Zhiyong Yang <zhiyong.yang@intel.com>\n---\n drivers/net/virtio/virtio_user/virtio_user_dev.h | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.h b/drivers/net/virtio/virtio_user/virtio_user_dev.h\nindex 64467b4f9..e640a3438 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.h\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.h\n@@ -6,13 +6,21 @@\n #define _VIRTIO_USER_DEV_H\n \n #include <limits.h>\n+#include <stdbool.h>\n #include \"../virtio_pci.h\"\n #include \"../virtio_ring.h\"\n #include \"vhost.h\"\n+#include \"fd_man.h\"\n \n struct virtio_user_dev {\n \t/* for vhost_user backend */\n \tint\t\tvhostfd;\n+\tint\t\tlistenfd;   /* listening fd  */\n+\tbool\t\tconnected;  /* connection status */\n+\n+\t/* support for server/clinet mode */\n+\tbool\t\tis_server;\n+\tstruct fdset\tfdset;\n \n \t/* for vhost_kernel backend */\n \tchar\t\t*ifname;\n",
    "prefixes": [
        "dpdk-dev",
        "2/4"
    ]
}