Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/26120/?format=api
https://patches.dpdk.org/api/patches/26120/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170630165140.59594-9-ferruh.yigit@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": "<20170630165140.59594-9-ferruh.yigit@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20170630165140.59594-9-ferruh.yigit@intel.com", "date": "2017-06-30T16:51:28", "name": "[dpdk-dev,v9,08/20] unci: add module skeleton", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "07a135fab6a4d0f6f58d1b3d560a6008e053e3e1", "submitter": { "id": 324, "url": "https://patches.dpdk.org/api/people/324/?format=api", "name": "Ferruh Yigit", "email": "ferruh.yigit@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170630165140.59594-9-ferruh.yigit@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/26120/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/26120/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 16FAC7CBA;\n\tFri, 30 Jun 2017 18:52:27 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id D863A567E\n\tfor <dev@dpdk.org>; Fri, 30 Jun 2017 18:52:03 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t30 Jun 2017 09:51:58 -0700", "from silpixa00372839.ir.intel.com (HELO\n\tsilpixa00372839.ger.corp.intel.com) ([10.237.222.154])\n\tby orsmga004.jf.intel.com with ESMTP; 30 Jun 2017 09:51:54 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.40,287,1496127600\"; d=\"scan'208\";a=\"103233218\"", "From": "Ferruh Yigit <ferruh.yigit@intel.com>", "To": "dev@dpdk.org", "Cc": "Ferruh Yigit <ferruh.yigit@intel.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tAnatoly Burakov <anatoly.burakov@intel.com>", "Date": "Fri, 30 Jun 2017 17:51:28 +0100", "Message-Id": "<20170630165140.59594-9-ferruh.yigit@intel.com>", "X-Mailer": "git-send-email 2.13.0", "In-Reply-To": "<20170630165140.59594-1-ferruh.yigit@intel.com>", "References": "<20170621110651.75299-1-ferruh.yigit@intel.com>\n\t<20170630165140.59594-1-ferruh.yigit@intel.com>", "Subject": "[dpdk-dev] [PATCH v9 08/20] unci: add module skeleton", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "Base files to have a new kernel module, without actual source code.\n\nSigned-off-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n MAINTAINERS | 4 +++\n config/common_base | 5 ++++\n config/common_linuxapp | 1 +\n lib/librte_eal/linuxapp/Makefile | 4 ++-\n lib/librte_eal/linuxapp/unci/Makefile | 52 +++++++++++++++++++++++++++++++++\n lib/librte_eal/linuxapp/unci/unci_dev.h | 36 +++++++++++++++++++++++\n lib/librte_eal/linuxapp/unci/unci_net.c | 42 ++++++++++++++++++++++++++\n 7 files changed, 143 insertions(+), 1 deletion(-)\n create mode 100644 lib/librte_eal/linuxapp/unci/Makefile\n create mode 100644 lib/librte_eal/linuxapp/unci/unci_dev.h\n create mode 100644 lib/librte_eal/linuxapp/unci/unci_net.c", "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex b2cf83c8e..9adca546a 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -758,6 +758,10 @@ Ethtool\n M: Remy Horton <remy.horton@intel.com>\n F: lib/librte_ethtool/\n \n+Linux Userspace Network Control Interface (UNCI)\n+M: Ferruh Yigit <ferruh.yigit@intel.com>\n+F: lib/librte_eal/linuxapp/unci/\n+\n Test Applications\n -----------------\n \ndiff --git a/config/common_base b/config/common_base\nindex c767b1090..af92d1932 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -704,6 +704,11 @@ CONFIG_RTE_LIBRTE_PDUMP=y\n CONFIG_RTE_LIBRTE_ETHTOOL=n\n \n #\n+# Compile Userspace Network Control Interface (UNCI) kernel module\n+#\n+CONFIG_RTE_UNCI_KMOD=n\n+\n+#\n # Compile vhost user library\n #\n CONFIG_RTE_LIBRTE_VHOST=n\ndiff --git a/config/common_linuxapp b/config/common_linuxapp\nindex 33ed11b37..4deab42c3 100644\n--- a/config/common_linuxapp\n+++ b/config/common_linuxapp\n@@ -41,6 +41,7 @@ CONFIG_RTE_KNI_KMOD=y\n CONFIG_RTE_LIBRTE_KNI=y\n CONFIG_RTE_LIBRTE_PMD_KNI=y\n CONFIG_RTE_LIBRTE_ETHTOOL=y\n+CONFIG_RTE_UNCI_KMOD=y\n CONFIG_RTE_LIBRTE_VHOST=y\n CONFIG_RTE_LIBRTE_PMD_VHOST=y\n CONFIG_RTE_LIBRTE_PMD_AF_PACKET=y\ndiff --git a/lib/librte_eal/linuxapp/Makefile b/lib/librte_eal/linuxapp/Makefile\nindex 4794696b6..2d293f1a6 100644\n--- a/lib/librte_eal/linuxapp/Makefile\n+++ b/lib/librte_eal/linuxapp/Makefile\n@@ -1,6 +1,6 @@\n # BSD LICENSE\n #\n-# Copyright(c) 2010-2014 Intel Corporation. All rights reserved.\n+# Copyright(c) 2010-2017 Intel Corporation. All rights reserved.\n # All rights reserved.\n #\n # Redistribution and use in source and binary forms, with or without\n@@ -35,6 +35,8 @@ DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal\n DIRS-$(CONFIG_RTE_EAL_IGB_UIO) += igb_uio\n DIRS-$(CONFIG_RTE_KNI_KMOD) += kni\n DEPDIRS-kni := eal\n+DIRS-$(CONFIG_RTE_UNCI_KMOD) += unci\n+DEPDIRS-unci := eal\n DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += xen_dom0\n DEPDIRS-xen_dom0 := eal\n \ndiff --git a/lib/librte_eal/linuxapp/unci/Makefile b/lib/librte_eal/linuxapp/unci/Makefile\nnew file mode 100644\nindex 000000000..02e354814\n--- /dev/null\n+++ b/lib/librte_eal/linuxapp/unci/Makefile\n@@ -0,0 +1,52 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2017 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+include $(RTE_SDK)/mk/rte.vars.mk\n+\n+#\n+# module name and path\n+#\n+MODULE = rte_unci\n+\n+#\n+# CFLAGS\n+#\n+MODULE_CFLAGS += -I$(SRCDIR)\n+MODULE_CFLAGS += -I$(RTE_OUTPUT)/include\n+MODULE_CFLAGS += -include $(RTE_OUTPUT)/include/rte_config.h\n+MODULE_CFLAGS += -Wall -Werror\n+\n+#\n+# all source are stored in SRCS-y\n+#\n+SRCS-$(CONFIG_RTE_UNCI_KMOD) := unci_net.c\n+\n+include $(RTE_SDK)/mk/rte.module.mk\ndiff --git a/lib/librte_eal/linuxapp/unci/unci_dev.h b/lib/librte_eal/linuxapp/unci/unci_dev.h\nnew file mode 100644\nindex 000000000..0337fa82b\n--- /dev/null\n+++ b/lib/librte_eal/linuxapp/unci/unci_dev.h\n@@ -0,0 +1,36 @@\n+/*-\n+ * GPL LICENSE SUMMARY\n+ *\n+ * Copyright(c) 2017 Intel Corporation. All rights reserved.\n+ *\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of version 2 of the GNU General Public License as\n+ * published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope that it will be useful, but\n+ * WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n+ * General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program;\n+ *\n+ * The full GNU General Public License is included in this distribution\n+ * in the file called LICENSE.GPL.\n+ *\n+ * Contact Information:\n+ * Intel Corporation\n+ */\n+\n+#ifndef _UNCI_DEV_H_\n+#define _UNCI_DEV_H_\n+\n+#include <linux/netdevice.h>\n+\n+#ifdef pr_fmt\n+#undef pr_fmt\n+#endif\n+#define pr_fmt(fmt) KBUILD_MODNAME \": \" fmt\n+\n+\n+#endif /* _UNCI_DEV_H_ */\ndiff --git a/lib/librte_eal/linuxapp/unci/unci_net.c b/lib/librte_eal/linuxapp/unci/unci_net.c\nnew file mode 100644\nindex 000000000..b8ef409d3\n--- /dev/null\n+++ b/lib/librte_eal/linuxapp/unci/unci_net.c\n@@ -0,0 +1,42 @@\n+/*-\n+ * GPL LICENSE SUMMARY\n+ *\n+ * Copyright(c) 2017 Intel Corporation. All rights reserved.\n+ *\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of version 2 of the GNU General Public License as\n+ * published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope that it will be useful, but\n+ * WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n+ * General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program;\n+ *\n+ * The full GNU General Public License is included in this distribution\n+ * in the file called LICENSE.GPL.\n+ *\n+ * Contact Information:\n+ * Intel Corporation\n+ */\n+\n+#include <linux/module.h>\n+\n+#include \"unci_dev.h\"\n+\n+static int __init unci_init(void)\n+{\n+\treturn 0;\n+}\n+module_init(unci_init);\n+\n+static void __exit unci_exit(void)\n+{\n+}\n+module_exit(unci_exit);\n+\n+MODULE_LICENSE(\"Dual BSD/GPL\");\n+MODULE_AUTHOR(\"Intel Corporation\");\n+MODULE_DESCRIPTION(\"Kernel Module for managing unci devices\");\n", "prefixes": [ "dpdk-dev", "v9", "08/20" ] }{ "id": 26120, "url": "