Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1195/?format=api
https://patches.dpdk.org/api/patches/1195/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1415358037-424-1-git-send-email-marc.sune@bisdn.de/", "project": { "id": 1, "url": "https://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": "<1415358037-424-1-git-send-email-marc.sune@bisdn.de>", "list_archive_url": "https://inbox.dpdk.org/dev/1415358037-424-1-git-send-email-marc.sune@bisdn.de", "date": "2014-11-07T11:00:37", "name": "[dpdk-dev] Adding RTE_KNI_PREEMPT configuration option", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "054751530df1189f238198f1bdadbb9b6f751b7a", "submitter": { "id": 83, "url": "https://patches.dpdk.org/api/people/83/?format=api", "name": "Marc Sune", "email": "marc.sune@bisdn.de" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1415358037-424-1-git-send-email-marc.sune@bisdn.de/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1195/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1195/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 67EF07EC4;\n\tFri, 7 Nov 2014 11:52:22 +0100 (CET)", "from mx.bisdn.de (mx.bisdn.de [185.27.182.31])\n\tby dpdk.org (Postfix) with ESMTP id 3C4F3590B\n\tfor <dev@dpdk.org>; Fri, 7 Nov 2014 11:52:03 +0100 (CET)", "from localhost.localdomain (unknown [172.16.251.36])\n\tby mx.bisdn.de (Postfix) with ESMTP id EA93FA09C5;\n\tFri, 7 Nov 2014 12:01:32 +0100 (CET)" ], "From": "Marc Sune <marc.sune@bisdn.de>", "To": "dev@dpdk.org", "Date": "Fri, 7 Nov 2014 12:00:37 +0100", "Message-Id": "<1415358037-424-1-git-send-email-marc.sune@bisdn.de>", "X-Mailer": "git-send-email 1.7.10.4", "Subject": "[dpdk-dev] [PATCH] Adding RTE_KNI_PREEMPT configuration option", "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": "This patch introduces CONFIG_RTE_KNI_PREEMPT flag. When set to 'no', KNI\nkernel thread(s) do not call schedule_timeout_interruptible(), which improves\noverall KNI performance at the expense of CPU cycles (polling).\n\nDefault values is 'yes', maintaining the same behaviour as of now.\n\nSigned-off-by: Marc Sune <marc.sune@bisdn.de>\n---\n config/common_linuxapp | 1 +\n lib/librte_eal/linuxapp/kni/kni_misc.c | 4 ++++\n 2 files changed, 5 insertions(+)", "diff": "diff --git a/config/common_linuxapp b/config/common_linuxapp\nindex 57b61c9..24b529d 100644\n--- a/config/common_linuxapp\n+++ b/config/common_linuxapp\n@@ -380,6 +380,7 @@ CONFIG_RTE_LIBRTE_PIPELINE=y\n # Compile librte_kni\n #\n CONFIG_RTE_LIBRTE_KNI=y\n+CONFIG_RTE_KNI_PREEMPT=y\n CONFIG_RTE_KNI_KO_DEBUG=n\n CONFIG_RTE_KNI_VHOST=n\n CONFIG_RTE_KNI_VHOST_MAX_CACHE_SIZE=1024\ndiff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c\nindex ba77776..e7e6c27 100644\n--- a/lib/librte_eal/linuxapp/kni/kni_misc.c\n+++ b/lib/librte_eal/linuxapp/kni/kni_misc.c\n@@ -229,9 +229,11 @@ kni_thread_single(void *unused)\n \t\t\t}\n \t\t}\n \t\tup_read(&kni_list_lock);\n+#ifdef RTE_KNI_PREEMPT\n \t\t/* reschedule out for a while */\n \t\tschedule_timeout_interruptible(usecs_to_jiffies( \\\n \t\t\t\tKNI_KTHREAD_RESCHEDULE_INTERVAL));\n+#endif\n \t}\n \n \treturn 0;\n@@ -252,8 +254,10 @@ kni_thread_multiple(void *param)\n #endif\n \t\t\tkni_net_poll_resp(dev);\n \t\t}\n+#ifdef RTE_KNI_PREEMPT\n \t\tschedule_timeout_interruptible(usecs_to_jiffies( \\\n \t\t\t\tKNI_KTHREAD_RESCHEDULE_INTERVAL));\n+#endif\n \t}\n \n \treturn 0;\n", "prefixes": [ "dpdk-dev" ] }{ "id": 1195, "url": "