get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 12010,
    "url": "http://patchwork.dpdk.org/api/patches/12010/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1460370772-17663-1-git-send-email-thomas.monjalon@6wind.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": "<1460370772-17663-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1460370772-17663-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2016-04-11T10:32:52",
    "name": "[dpdk-dev,v4] examples/vm_power_manager: fix libvirt dependency check",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d2387621a3ba5c35e39e4ffa656ec28db7a6743f",
    "submitter": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1460370772-17663-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patchwork.dpdk.org/api/patches/12010/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/12010/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id D7C922C38;\n\tMon, 11 Apr 2016 12:32:59 +0200 (CEST)",
            "from mail-wm0-f44.google.com (mail-wm0-f44.google.com\n\t[74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 311C911A2\n\tfor <dev@dpdk.org>; Mon, 11 Apr 2016 12:32:58 +0200 (CEST)",
            "by mail-wm0-f44.google.com with SMTP id n3so98273598wmn.0\n\tfor <dev@dpdk.org>; Mon, 11 Apr 2016 03:32:58 -0700 (PDT)",
            "from XPS13.localdomain (245.111.75.86.rev.sfr.net. [86.75.111.245])\n\tby smtp.gmail.com with ESMTPSA id\n\tm6sm27011649wje.21.2016.04.11.03.32.56\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 11 Apr 2016 03:32:57 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=OlpJCZ1pMIaIdcFD10zEc0Hrx0ZoR3oYDP1H1duvNjU=;\n\tb=m6S41jsS2tZqhDBpeXBUQK7fIr7+dBrYP9ix4qoP7d90YbtJO7dMe464LGwNHvTh7F\n\tSDq8ixSfBa0nlez0GUPApAcHbvYLu1t9KcYEHRAJCYnns6WZNUqW1PgTvFU8wX57i3oh\n\tnUkOjLNSu9uKbqJmMrZshW8GXbJUx8MwLg0QAtRxBeYmuhR2WgLO/iKpwzypP8LS90fn\n\t++Kd+nuF41HUYjelky3JUxqgQ0jMX9IwIuLcg6AWnMtobgNqiQckqZcYAHxvrgFNIWHl\n\tKfNSS0EHpO1u2HvXw0m2x2kpbW90a+VRZlpqfxyWFrMxJP9Y8c3HIrMn1XAY5UbdSUg6\n\tc/ag==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=OlpJCZ1pMIaIdcFD10zEc0Hrx0ZoR3oYDP1H1duvNjU=;\n\tb=iqgzexiTQdscAJppORF5dywfC2NWqy73NIiohAc7QnMoUcHBVG1GIZ/WAEQZaWpO2Z\n\tOMixyJ/u9siU80F2n0k7eXauIVzMko+88QynR+jC+Viph6nx9DKpRg3QDCV8YBWTwpGs\n\tC22vQcI0dbav3m23V2s4s1ttRxGRphBlh5RYSEUz/UQN3A+0GXQMic9pLzdbKpI38Amq\n\t/qsMG99w+5wpV6uuoxk8ltZ4a7Nb8X6fF5amefL7cS9fFWZVnSoHIlmN36uoTOJbxJi+\n\tyOnZWeGbb429+rn1BPPPbOrvrBUh6pHJW97GvK/ZuEjlBkBQYaTsoft1vKDn03F/tn6+\n\tumuQ==",
        "X-Gm-Message-State": "AOPr4FWmypXatWfxvamE0zBJ7CUe7tyb0yufnw3Bg1MSx0P/D1KMNGYWVKg6Wf4GCiaBiiP+",
        "X-Received": "by 10.28.91.199 with SMTP id p190mr8824954wmb.47.1460370777986; \n\tMon, 11 Apr 2016 03:32:57 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Marvin Liu <yong.liu@intel.com>",
        "Date": "Mon, 11 Apr 2016 12:32:52 +0200",
        "Message-Id": "<1460370772-17663-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "In-Reply-To": "<1460369173-30343-1-git-send-email-yong.liu@intel.com>",
        "References": "<1460369173-30343-1-git-send-email-yong.liu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4] examples/vm_power_manager: fix libvirt\n\tdependency check",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "From: Marvin Liu <yong.liu@intel.com>\n\nvm_power_manager utilize libvirt API virDomainGetVcpuPinInfo to\nretrieve domU vcpu information. This API is implemented from version 0.9.3.\nSuse11 SP3 32bit default libvirt version is 0.8.8.\n\nexamples/vm_power_manager/channel_manager.c:\nchannel_manager.c:117:3: error: implicit declaration of function\n‘virDomainGetVcpuPinInfo’\n\nCheck and skip it from examples or raise an error when trying to compile\nwithout libvirt or with a too old libvirt.\n\nFixes: e8ae9b662 (\"examples/vm_power: channel manager and monitor in host\")\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n examples/Makefile                  | 4 ++++\n examples/vm_power_manager/Makefile | 6 ++++++\n 2 files changed, 10 insertions(+)\n\nv4: mix v2 and v3 to skip in examples list but raise an error if trying\n    to compile directly",
    "diff": "diff --git a/examples/Makefile b/examples/Makefile\nindex a8bc381..fcf1eb7 100644\n--- a/examples/Makefile\n+++ b/examples/Makefile\n@@ -87,6 +87,10 @@ DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost\n DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += vhost_xen\n DIRS-y += vmdq\n DIRS-y += vmdq_dcb\n+ifeq ($(shell pkg-config --atleast-version=0.9.3 libvirt; echo $$?), 0)\n DIRS-$(CONFIG_RTE_LIBRTE_POWER) += vm_power_manager\n+else\n+$(info vm_power_manager requires libvirt >= 0.9.3)\n+endif\n \n include $(RTE_SDK)/mk/rte.extsubdir.mk\ndiff --git a/examples/vm_power_manager/Makefile b/examples/vm_power_manager/Makefile\nindex 113dbc4..59a9641 100644\n--- a/examples/vm_power_manager/Makefile\n+++ b/examples/vm_power_manager/Makefile\n@@ -29,6 +29,10 @@\n #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n \n+ifneq ($(shell pkg-config --atleast-version=0.9.3 libvirt; echo $$?), 0)\n+$(error vm_power_manager requires libvirt >= 0.9.3)\n+else\n+\n ifeq ($(RTE_SDK),)\n $(error \"Please define RTE_SDK environment variable\")\n endif\n@@ -57,3 +61,5 @@ CFLAGS_main.o += -Wno-return-type\n endif\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n+\n+endif # libvirt check\n",
    "prefixes": [
        "dpdk-dev",
        "v4"
    ]
}