Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/14602/?format=api
http://patchwork.dpdk.org/api/patches/14602/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1467812504-24742-1-git-send-email-thomas.monjalon@6wind.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1467812504-24742-1-git-send-email-thomas.monjalon@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1467812504-24742-1-git-send-email-thomas.monjalon@6wind.com", "date": "2016-07-06T13:41:44", "name": "[dpdk-dev,v2] scripts: check headline of drivers commits", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "469723ba9edd03c1a7e0483dcf5673012237afd0", "submitter": { "id": 1, "url": "http://patchwork.dpdk.org/api/people/1/?format=api", "name": "Thomas Monjalon", "email": "thomas.monjalon@6wind.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1467812504-24742-1-git-send-email-thomas.monjalon@6wind.com/mbox/", "series": [], "comments": "http://patchwork.dpdk.org/api/patches/14602/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/14602/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 6EB186CCF;\n\tWed, 6 Jul 2016 15:41:51 +0200 (CEST)", "from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48]) by dpdk.org (Postfix) with ESMTP id AD1216CC4\n\tfor <dev@dpdk.org>; Wed, 6 Jul 2016 15:41:50 +0200 (CEST)", "by mail-wm0-f48.google.com with SMTP id f126so174261515wma.1\n\tfor <dev@dpdk.org>; Wed, 06 Jul 2016 06:41:50 -0700 (PDT)", "from XPS13.localdomain (184.203.134.77.rev.sfr.net.\n\t[77.134.203.184]) by smtp.gmail.com with ESMTPSA id\n\txs9sm4077543wjc.11.2016.07.06.06.41.49\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 06 Jul 2016 06:41:49 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=gXgUCi2OaRXjUh2vdRKtQ6qM+aQEnldQMolEJLdC7qI=;\n\tb=dXceedkiEW3+ioDAEe6mxD0V0vAQvXEjhRIahG3whhakzRER0H8F4hLbksYPwkzUiE\n\thFPJyNSEPrBwXmYZ/JIe/+ZCzLfo06C4krvU5kyE1eX1aQRBnmBviaQIZch9LssnCyuv\n\tpeYlDxg/bc3ZTEiTfAn99wDxLaYYqf5Y/dWiZjiyT/xfu/GbRXdyS8D019JxYW9Yn8UC\n\ts5ApCkIXdAg/FbDOY9fXz5kb0GfwCjESmA453oHOJiEmy2cyXuZHnrNYntwxwB9N+dyk\n\ty0q/fjVxcbBnQ/eqzl+5kXmf9ORt3l/P5ZnbQlGVPmnafLdYNGtFVXzvLSpwNEq+bz7H\n\t611g==", "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:in-reply-to\n\t:references;\n\tbh=gXgUCi2OaRXjUh2vdRKtQ6qM+aQEnldQMolEJLdC7qI=;\n\tb=D1Zv6IwijVs4Yg459B9+UNUcarGpFX9VPREw8jo4QuPdDgl5y2IOeQflwfD8cDSktG\n\tcIxqhv/NeTBzrdlQ4SGgGuJeDocRh2d6bJRBeDg7G7HFFRewNhMx0Zs895BKPKUYkmGx\n\tlx9sxBgQlSCu7LdxNZCEN73OEtb2XMRhMNKB1lHmraMt0mlz/hrBIiTrzszjrnmkYvvN\n\tXBIoLuN8oWKxLCii4ALb1qPX/0dGXwZdL2z/aaydUAt+DZi2Ob4uMpHQ3q3+YklR17h8\n\tdTSvlj/jd0qG+Ro0Wg2w1ETkPGdGPOVGAHd0gq31QWddrRfGdUUpnEJhtA5E3kfccmWP\n\twYDw==", "X-Gm-Message-State": "ALyK8tIJmhPar+iEV7JPfYiFS4BhblZT4MOL8XmNArVs25x6Mzg8pvNri5HG9xdbt/OmP+uZ", "X-Received": "by 10.194.157.162 with SMTP id\n\twn2mr22854757wjb.103.1467812510447; \n\tWed, 06 Jul 2016 06:41:50 -0700 (PDT)", "From": "Thomas Monjalon <thomas.monjalon@6wind.com>", "To": "bruce.richardson@intel.com,\n\tnelio.laranjeiro@6wind.com", "Cc": "dev@dpdk.org", "Date": "Wed, 6 Jul 2016 15:41:44 +0200", "Message-Id": "<1467812504-24742-1-git-send-email-thomas.monjalon@6wind.com>", "X-Mailer": "git-send-email 2.7.0", "In-Reply-To": "<1467801530-20800-4-git-send-email-thomas.monjalon@6wind.com>", "References": "<1467801530-20800-4-git-send-email-thomas.monjalon@6wind.com>", "Subject": "[dpdk-dev] [PATCH v2] scripts: check headline of drivers commits", "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": "From: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>\n\nA driver patch under net should start with \"net/<driver name>\" or if\na patch touch multiple drivers, it should only start with \"net:\".\nThe same apply for crypto.\nA patch touching all drivers (net + crypto) should start with \"drivers:\".\n\nLonger prefixes like \"net/mlx:\" (for mlx4/mlx5) or \"net/e1000/base:\" are\nhandled by not checking the colon.\n\nThe directories doc/ and config/ are ignored because a driver patch\ncan modify them.\n\nSigned-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\nv2:\n- fix capture in bad variable\n- ignore doc/ and config/\n---\n scripts/check-git-log.sh | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)", "diff": "diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh\nindex 833aa39..21f1055 100755\n--- a/scripts/check-git-log.sh\n+++ b/scripts/check-git-log.sh\n@@ -70,6 +70,24 @@ bad=$(echo \"$headlines\" | grep --color=always \\\n \t| sed 's,^,\\t,')\n [ -z \"$bad\" ] || printf \"Wrong headline format:\\n$bad\\n\"\n \n+# check headline prefix when touching only drivers, e.g. net/<driver name>\n+bad=$(for commit in $commits ; do\n+\theadline=$(git log --format='%s' -1 $commit)\n+\tfiles=$(git diff-tree --no-commit-id --name-only -r $commit)\n+\t[ -z \"$(echo \"$files\" | grep -v '^\\(drivers\\|doc\\|config\\)/')\" ] ||\n+\t\tcontinue\n+\tdrv=$(echo \"$files\" | grep '^drivers/' | cut -d \"/\" -f 2,3 | sort -u)\n+\tdrvgrp=$(echo \"$drv\" | cut -d \"/\" -f 1 | uniq)\n+\tif [ $(echo \"$drvgrp\" | wc -l) -gt 1 ] ; then\n+\t\techo \"$headline\" | grep -v '^drivers:'\n+\telif [ $(echo \"$drv\" | wc -l) -gt 1 ] ; then\n+\t\techo \"$headline\" | grep -v \"^$drvgrp\"\n+\telse\n+\t\techo \"$headline\" | grep -v \"^$drv\"\n+\tfi\n+done | sed 's,^,\\t,')\n+[ -z \"$bad\" ] || printf \"Wrong headline prefix:\\n$bad\\n\"\n+\n # check headline label for common typos\n bad=$(echo \"$headlines\" | grep --color=always \\\n \t-e '^example[:/]' \\\n", "prefixes": [ "dpdk-dev", "v2" ] }{ "id": 14602, "url": "