Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7319/?format=api
https://patches.dpdk.org/api/patches/7319/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1443621905-7872-6-git-send-email-tomaszx.kulasek@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": "<1443621905-7872-6-git-send-email-tomaszx.kulasek@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1443621905-7872-6-git-send-email-tomaszx.kulasek@intel.com", "date": "2015-09-30T14:05:01", "name": "[dpdk-dev,v5,5/9] null: export eth_dev_null_create", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c8d407531a5e36fbe207d891eb88f593b21b981a", "submitter": { "id": 155, "url": "https://patches.dpdk.org/api/people/155/?format=api", "name": "Tomasz Kulasek", "email": "tomaszx.kulasek@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1443621905-7872-6-git-send-email-tomaszx.kulasek@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7319/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7319/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 788A78DB4;\n\tWed, 30 Sep 2015 16:13:54 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 647C18DB2\n\tfor <dev@dpdk.org>; Wed, 30 Sep 2015 16:13:52 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP; 30 Sep 2015 07:13:51 -0700", "from unknown (HELO Sent) ([10.217.248.94])\n\tby orsmga001.jf.intel.com with SMTP; 30 Sep 2015 07:13:49 -0700", "by Sent (sSMTP sendmail emulation); Wed, 30 Sep 2015 16:12:24 +0200" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,612,1437462000\"; d=\"scan'208\";a=\"780949525\"", "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>", "To": "dev@dpdk.org", "Date": "Wed, 30 Sep 2015 16:05:01 +0200", "Message-Id": "<1443621905-7872-6-git-send-email-tomaszx.kulasek@intel.com>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1443621905-7872-1-git-send-email-tomaszx.kulasek@intel.com>", "References": "<1436981189-3320-1-git-send-email-tomaszx.kulasek@intel.com>\n\t<1443621905-7872-1-git-send-email-tomaszx.kulasek@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 5/9] null: export eth_dev_null_create", "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": "Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>\n---\n drivers/net/null/Makefile | 2 +-\n drivers/net/null/rte_eth_null.c | 2 +-\n drivers/net/null/rte_eth_null.h | 40 +++++++++++++++++++++++++++++\n drivers/net/null/rte_pmd_null_version.map | 7 +++++\n 4 files changed, 49 insertions(+), 2 deletions(-)\n create mode 100644 drivers/net/null/rte_eth_null.h", "diff": "diff --git a/drivers/net/null/Makefile b/drivers/net/null/Makefile\nindex 96ba01c..2202389 100644\n--- a/drivers/net/null/Makefile\n+++ b/drivers/net/null/Makefile\n@@ -51,7 +51,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += rte_eth_null.c\n #\n # Export include files\n #\n-SYMLINK-y-include +=\n+SYMLINK-y-include += rte_eth_null.h\n \n # this lib depends upon:\n DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += lib/librte_mbuf\ndiff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c\nindex b01f647..56e4278 100644\n--- a/drivers/net/null/rte_eth_null.c\n+++ b/drivers/net/null/rte_eth_null.c\n@@ -491,7 +491,7 @@ static const struct eth_dev_ops ops = {\n \t.rss_hash_conf_get = eth_rss_hash_conf_get\n };\n \n-static int\n+int\n eth_dev_null_create(const char *name,\n \t\tconst unsigned numa_node,\n \t\tunsigned packet_size,\ndiff --git a/drivers/net/null/rte_eth_null.h b/drivers/net/null/rte_eth_null.h\nnew file mode 100644\nindex 0000000..abada8c\n--- /dev/null\n+++ b/drivers/net/null/rte_eth_null.h\n@@ -0,0 +1,40 @@\n+/*-\n+ * BSD LICENSE\n+ *\n+ * Copyright(c) 2015 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+\n+#ifndef RTE_ETH_NULL_H_\n+#define RTE_ETH_NULL_H_\n+\n+int eth_dev_null_create(const char *name, const unsigned numa_node,\n+\t\tunsigned packet_size, unsigned packet_copy);\n+\n+#endif /* RTE_ETH_NULL_H_ */\ndiff --git a/drivers/net/null/rte_pmd_null_version.map b/drivers/net/null/rte_pmd_null_version.map\nindex ef35398..84b1d0f 100644\n--- a/drivers/net/null/rte_pmd_null_version.map\n+++ b/drivers/net/null/rte_pmd_null_version.map\n@@ -2,3 +2,10 @@ DPDK_2.0 {\n \n \tlocal: *;\n };\n+\n+DPDK_2.2 {\n+\tglobal:\n+\n+\teth_dev_null_create;\n+\n+} DPDK_2.0;\n", "prefixes": [ "dpdk-dev", "v5", "5/9" ] }{ "id": 7319, "url": "