Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/55155/?format=api
http://patches.dpdk.org/api/patches/55155/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190621061355.192659-4-qiming.yang@intel.com/", "project": { "id": 1, "url": "http://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": "<20190621061355.192659-4-qiming.yang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190621061355.192659-4-qiming.yang@intel.com", "date": "2019-06-21T06:13:55", "name": "[v4,3/3] net/ice: add UDP tunnel port support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "3c33b6d5343967dffddbb24721e34198054de49b", "submitter": { "id": 522, "url": "http://patches.dpdk.org/api/people/522/?format=api", "name": "Qiming Yang", "email": "qiming.yang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190621061355.192659-4-qiming.yang@intel.com/mbox/", "series": [ { "id": 5108, "url": "http://patches.dpdk.org/api/series/5108/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5108", "date": "2019-06-21T06:13:52", "name": "Enable rte_flow API in ice driver", "version": 4, "mbox": "http://patches.dpdk.org/series/5108/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/55155/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/55155/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2E5A81D529;\n\tFri, 21 Jun 2019 08:17:22 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 247FD1D516\n\tfor <dev@dpdk.org>; Fri, 21 Jun 2019 08:17:13 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t20 Jun 2019 23:17:13 -0700", "from dpdk-qiming2.sh.intel.com ([10.67.119.113])\n\tby orsmga007.jf.intel.com with ESMTP; 20 Jun 2019 23:17:12 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.63,399,1557212400\"; d=\"scan'208\";a=\"151167001\"", "From": "Qiming Yang <qiming.yang@intel.com>", "To": "dev@dpdk.org", "Cc": "Qiming Yang <qiming.yang@intel.com>", "Date": "Fri, 21 Jun 2019 14:13:55 +0800", "Message-Id": "<20190621061355.192659-4-qiming.yang@intel.com>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20190621061355.192659-1-qiming.yang@intel.com>", "References": "<1559552722-8970-1-git-send-email-qiming.yang@intel.com>\n\t<20190621061355.192659-1-qiming.yang@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 3/3] net/ice: add UDP tunnel port support", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Enabled UDP tunnel port add and delete functions.\n\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/ice_ethdev.c | 54 ++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 54 insertions(+)", "diff": "diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex 8ee06d1..949d293 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -88,6 +88,10 @@ static int ice_dev_filter_ctrl(struct rte_eth_dev *dev,\n \t\t\tenum rte_filter_type filter_type,\n \t\t\tenum rte_filter_op filter_op,\n \t\t\tvoid *arg);\n+static int ice_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n+\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel);\n+static int ice_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n+\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel);\n \n static const struct rte_pci_id pci_id_ice_map[] = {\n \t{ RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_BACKPLANE) },\n@@ -147,6 +151,8 @@ static const struct eth_dev_ops ice_eth_dev_ops = {\n \t.xstats_get_names = ice_xstats_get_names,\n \t.xstats_reset = ice_stats_reset,\n \t.filter_ctrl = ice_dev_filter_ctrl,\n+\t.udp_tunnel_port_add = ice_dev_udp_tunnel_port_add,\n+\t.udp_tunnel_port_del = ice_dev_udp_tunnel_port_del,\n };\n \n /* store statistics names and its offset in stats structure */\n@@ -3665,6 +3671,54 @@ ice_dev_filter_ctrl(struct rte_eth_dev *dev,\n \treturn ret;\n }\n \n+/* Add UDP tunneling port */\n+static int\n+ice_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n+\t\t\t struct rte_eth_udp_tunnel *udp_tunnel)\n+{\n+\tint ret = 0;\n+\tstruct ice_hw *hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\tif (udp_tunnel == NULL)\n+\t\treturn -EINVAL;\n+\n+\tswitch (udp_tunnel->prot_type) {\n+\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\t\tret = ice_create_tunnel(hw, TNL_VXLAN, udp_tunnel->udp_port);\n+\t\tbreak;\n+\tdefault:\n+\t\tPMD_DRV_LOG(ERR, \"Invalid tunnel type\");\n+\t\tret = -1;\n+\t\tbreak;\n+\t}\n+\n+\treturn ret;\n+}\n+\n+/* Delete UDP tunneling port */\n+static int\n+ice_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n+\t\t\t struct rte_eth_udp_tunnel *udp_tunnel)\n+{\n+\tint ret = 0;\n+\tstruct ice_hw *hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\tif (udp_tunnel == NULL)\n+\t\treturn -EINVAL;\n+\n+\tswitch (udp_tunnel->prot_type) {\n+\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\t\tret = ice_destroy_tunnel(hw, udp_tunnel->udp_port, 0);\n+\t\tbreak;\n+\tdefault:\n+\t\tPMD_DRV_LOG(ERR, \"Invalid tunnel type\");\n+\t\tret = -1;\n+\t\tbreak;\n+\t}\n+\n+\treturn ret;\n+}\n+\n static int\n ice_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t struct rte_pci_device *pci_dev)\n", "prefixes": [ "v4", "3/3" ] }{ "id": 55155, "url": "