Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/61054/?format=api
http://patches.dpdk.org/api/patches/61054/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1571037064-382519-2-git-send-email-andy.pei@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": "<1571037064-382519-2-git-send-email-andy.pei@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1571037064-382519-2-git-send-email-andy.pei@intel.com", "date": "2019-10-14T07:10:47", "name": "[v9,01/18] net/i40e: i40e support ipn3ke FPGA port bonding", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "83ad28d1193959e24fc4df757c7fc3a43c6ebf7f", "submitter": { "id": 1185, "url": "http://patches.dpdk.org/api/people/1185/?format=api", "name": "Pei, Andy", "email": "andy.pei@intel.com" }, "delegate": { "id": 31221, "url": "http://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1571037064-382519-2-git-send-email-andy.pei@intel.com/mbox/", "series": [ { "id": 6821, "url": "http://patches.dpdk.org/api/series/6821/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6821", "date": "2019-10-14T07:10:46", "name": "add PCIe AER disable and IRQ support for ipn3ke", "version": 9, "mbox": "http://patches.dpdk.org/series/6821/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/61054/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/61054/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 9A5CC1C133;\n\tMon, 14 Oct 2019 09:23:35 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id CD0BF1C122\n\tfor <dev@dpdk.org>; Mon, 14 Oct 2019 09:23:31 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Oct 2019 00:23:31 -0700", "from dpdk-dipei.sh.intel.com ([10.67.110.224])\n\tby fmsmga001.fm.intel.com with ESMTP; 14 Oct 2019 00:23:30 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.67,295,1566889200\"; d=\"scan'208\";a=\"207916328\"", "From": "Andy Pei <andy.pei@intel.com>", "To": "dev@dpdk.org", "Cc": "rosen.xu@intel.com, tianfei.zhang@intel.com, andy.pei@intel.com,\n\txiaolong.ye@intel.com, qi.z.zhang@intel.com", "Date": "Mon, 14 Oct 2019 15:10:47 +0800", "Message-Id": "<1571037064-382519-2-git-send-email-andy.pei@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1571037064-382519-1-git-send-email-andy.pei@intel.com>", "References": "<1570782089-182978-2-git-send-email-andy.pei@intel.com>\n\t<1571037064-382519-1-git-send-email-andy.pei@intel.com>", "Subject": "[dpdk-dev] [PATCH v9 01/18] net/i40e: i40e support ipn3ke FPGA port\n\tbonding", "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": "In ipn3ke, each FPGA network side port bonding to an i40e pf,\neach i40e pf link status should get data from FPGA network,\nside port. This patch provide bonding relationship.\n\nSigned-off-by: Rosen Xu <rosen.xu@intel.com>\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/net/i40e/base/i40e_type.h | 3 +++\n drivers/net/i40e/i40e_ethdev.c | 6 ++++++\n drivers/net/i40e/rte_pmd_i40e.c | 21 +++++++++++++++++++++\n drivers/net/i40e/rte_pmd_i40e.h | 18 ++++++++++++++++++\n drivers/net/i40e/rte_pmd_i40e_version.map | 8 +++++++-\n 5 files changed, 55 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h\nindex 112866b..06863d7 100644\n--- a/drivers/net/i40e/base/i40e_type.h\n+++ b/drivers/net/i40e/base/i40e_type.h\n@@ -660,6 +660,9 @@ struct i40e_hw {\n \tstruct i40e_nvm_info nvm;\n \tstruct i40e_fc_info fc;\n \n+\t/* switch device is used to get link status when i40e is in ipn3ke */\n+\tstruct rte_eth_dev *switch_dev;\n+\n \t/* pci info */\n \tu16 device_id;\n \tu16 vendor_id;\ndiff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 2ca14da..bae1ca2 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -1390,6 +1390,9 @@ static inline void i40e_config_automask(struct i40e_pf *pf)\n \thw->adapter_stopped = 0;\n \thw->adapter_closed = 0;\n \n+\t/* Init switch device pointer */\n+\thw->switch_dev = NULL;\n+\n \t/*\n \t * Switch Tag value should not be identical to either the First Tag\n \t * or Second Tag values. So set something other than common Ethertype\n@@ -2901,6 +2904,9 @@ void i40e_flex_payload_reg_set_default(struct i40e_hw *hw)\n \telse\n \t\tupdate_link_aq(hw, &link, enable_lse, wait_to_complete);\n \n+\tif (hw->switch_dev)\n+\t\trte_eth_linkstatus_get(hw->switch_dev, &link);\n+\n \tret = rte_eth_linkstatus_set(dev, &link);\n \ti40e_notify_all_vfs_link_status(dev);\n \ndiff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c\nindex 4c3c708..fdcb1a4 100644\n--- a/drivers/net/i40e/rte_pmd_i40e.c\n+++ b/drivers/net/i40e/rte_pmd_i40e.c\n@@ -3207,3 +3207,24 @@ int rte_pmd_i40e_flow_add_del_packet_template(\n \tI40E_WRITE_FLUSH(hw);\n \treturn 0;\n }\n+\n+int\n+rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev)\n+{\n+\tstruct rte_eth_dev *i40e_dev;\n+\tstruct i40e_hw *hw;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\ti40e_dev = &rte_eth_devices[port_id];\n+\tif (!is_i40e_supported(i40e_dev))\n+\t\treturn -ENOTSUP;\n+\n+\thw = I40E_DEV_PRIVATE_TO_HW(i40e_dev->data->dev_private);\n+\tif (!hw)\n+\t\treturn -1;\n+\n+\thw->switch_dev = switch_dev;\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/net/i40e/rte_pmd_i40e.h b/drivers/net/i40e/rte_pmd_i40e.h\nindex faac9e2..355b8be 100644\n--- a/drivers/net/i40e/rte_pmd_i40e.h\n+++ b/drivers/net/i40e/rte_pmd_i40e.h\n@@ -1061,4 +1061,22 @@ int rte_pmd_i40e_inset_set(uint16_t port, uint8_t pctype,\n \treturn 0;\n }\n \n+/**\n+ * For ipn3ke, i40e works with FPGA.\n+ * In this situation, i40e get link status from fpga,\n+ * fpga works as switch_dev for i40e.\n+ * This function set switch_dev for i40e.\n+ *\n+ * @param inset\n+ * Input set value.\n+ * @param field_idx\n+ * Field index for input set.\n+ * @return\n+ * - (less than 0) if failed.\n+ * - (0) if success.\n+ */\n+__rte_experimental\n+int\n+rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);\n+\n #endif /* _PMD_I40E_H_ */\ndiff --git a/drivers/net/i40e/rte_pmd_i40e_version.map b/drivers/net/i40e/rte_pmd_i40e_version.map\nindex cccd576..79641f2 100644\n--- a/drivers/net/i40e/rte_pmd_i40e_version.map\n+++ b/drivers/net/i40e/rte_pmd_i40e_version.map\n@@ -64,4 +64,10 @@ DPDK_18.02 {\n \n \trte_pmd_i40e_inset_get;\n \trte_pmd_i40e_inset_set;\n-} DPDK_17.11;\n\\ No newline at end of file\n+} DPDK_17.11;\n+\n+EXPERIMENTAL {\n+\tglobal:\n+\n+\trte_pmd_i40e_set_switch_dev;\n+} DPDK_18.02;\n\\ No newline at end of file\n", "prefixes": [ "v9", "01/18" ] }{ "id": 61054, "url": "