Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/86472/?format=api
http://patches.dpdk.org/api/patches/86472/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210113140518.64105-4-jia.guo@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": "<20210113140518.64105-4-jia.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210113140518.64105-4-jia.guo@intel.com", "date": "2021-01-13T14:05:18", "name": "[v3,3/3] net/ice: enable ecpri tunnel port configure in dcf", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c644392ea7f60f776ad67013939c7edb1a5a5731", "submitter": { "id": 507, "url": "http://patches.dpdk.org/api/people/507/?format=api", "name": "Guo, Jia", "email": "jia.guo@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210113140518.64105-4-jia.guo@intel.com/mbox/", "series": [ { "id": 14700, "url": "http://patches.dpdk.org/api/series/14700/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14700", "date": "2021-01-13T14:05:15", "name": "enable UDP ecpri configure in dcf", "version": 3, "mbox": "http://patches.dpdk.org/series/14700/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/86472/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/86472/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 2F19EA04B5;\n\tWed, 13 Jan 2021 15:12:20 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F31A0140D50;\n\tWed, 13 Jan 2021 15:12:02 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 0E69A140D41\n for <dev@dpdk.org>; Wed, 13 Jan 2021 15:11:59 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jan 2021 06:11:59 -0800", "from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128])\n by fmsmga001.fm.intel.com with ESMTP; 13 Jan 2021 06:11:57 -0800" ], "IronPort-SDR": [ "\n iBfHvQzTy+ioCGhhVecp3EQsJTQxOji9X1qcx+SdT+YOAjhaj+dt0ERAQYpu1sscgcnhUCCXEO\n +rEjzmbL3NIA==", "\n LU1fZ0oRPx4+XLFl1E8kKjJx2y/01+uHCYG/0PeFVBXeCuNk+CZB0HCDMraydwvU7Ou2J7AFWU\n Lw+MHlWZ2wdQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9862\"; a=\"262993522\"", "E=Sophos;i=\"5.79,344,1602572400\"; d=\"scan'208\";a=\"262993522\"", "E=Sophos;i=\"5.79,344,1602572400\"; d=\"scan'208\";a=\"464912484\"" ], "X-ExtLoop1": "1", "From": "Jeff Guo <jia.guo@intel.com>", "To": "qi.z.zhang@intel.com, jingjing.wu@intel.com, qiming.yang@intel.com,\n haiyue.wang@intel.com", "Cc": "dev@dpdk.org,\n\tjia.guo@intel.com,\n\tsimei.su@intel.com", "Date": "Wed, 13 Jan 2021 22:05:18 +0800", "Message-Id": "<20210113140518.64105-4-jia.guo@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20210113140518.64105-1-jia.guo@intel.com>", "References": "<20201216085854.7842-1-jia.guo@intel.com>\n <20210113140518.64105-1-jia.guo@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [dpdk-dev v3 3/3] net/ice: enable ecpri tunnel port\n configure in dcf", "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": "Add ecpri tunnel port add and rm ops to configure ecpri udp tunnel port\nin dcf.\n\nSigned-off-by: Jeff Guo <jia.guo@intel.com>\n---\n drivers/net/ice/ice_dcf_ethdev.c | 67 ++++++++++++++++++++++++++++++++\n 1 file changed, 67 insertions(+)", "diff": "diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex a9e78064d4..c8357f5054 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -26,6 +26,13 @@\n #include \"ice_dcf_ethdev.h\"\n #include \"ice_rxtx.h\"\n \n+static int\n+ice_dcf_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n+\t\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel);\n+static int\n+ice_dcf_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n+\t\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel);\n+\n static uint16_t\n ice_dcf_recv_pkts(__rte_unused void *rx_queue,\n \t\t __rte_unused struct rte_mbuf **bufs,\n@@ -870,6 +877,64 @@ ice_dcf_link_update(__rte_unused struct rte_eth_dev *dev,\n \treturn 0;\n }\n \n+/* Add UDP tunneling port */\n+static int\n+ice_dcf_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n+\t\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel)\n+{\n+\tstruct ice_dcf_adapter *adapter = dev->data->dev_private;\n+\tstruct ice_adapter *parent_adapter = &adapter->parent;\n+\tstruct ice_hw *parent_hw = &parent_adapter->hw;\n+\tint ret = 0;\n+\n+\tif (!udp_tunnel)\n+\t\treturn -EINVAL;\n+\n+\tswitch (udp_tunnel->prot_type) {\n+\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\t\tret = ice_create_tunnel(parent_hw, TNL_VXLAN,\n+\t\t\t\t\tudp_tunnel->udp_port);\n+\t\tbreak;\n+\tcase RTE_TUNNEL_TYPE_ECPRI:\n+\t\tret = ice_create_tunnel(parent_hw, TNL_ECPRI,\n+\t\t\t\t\tudp_tunnel->udp_port);\n+\t\tbreak;\n+\tdefault:\n+\t\tPMD_DRV_LOG(ERR, \"Invalid tunnel type\");\n+\t\tret = -EINVAL;\n+\t\tbreak;\n+\t}\n+\n+\treturn ret;\n+}\n+\n+/* Delete UDP tunneling port */\n+static int\n+ice_dcf_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n+\t\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel)\n+{\n+\tstruct ice_dcf_adapter *adapter = dev->data->dev_private;\n+\tstruct ice_adapter *parent_adapter = &adapter->parent;\n+\tstruct ice_hw *parent_hw = &parent_adapter->hw;\n+\tint ret = 0;\n+\n+\tif (!udp_tunnel)\n+\t\treturn -EINVAL;\n+\n+\tswitch (udp_tunnel->prot_type) {\n+\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\tcase RTE_TUNNEL_TYPE_ECPRI:\n+\t\tret = ice_destroy_tunnel(parent_hw, udp_tunnel->udp_port, 0);\n+\t\tbreak;\n+\tdefault:\n+\t\tPMD_DRV_LOG(ERR, \"Invalid tunnel type\");\n+\t\tret = -EINVAL;\n+\t\tbreak;\n+\t}\n+\n+\treturn ret;\n+}\n+\n static const struct eth_dev_ops ice_dcf_eth_dev_ops = {\n \t.dev_start = ice_dcf_dev_start,\n \t.dev_stop = ice_dcf_dev_stop,\n@@ -892,6 +957,8 @@ static const struct eth_dev_ops ice_dcf_eth_dev_ops = {\n \t.allmulticast_enable = ice_dcf_dev_allmulticast_enable,\n \t.allmulticast_disable = ice_dcf_dev_allmulticast_disable,\n \t.filter_ctrl = ice_dcf_dev_filter_ctrl,\n+\t.udp_tunnel_port_add\t = ice_dcf_dev_udp_tunnel_port_add,\n+\t.udp_tunnel_port_del\t = ice_dcf_dev_udp_tunnel_port_del,\n };\n \n static int\n", "prefixes": [ "v3", "3/3" ] }{ "id": 86472, "url": "