Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/45470/?format=api
http://patches.dpdk.org/api/patches/45470/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180927003256.6901-6-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": "<20180927003256.6901-6-dg@adax.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180927003256.6901-6-dg@adax.com", "date": "2018-09-27T00:32:55", "name": "[v3,5/6] examples/kni: add log msgs to show and clear stats", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "d750686ce21006192c3b5367312752159330e96d", "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/20180927003256.6901-6-dg@adax.com/mbox/", "series": [ { "id": 1530, "url": "http://patches.dpdk.org/api/series/1530/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1530", "date": "2018-09-27T00:32:50", "name": "kni: add API to set link status on kernel interface", "version": 3, "mbox": "http://patches.dpdk.org/series/1530/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/45470/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/45470/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 DF56D1B3A1;\n\tThu, 27 Sep 2018 02:34:27 +0200 (CEST)", "from mail-qt1-f194.google.com (mail-qt1-f194.google.com\n\t[209.85.160.194]) by dpdk.org (Postfix) with ESMTP id E28281B277\n\tfor <dev@dpdk.org>; Thu, 27 Sep 2018 02:34:15 +0200 (CEST)", "by mail-qt1-f194.google.com with SMTP id c25-v6so959080qtp.6\n\tfor <dev@dpdk.org>; Wed, 26 Sep 2018 17:34:15 -0700 (PDT)", "from snappy.local.lan (189-46-124-178.dsl.telesp.net.br.\n\t[189.46.124.178]) by smtp.gmail.com with ESMTPSA id\n\tx26-v6sm463053qth.15.2018.09.26.17.34.12\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 26 Sep 2018 17:34:14 -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=W69kTPPQZsG3Xfc6I/641TiWiA+zDnC2Z/KCUco6T/E=;\n\tb=bJ17VFUeURhw3R3L2uEkJQ2YBJGSeQh/9/vpXHYURy522YPXHrnA9dIuHi2PcLKf1K\n\tizSSyUSThJ5Yh73O58243mp4yjjgYUnrVq9+QaL5zcD3KMT2w/+K4nP6wzDHu7PKo/vr\n\t6JPxacbNx4jkxpTqYHcT10f/XQ/w/y442+O+ivX3O4K065xYFSbc2rdkUj9FUXQKR4nM\n\t+phYjwpe61WQJU1YHW9zdBuxPPQ3VY0U5YE1MAxjCMSfmgd2AoqPmOafhz6HQJolkpWJ\n\tDLLjou3i1YUm2YAtAPAamVp5u9J4EtPutAhOkjvpy/jXBEZ671qzd7M0T48ApUPARHPo\n\t/moA==", "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=W69kTPPQZsG3Xfc6I/641TiWiA+zDnC2Z/KCUco6T/E=;\n\tb=if7MuTT2Uu0rJqHepIWz9ynCOrb3akyFAc9WvN4wX4GsS8NcsFmcSg4uZqIX4TcYnp\n\t9I8zjt6TqvE+SLMOiOIWg7CNAbRnolHYn84S6BpKDsxsC14jWO+t9cvBlxgpXpmmJBKe\n\tQMgDuAugnlrkprM8gUArKxgpSGAesTAIBtvWOcIlQ5oEYK/p+WzUNugJJqYvRnRXIwmq\n\tjkqwOqizUfNSrF53FwOTZZwcG+SbXzpycSVMyQ33Frb6752WvAyuoAD/S0ieT24xpykd\n\tZFSA/wjVoWyg11iFNwUOrQwtpuZYs0Lwb8sR24CU6WmvymriJ3jMlhRCir3W6nAUzQr/\n\trByg==", "X-Gm-Message-State": "ABuFfojSn4WMH19OA+SRCyWQqdRx9PVadbIWXQ4HlT8478pPwZe31JUN\n\tdNN6nvYVDvhGoL4bb0bFbZMyW/3q", "X-Google-Smtp-Source": "ACcGV627LDqVtBZbLTNvmkBSYnMdPw0Q+j4qgibFE5Hlh/OkPZsb5eOE163vUP95ETbidcHuRH/8aQ==", "X-Received": "by 2002:a0c:bf49:: with SMTP id\n\tb9-v6mr6253808qvj.65.1538008454969; \n\tWed, 26 Sep 2018 17:34:14 -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, 26 Sep 2018 21:32:55 -0300", "Message-Id": "<20180927003256.6901-6-dg@adax.com>", "X-Mailer": "git-send-email 2.19.0", "In-Reply-To": "<20180927003256.6901-1-dg@adax.com>", "References": "<20180911232906.18352-1-dg@adax.com>\n\t<20180927003256.6901-1-dg@adax.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 5/6] 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 be721b9cc..357cfd6fc 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@@ -869,6 +868,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@@ -924,6 +924,16 @@ main(int argc, char** argv)\n \t\tkni_alloc(port);\n \t}\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 \tkni_running = 1;\n \tret = rte_ctrl_thread_create(&kni_link_tid,\n \t\t\t\t \"KNI link status check\", NULL,\n", "prefixes": [ "v3", "5/6" ] }{ "id": 45470, "url": "