get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47059,
    "url": "http://patches.dpdk.org/api/patches/47059/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181019002358.17132-5-dg@adax.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": "<20181019002358.17132-5-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181019002358.17132-5-dg@adax.com",
    "date": "2018-10-19T00:23:57",
    "name": "[v5,4/5] examples/kni: add log msgs to show and clear stats",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a2dba0d5132e086a13fdec0a343ba09090251498",
    "submitter": {
        "id": 1040,
        "url": "http://patches.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181019002358.17132-5-dg@adax.com/mbox/",
    "series": [
        {
            "id": 1983,
            "url": "http://patches.dpdk.org/api/series/1983/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1983",
            "date": "2018-10-19T00:23:53",
            "name": "kni: add API to set link status on kernel interface",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/1983/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/47059/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/47059/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 95CFC1B142;\n\tFri, 19 Oct 2018 02:24:43 +0200 (CEST)",
            "from mail-qt1-f195.google.com (mail-qt1-f195.google.com\n\t[209.85.160.195]) by dpdk.org (Postfix) with ESMTP id 801307D05\n\tfor <dev@dpdk.org>; Fri, 19 Oct 2018 02:24:42 +0200 (CEST)",
            "by mail-qt1-f195.google.com with SMTP id b4-v6so36472394qtc.7\n\tfor <dev@dpdk.org>; Thu, 18 Oct 2018 17:24:42 -0700 (PDT)",
            "from snappy.local.lan ([191.205.43.134])\n\tby smtp.gmail.com with ESMTPSA id\n\ty124-v6sm12963926qke.22.2018.10.18.17.24.39\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 18 Oct 2018 17:24:40 -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=P7Ux9qcr50GVv35yREQXIrplHsTXudiF0xcI4ttJ4W7DfNp0nknMSoLkI2KKeVHTdJ\n\tMR2D8R83drVBO8j817dvCYKXs0JQYHhfZKEMpwj7ikAZp4fi4U6rANWWgZYQqODw7BLg\n\taJ2MHVFHj6QTssNXHDM7n/757x3BFtdGVklWgl+Uka4I9iNg08FIj809xiw47q5AiPkd\n\t6F0RxVPSmDmfJRWSLbTB3dyVO96Rmum+rOvrN4bugRiX/XnkcACnm5qkZDo5UaRjE9b5\n\tJgS2lrDpV0xlb3nYnQtl5TqPnTyrltoQuIuV5zlakLQIusynS9F4M3GwxVdtffWyUw/r\n\tD5FA==",
        "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=HwZQt7YVQv3FU3sjK+PCIR5iMqbNdtSNz9mwRYJeXd6S3xICgcsWXiZhY0tE7Teq71\n\t0WFSy0anN2a6kmv2fgsfsHcTb7VYF8rNfYUvI1pIg1QcC2IstxMjwdkyELzUgr4LzyRJ\n\tSzI+hXo7unZxotzDUzE1ZsdI6HrT2MCwssP1wgrRlVkZmEZynOCsks5Z+H606LgP2O3X\n\t8Z1ktfu9pvnI/LvFCJTU70HGNV5HtjfIv39foudBPjM2XxPVCadhfVDbfW1NOwDFHGkZ\n\tquyU56HPXO/kRv23t1DG2sICePu9sIIQgj5sndlRULUxs06XYCzoF5ccx897IPdXcnid\n\tAPsA==",
        "X-Gm-Message-State": "ABuFfoh3g5SYs/Qb9wKud14RtDQVTeLc1v9UbK4ENKR7xUk4VU/WTJw/\n\twmKvaV8ndeaLQSFfPGfGXbCmx0Ri",
        "X-Google-Smtp-Source": "ACcGV62fOKxwLVUlTcLc+5ZguotCLgLsm6A0+ihZ6rF0NzmfPQHD3BinZVAaq5yQp35siZY9pBTDkA==",
        "X-Received": "by 2002:ac8:21fd:: with SMTP id\n\t58-v6mr29887303qtz.306.1539908681572; \n\tThu, 18 Oct 2018 17:24:41 -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": "Thu, 18 Oct 2018 21:23:57 -0300",
        "Message-Id": "<20181019002358.17132-5-dg@adax.com>",
        "X-Mailer": "git-send-email 2.19.0",
        "In-Reply-To": "<20181019002358.17132-1-dg@adax.com>",
        "References": "<20180911232906.18352-1-dg@adax.com>\n\t<20181019002358.17132-1-dg@adax.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 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": [
        "v5",
        "4/5"
    ]
}