get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47386,
    "url": "http://patchwork.dpdk.org/api/patches/47386/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20181024222631.30461-5-dg@adax.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": "<20181024222631.30461-5-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181024222631.30461-5-dg@adax.com",
    "date": "2018-10-24T22:26:30",
    "name": "[v7,4/5] examples/kni: add log msgs to show and clear stats",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a2dba0d5132e086a13fdec0a343ba09090251498",
    "submitter": {
        "id": 1040,
        "url": "http://patchwork.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20181024222631.30461-5-dg@adax.com/mbox/",
    "series": [
        {
            "id": 2077,
            "url": "http://patchwork.dpdk.org/api/series/2077/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=2077",
            "date": "2018-10-24T22:26:26",
            "name": "kni: add API to set link status on kernel interface",
            "version": 7,
            "mbox": "http://patchwork.dpdk.org/series/2077/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/47386/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/47386/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 9FA1B568A;\n\tThu, 25 Oct 2018 00:26:57 +0200 (CEST)",
            "from mail-qk1-f195.google.com (mail-qk1-f195.google.com\n\t[209.85.222.195]) by dpdk.org (Postfix) with ESMTP id 53B2E5398\n\tfor <dev@dpdk.org>; Thu, 25 Oct 2018 00:26:55 +0200 (CEST)",
            "by mail-qk1-f195.google.com with SMTP id o89so4510310qko.0\n\tfor <dev@dpdk.org>; Wed, 24 Oct 2018 15:26:55 -0700 (PDT)",
            "from snappy.local.lan ([179.228.213.114])\n\tby smtp.gmail.com with ESMTPSA id\n\ts52-v6sm5506026qts.5.2018.10.24.15.26.51\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 24 Oct 2018 15:26:53 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=1W+gCUuhLSwf9fXApqIyFdqnIzxHZWjNFsIVtIx0sc8=;\n\tb=HT/UJiPFq5gmkMXlyAfK/AOkoL0V3b55fSXpc2C4CuMgfwou7KNn+wMJ1wwAeoa7XX\n\tR6no63+qZeWSL6JbPDL5fnk9q5i3YTmoI6Hu4XDJYT8xwzBCS6mhWfR2kjamGTEA6Qmh\n\t7ClTzPITFfqVf/UYYNtGxD3zzS3kdcn3UUTKsywD5LZ/ckXExYRRhPy38VKFC2hxqaTd\n\tmsYs/R0RW4Y+K9NTrIAN7MxX/RTufbLW8KfK2XXHm3ephrMZNya8zGCmZzz/CN/QXmEW\n\tbUe1H5JhX29D8XXuqt/1ZlA5l7TLztH6OCi9p0hY8GUpESR79hXh8MHt67kZW6Zner1U\n\teTvQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=1W+gCUuhLSwf9fXApqIyFdqnIzxHZWjNFsIVtIx0sc8=;\n\tb=BYN9qMmLcIRFqHhnFbw5KzSW91zbAd8DYWRdclNXjVtXzC8Il/UIFYZzQ4HHTvGczX\n\twUrFX4w0XfdpCxiqoF7x7IllGrlQzmnI5gP6Oh03/6VdqwDhOuN74KkuxXa/QQkimWrZ\n\tNyYqTlD1Uy1BFOwdls/mJu1lrnotxv+YNw/VixZyr+67bLj79mEZVgJjpgl1VueIAoVS\n\tHDBAnk9f4WVG7/aqGi+J4/LvsYYWYAOt6RvjicTAl7mWSGTITFGj9I0KrMydt3LmPQpp\n\tlOKde6Zf8Sa7MFHBGUfbwNs+Rx48fk2hFa3snxAuPwnTPIBZS9xtfe8hZDJFd9GaHa4T\n\tn2+g==",
        "X-Gm-Message-State": "AGRZ1gKz5Q14jC0qoAhYw03ZYEejBQG5CawXmDCWaHmP8kHq3zK7hXKa\n\tcIhGHfUw2CLpy5prIEh3Bw/DHoPT",
        "X-Google-Smtp-Source": "AJdET5eZsYNKRKSnSuxXce5aR9kO28UwoSmVgx6HK28YRCq1AaqPY3Zix40eShp04EOMGMR2C8d5Cw==",
        "X-Received": "by 2002:a37:e50f:: with SMTP id\n\te15-v6mr3256501qkg.84.1540420014295; \n\tWed, 24 Oct 2018 15:26:54 -0700 (PDT)",
        "From": "Dan Gora <dg@adax.com>",
        "To": "dev@dpdk.org",
        "Cc": "Igor Ryzhov <iryzhov@nfware.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Dan Gora <dg@adax.com>",
        "Date": "Wed, 24 Oct 2018 19:26:30 -0300",
        "Message-Id": "<20181024222631.30461-5-dg@adax.com>",
        "X-Mailer": "git-send-email 2.19.0",
        "In-Reply-To": "<20181024222631.30461-1-dg@adax.com>",
        "References": "<20180911232906.18352-1-dg@adax.com>\n\t<20181024222631.30461-1-dg@adax.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 4/5] examples/kni: add log msgs to show and\n\tclear stats",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add logging messages showing the commands necessary for the user to\nhave the application display and zero the statistics.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n examples/kni/main.c | 16 +++++++++++++---\n 1 file changed, 13 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/examples/kni/main.c b/examples/kni/main.c\nindex 4fda51713..0e3b2a2f7 100644\n--- a/examples/kni/main.c\n+++ b/examples/kni/main.c\n@@ -171,14 +171,13 @@ signal_handler(int signum)\n \t/* When we receive a USR2 signal, reset stats */\n \tif (signum == SIGUSR2) {\n \t\tmemset(&kni_stats, 0, sizeof(kni_stats));\n-\t\tprintf(\"\\n**Statistics have been reset**\\n\");\n+\t\tprintf(\"\\n** Statistics have been reset **\\n\");\n \t\treturn;\n \t}\n \n \t/* When we receive a RTMIN or SIGINT signal, stop kni processing */\n \tif (signum == SIGRTMIN || signum == SIGINT){\n-\t\tprintf(\"SIGRTMIN is received, and the KNI processing is \"\n-\t\t\t\t\t\t\t\"going to stop\\n\");\n+\t\tprintf(\"\\nSIGRTMIN/SIGINT received. KNI processing stopping.\\n\");\n \t\trte_atomic32_inc(&kni_stop);\n \t\treturn;\n         }\n@@ -950,6 +949,7 @@ main(int argc, char** argv)\n \tunsigned i;\n \tvoid *retval;\n \tpthread_t kni_link_tid;\n+\tint pid;\n \n \t/* Associate signal_hanlder function with USR signals */\n \tsignal(SIGUSR1, signal_handler);\n@@ -1006,6 +1006,16 @@ main(int argc, char** argv)\n \t}\n \tcheck_all_ports_link_status(ports_mask);\n \n+\tpid = getpid();\n+\tRTE_LOG(INFO, APP, \"========================\\n\");\n+\tRTE_LOG(INFO, APP, \"KNI Running\\n\");\n+\tRTE_LOG(INFO, APP, \"kill -SIGUSR1 %d\\n\", pid);\n+\tRTE_LOG(INFO, APP, \"    Show KNI Statistics.\\n\");\n+\tRTE_LOG(INFO, APP, \"kill -SIGUSR2 %d\\n\", pid);\n+\tRTE_LOG(INFO, APP, \"    Zero KNI Statistics.\\n\");\n+\tRTE_LOG(INFO, APP, \"========================\\n\");\n+\tfflush(stdout);\n+\n \tret = rte_ctrl_thread_create(&kni_link_tid,\n \t\t\t\t     \"KNI link status check\", NULL,\n \t\t\t\t     monitor_all_ports_link_status, NULL);\n",
    "prefixes": [
        "v7",
        "4/5"
    ]
}