Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/5111/?format=api
http://patches.dpdk.org/api/patches/5111/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1433359137-12720-1-git-send-email-rolette@infiniteio.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": "<1433359137-12720-1-git-send-email-rolette@infiniteio.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1433359137-12720-1-git-send-email-rolette@infiniteio.com", "date": "2015-06-03T19:18:55", "name": "[dpdk-dev,1/3] kni: minor opto", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "319cc6cea90cab873a1cb916427ddf6940a15afc", "submitter": { "id": 61, "url": "http://patches.dpdk.org/api/people/61/?format=api", "name": "Jay Rolette", "email": "rolette@infiniteio.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1433359137-12720-1-git-send-email-rolette@infiniteio.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/5111/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/5111/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 D95D0C320;\n\tWed, 3 Jun 2015 21:19:29 +0200 (CEST)", "from mail-ob0-f180.google.com (mail-ob0-f180.google.com\n\t[209.85.214.180]) by dpdk.org (Postfix) with ESMTP id 2FD88C31C\n\tfor <dev@dpdk.org>; Wed, 3 Jun 2015 21:19:28 +0200 (CEST)", "by obcnx10 with SMTP id nx10so15923461obc.2\n\tfor <dev@dpdk.org>; Wed, 03 Jun 2015 12:19:27 -0700 (PDT)", "from localhost.localdomain (rrcs-97-77-120-78.sw.biz.rr.com.\n\t[97.77.120.78]) by mx.google.com with ESMTPSA id\n\tc9sm12039646oih.11.2015.06.03.12.19.25\n\t(version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 03 Jun 2015 12:19:26 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=WppOcdz3VCwVce1zqOAJ4pyVp+DT35hZakw8491hUXc=;\n\tb=WRf1pdJTS4GD0glf8fBa4VDH4iqxpZBwFKs4HRdhDPhiwdkzVuqORryxd3l/p2SqdQ\n\tBFt8WuI+6Dhc5OpwYFPACLhL7D5VpMjDKq76XcM6vXYXQgD1AvzLYJUKCa6f14IwfrdM\n\tsbgyRjejQPzAP4SQ8tmmRJ8yXmczBzfnkiDOSylv6k96ov4UwH/lt8lI+JtGmwySqclD\n\tv0so1cXzFIRihRgvvogSaqo1vE0+dRP98+5B5742snuYAyqj/YqhpLes1HekkAvqj24Q\n\tuAsvcIiiz3fMakXf8MkFn+s3rJl4/5pr9FJrXaYIRKTdS541H/ECtagYLodiEGIhGeVm\n\tkJfQ==", "X-Gm-Message-State": "ALoCoQlciF6GSuyjqVqQVnehW+6yYoJg5CIuu9C6vtOG6qmFOfTPuzJ3pWSbwoKfj1RN9TRaa4DI", "X-Received": "by 10.202.87.133 with SMTP id l127mr27191009oib.83.1433359167679;\n\tWed, 03 Jun 2015 12:19:27 -0700 (PDT)", "From": "Jay Rolette <rolette@infiniteio.com>", "To": "dev@dpdk.org", "Date": "Wed, 3 Jun 2015 14:18:55 -0500", "Message-Id": "<1433359137-12720-1-git-send-email-rolette@infiniteio.com>", "X-Mailer": "git-send-email 2.3.2 (Apple Git-55)", "Subject": "[dpdk-dev] [PATCH 1/3] kni: minor opto", "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": "Don't need the 'safe' version of list_for_each_entry() if you aren't deleting from the list as you iterate over it\n\nSigned-off-by: Jay Rolette <rolette@infiniteio.com>\n---\n lib/librte_eal/linuxapp/kni/kni_misc.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c\nindex 1935d32..312f196 100644\n--- a/lib/librte_eal/linuxapp/kni/kni_misc.c\n+++ b/lib/librte_eal/linuxapp/kni/kni_misc.c\n@@ -213,13 +213,12 @@ static int\n kni_thread_single(void *unused)\n {\n \tint j;\n-\tstruct kni_dev *dev, *n;\n+\tstruct kni_dev *dev;\n \n \twhile (!kthread_should_stop()) {\n \t\tdown_read(&kni_list_lock);\n \t\tfor (j = 0; j < KNI_RX_LOOP_NUM; j++) {\n-\t\t\tlist_for_each_entry_safe(dev, n,\n-\t\t\t\t\t&kni_list_head, list) {\n+\t\t\tlist_for_each_entry(dev, &kni_list_head, list) {\n #ifdef RTE_KNI_VHOST\n \t\t\t\tkni_chk_vhost_rx(dev);\n #else\n", "prefixes": [ "dpdk-dev", "1/3" ] }{ "id": 5111, "url": "