Show a patch.

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

{
    "id": 46927,
    "url": "http://patches.dpdk.org/api/patches/46927/",
    "web_url": "http://patches.dpdk.org/patch/46927/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20181017010412.23141-6-dg@adax.com>",
    "date": "2018-10-17T01:04:12",
    "name": "[v4,5/6] 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/",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/patch/46927/mbox/",
    "series": [
        {
            "id": 1288,
            "url": "http://patches.dpdk.org/api/series/1288/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1288",
            "date": "2018-09-11T23:29:04",
            "name": "kni: add API to set link status on kernel interface",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1288/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/46927/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/46927/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "Date": "Tue, 16 Oct 2018 22:04:12 -0300",
        "In-Reply-To": "<20180911232906.18352-1-dg@adax.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.19.0",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 88AAC5B38;\n\tWed, 17 Oct 2018 03:04:53 +0200 (CEST)",
            "from mail-qk1-f177.google.com (mail-qk1-f177.google.com\n\t[209.85.222.177]) by dpdk.org (Postfix) with ESMTP id 1E6EA58EC\n\tfor <dev@dpdk.org>; Wed, 17 Oct 2018 03:04:50 +0200 (CEST)",
            "by mail-qk1-f177.google.com with SMTP id 204-v6so15432836qkd.5\n\tfor <dev@dpdk.org>; Tue, 16 Oct 2018 18:04:50 -0700 (PDT)",
            "from snappy.local.lan ([187.74.142.5])\n\tby smtp.gmail.com with ESMTPSA id\n\tv54-v6sm19547508qtc.81.2018.10.16.18.04.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 16 Oct 2018 18:04:48 -0700 (PDT)"
        ],
        "References": "<20180911232906.18352-1-dg@adax.com>",
        "X-Google-Smtp-Source": "ACcGV60WfrRPVjs57D6g/J9d8Wuqcft5yaNg0FysuqWG4b9faaC4bcvVNHjKpgFr/8nl1S/D3NJBiw==",
        "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=tO8aIB+Hw72z5n3ko5IxaglmkWXugqm628TkFFBTpDs=;\n\tb=Dsa0qBT4RMNS1Pu4OeF2W7qTQol5M686dFIy15DBx+Xg/3UE5QQ+WT3cC6AnqTWtab\n\t4YiWi2uBzCu4UJfr9eGQzDa9zxxNF2/FjaD27MxbILlmkGITtPRt12hUlfyIxelVXDjs\n\tEbcfbJSvIqpdGYF6gJc9CUqvH2mNRhbGzTiqDTB5aBN5VKS2atDgu5xhMY5oGy3CQta/\n\tlmyfl9qn3QooV+JcVFbPjljsYzoW3iZyzl2MWLwTVzlOv20p8UBxCXddKz1I2fEhYCPH\n\tHKWbwq1kcv7gzlZ9N5Ct0ku/MJKKglsig5I5QVhQvt/TpjhPSTEtSkzz+B5DAdlP2fl6\n\t1/Dw==",
        "MIME-Version": "1.0",
        "X-Received": "by 2002:a37:72c1:: with SMTP id\n\tn184-v6mr22854092qkc.133.1539738289173; \n\tTue, 16 Oct 2018 18:04:49 -0700 (PDT)",
        "Message-Id": "<20181017010412.23141-6-dg@adax.com>",
        "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=tO8aIB+Hw72z5n3ko5IxaglmkWXugqm628TkFFBTpDs=;\n\tb=mfyBSInFWjWUsQeYxneSR3U0paLKMr1Dw2zq8n8+3O6zZyQSnt/VkyKvGMi2CTDxCm\n\toyyi7ZyxMh2eo6joklefTASDp9xIaOXUiPRyjBdSqFOr/TaAD9z3powGa4/VwxADvrnb\n\tSKp5RquxkgIzZa3B8mGhN+y1Ke42EepEZnwfR7SM+8oG2JBgJtpdgbzIgUtvGRVJS46U\n\tPDASYNyykIB8hUGW7PNGTzfumALgRxVs2+jKQlHX/DjaT0L7LfAxZWX+OOaJMMx7wQIn\n\tPsVoK85rDXP0GB2Mkpnt9//j9UETM6ngPjRHNY/9TKGActshKBYIJyEsHxKTGoo4lf8b\n\t1UNg==",
        "Delivered-To": "patchwork@dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "From": "Dan Gora <dg@adax.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org",
        "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>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Gm-Message-State": "ABuFfoiAMRcQdD1crwOt1vBTYkXOkma2rnIf7LVDGMyCW7l5SYTuYaw4\n\tjzECRb6lHbEJ/nuvJWjZ8Zen+BYliPc=",
        "Cc": "Igor Ryzhov <iryzhov@nfware.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Dan Gora <dg@adax.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v4 5/6] examples/kni: add log msgs to show and\n\tclear stats"
    },
    "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 634024960..314e19c68 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": [
        "v4",
        "5/6"
    ]
}