Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100767/?format=api
https://patches.dpdk.org/api/patches/100767/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211008102949.70716-1-aman.deep.singh@intel.com/", "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": "<20211008102949.70716-1-aman.deep.singh@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211008102949.70716-1-aman.deep.singh@intel.com", "date": "2021-10-08T10:29:49", "name": "devtools/cocci: added script for ethdev namespace", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6cf3d266e3e0039fb21b46f4d0531e0268df2143", "submitter": { "id": 1672, "url": "https://patches.dpdk.org/api/people/1672/?format=api", "name": "Singh, Aman Deep", "email": "aman.deep.singh@intel.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211008102949.70716-1-aman.deep.singh@intel.com/mbox/", "series": [ { "id": 19454, "url": "https://patches.dpdk.org/api/series/19454/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19454", "date": "2021-10-08T10:29:49", "name": "devtools/cocci: added script for ethdev namespace", "version": 1, "mbox": "https://patches.dpdk.org/series/19454/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/100767/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/100767/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 09EAAA034F;\n\tFri, 8 Oct 2021 12:39:31 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C6DEB40DF7;\n\tFri, 8 Oct 2021 12:39:30 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id B5CA24003C\n for <dev@dpdk.org>; Fri, 8 Oct 2021 12:39:28 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Oct 2021 03:39:27 -0700", "from npg-npf-wlpr-srv02.iind.intel.com ([10.190.213.104])\n by fmsmga005.fm.intel.com with ESMTP; 08 Oct 2021 03:39:26 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10130\"; a=\"289978464\"", "E=Sophos;i=\"5.85,357,1624345200\"; d=\"scan'208\";a=\"289978464\"", "E=Sophos;i=\"5.85,357,1624345200\"; d=\"scan'208\";a=\"715474857\"" ], "X-ExtLoop1": "1", "From": "Aman Singh <aman.deep.singh@intel.com>", "To": "dev@dpdk.org", "Cc": "ferruh.yigit@intel.com", "Date": "Fri, 8 Oct 2021 15:59:49 +0530", "Message-Id": "<20211008102949.70716-1-aman.deep.singh@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH] devtools/cocci: added script for ethdev namespace", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The cocci script is to help add prefix 'RTE_ETH' namespace to all enum\n& macro of ethdev library in a backward compatible way. After the script\nmakes the changes few manual changes are required in rte_ethdev.h for\nenum name changes.\n\nSigned-off-by: Aman Singh <aman.deep.singh@intel.com>\n---\n devtools/cocci/namespace_ethdev.cocci | 50 +++++++++++++++++++++++++++\n 1 file changed, 50 insertions(+)\n create mode 100644 devtools/cocci/namespace_ethdev.cocci", "diff": "diff --git a/devtools/cocci/namespace_ethdev.cocci b/devtools/cocci/namespace_ethdev.cocci\nnew file mode 100644\nindex 0000000000..383db454f0\n--- /dev/null\n+++ b/devtools/cocci/namespace_ethdev.cocci\n@@ -0,0 +1,50 @@\n+@rule1@\n+identifier I =~ \"^(RTE_FC_|ETH_MQ_|ETH_RSS_|DEV_RX_|DEV_TX_|ETH_LINK_|RTE_RETA|\n+ETH_SPEED|RTE_TUNNEL|ETH_VLAN|ETH_4|ETH_8|ETH_16|ETH_32|ETH_64|RTE_FDIR|RTE_L2|\n+ETH_DCB|ETH_MIRROR|ETH_VMDQ|ETH_NUM|ETH_QINQ|rte_fdir)\";\n+@@\n+I\n+\n+@ script : python p@\n+I << rule1.I;\n+J;\n+@@\n+coccinelle .J=\"RTE_ETH_\" + I[4:];\n+if I.isupper() == False:\n+\tcoccinelle .J=\"rte_eth_\" + I[4:];\n+\n+exception_matches = [\"ETH_RSS_MODE\",\"ETH_VLAN_FILTER_ANY\",\"ETH_VLAN_FILTER_SPEC\",\n+\"ETH_VLAN_FILTER_CLASSIFY\",\"ETH_RSS_UPDATE\",\"RTE_FDIR_MODE\"]\n+\n+if any(x in I for x in exception_matches):\n+ coccinelle .J= I;\n+\n+@ identifier@\n+identifier rule1.I;\n+identifier p.J;\n+@@\n+- I\n++ J\n+\n+@rule2@\n+identifier A =~ \"^(RTE_FC_|ETH_MQ_|ETH_RSS_|DEV_RX_|DEV_TX_|ETH_LINK_|RTE_RETA|\n+ETH_SPEED|RTE_TUNNEL|ETH_VLAN|ETH_4|ETH_8|ETH_16|ETH_32|ETH_64|RTE_FDIR|RTE_L2|\n+ETH_DCB|ETH_MIRROR|ETH_VMDQ|ETH_NUM|ETH_QINQ)\";\n+expression B ;\n+@@\n+#define A B\n+\n+@ script : python p2@\n+A << rule2.A;\n+K;\n+@@\n+coccinelle .K=\"RTE_ETH_\" + A[4:];\n+\n+@ identifier2@\n+identifier rule2.A;\n+expression rule2.B;\n+identifier p2.K;\n+@@\n+- #define A B\n++ #define K B\n++ #define A K\n", "prefixes": [] }{ "id": 100767, "url": "