Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/4730/?format=api
https://patches.dpdk.org/api/patches/4730/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1431670141-7835-4-git-send-email-jijiang.liu@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": "<1431670141-7835-4-git-send-email-jijiang.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1431670141-7835-4-git-send-email-jijiang.liu@intel.com", "date": "2015-05-15T06:08:54", "name": "[dpdk-dev,03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5740be92cf66d6316699cfc56a83b10192e5ddeb", "submitter": { "id": 52, "url": "https://patches.dpdk.org/api/people/52/?format=api", "name": "Jijiang Liu", "email": "jijiang.liu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1431670141-7835-4-git-send-email-jijiang.liu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/4730/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/4730/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 335E05A74;\n\tFri, 15 May 2015 08:09:16 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 1C9A95A56\n\tfor <dev@dpdk.org>; Fri, 15 May 2015 08:09:13 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga102.fm.intel.com with ESMTP; 14 May 2015 23:09:14 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 14 May 2015 23:09:13 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t4F69Bd1010047;\n\tFri, 15 May 2015 14:09:11 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t4F699G7007893; Fri, 15 May 2015 14:09:11 +0800", "(from jijiangl@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t4F6990N007889; \n\tFri, 15 May 2015 14:09:09 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.13,432,1427785200\"; d=\"scan'208\";a=\"695213943\"", "From": "Jijiang Liu <jijiang.liu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 15 May 2015 14:08:54 +0800", "Message-Id": "<1431670141-7835-4-git-send-email-jijiang.liu@intel.com>", "X-Mailer": "git-send-email 1.7.12.2", "In-Reply-To": "<1431670141-7835-1-git-send-email-jijiang.liu@intel.com>", "References": "<1431670141-7835-1-git-send-email-jijiang.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH 03/10] examples/tep_termination:add the pluggable\n\tstructures for VXLAN packet processing", "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": "We are trying to create a framework for tunneling packet processing, so some common APIs are added here, which includes \n1> tunnel port configuration\n\n2> tunnel setup\n\n3> tunnel destroying\n\n4> tunneling packet processing for Rx side\n\n5> tunneling packet processing for Tx side\n\n6> tunnel parameter processing\n\nSigned-off-by: Jijiang Liu <jijiang.liu@intel.com>\nSigned-off-by: Thomas Long <thomas.long at intel.com>\n\n---\n examples/tep_termination/main.c | 1 +\n examples/tep_termination/vxlan_setup.h | 78 ++++++++++++++++++++++++++++++++\n 2 files changed, 79 insertions(+), 0 deletions(-)\n create mode 100644 examples/tep_termination/vxlan_setup.h", "diff": "diff --git a/examples/tep_termination/main.c b/examples/tep_termination/main.c\nindex bbb3bc1..f50715c 100644\n--- a/examples/tep_termination/main.c\n+++ b/examples/tep_termination/main.c\n@@ -53,6 +53,7 @@\n \n #include \"main.h\"\n #include \"vxlan.h\"\n+#include \"vxlan_setup.h\"\n \n /* the maximum number of external ports supported */\n #define MAX_SUP_PORTS 1\ndiff --git a/examples/tep_termination/vxlan_setup.h b/examples/tep_termination/vxlan_setup.h\nnew file mode 100644\nindex 0000000..522062e\n--- /dev/null\n+++ b/examples/tep_termination/vxlan_setup.h\n@@ -0,0 +1,78 @@\n+/*-\n+ * BSD LICENSE\n+ *\n+ * Copyright(c) 2010-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 VXLAN_SETUP_H_\n+#define VXLAN_SETUP_H_\n+\n+typedef int (*ol_port_configure_t)(uint8_t port,\n+\t\t\t\t struct rte_mempool *mbuf_pool);\n+\n+typedef int (*ol_tunnel_setup_t)(struct vhost_dev *vdev,\n+\t\t\t\t struct rte_mbuf *m);\n+\n+typedef void (*ol_tunnel_destroy_t)(struct vhost_dev *vdev);\n+\n+typedef int (*ol_tx_handle_t)(uint8_t port_id, uint16_t queue_id,\n+\t\t\t struct rte_mbuf **tx_pkts, uint16_t nb_pkts);\n+\n+typedef int (*ol_rx_handle_t)(struct virtio_net *dev, struct rte_mbuf **pkts,\n+\t\t\t uint32_t count);\n+\n+typedef int (*ol_param_handle)(struct virtio_net *dev);\n+\n+struct ol_switch_ops {\n+\tol_port_configure_t port_configure;\n+\tol_tunnel_setup_t tunnel_setup;\n+\tol_tunnel_destroy_t tunnel_destroy;\n+\tol_tx_handle_t tx_handle;\n+\tol_rx_handle_t rx_handle;\n+\tol_param_handle param_handle;\n+};\n+\n+int\n+vxlan_port_init(uint8_t port, struct rte_mempool *mbuf_pool);\n+\n+int\n+vxlan_link(struct vhost_dev *vdev, struct rte_mbuf *m);\n+\n+void\n+vxlan_unlink(struct vhost_dev *vdev);\n+\n+int\n+vxlan_tx_pkts(uint8_t port_id, uint16_t queue_id,\n+\t\t\tstruct rte_mbuf **tx_pkts, uint16_t nb_pkts);\n+int\n+vxlan_rx_pkts(struct virtio_net *dev, struct rte_mbuf **pkts, uint32_t count);\n+\n+#endif /* VXLAN_SETUP_H_ */\n+\n", "prefixes": [ "dpdk-dev", "03/10" ] }{ "id": 4730, "url": "