Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/67999/?format=api
https://patches.dpdk.org/api/patches/67999/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200408100523.67792-3-jiaqix.min@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": "<20200408100523.67792-3-jiaqix.min@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200408100523.67792-3-jiaqix.min@intel.com", "date": "2020-04-08T10:05:21", "name": "[v2,2/4] net/i40e/base: new device ID introduced for V710-TL 5G", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a0392365569af2b43b9182a3d801b75c8896986b", "submitter": { "id": 1374, "url": "https://patches.dpdk.org/api/people/1374/?format=api", "name": "Min, JiaqiX", "email": "jiaqix.min@intel.com" }, "delegate": { "id": 31221, "url": "https://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200408100523.67792-3-jiaqix.min@intel.com/mbox/", "series": [ { "id": 9247, "url": "https://patches.dpdk.org/api/series/9247/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9247", "date": "2020-04-08T10:05:19", "name": "update i40e base code", "version": 2, "mbox": "https://patches.dpdk.org/series/9247/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/67999/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/67999/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6EDDFA0597;\n\tWed, 8 Apr 2020 12:21:18 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3DF2E1C1A7;\n\tWed, 8 Apr 2020 12:21:06 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 23E141C12E\n for <dev@dpdk.org>; Wed, 8 Apr 2020 12:21:03 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Apr 2020 03:21:03 -0700", "from dpdk.sh.intel.com ([10.239.255.14])\n by orsmga002.jf.intel.com with ESMTP; 08 Apr 2020 03:21:02 -0700" ], "IronPort-SDR": [ "\n HujHdQHD/7NJkj8WGPo5Yo5JQOyUIpMafU5EZhYAIOoFuwtWRc4dtb9IJ7mAfd+PaWCKvvxIwl\n Mr5cXv1h1KnA==", "\n qzZHJ37eKwMaNhD0uvwWYc6zOO+QklbUp5hFWWL6AY1YGawoL1nLHVYP9r66mI7eKjzxUaJkOR\n ie1NmCoyPtCw==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.72,357,1580803200\"; d=\"scan'208\";a=\"269712530\"", "From": "Jiaqi Min <jiaqix.min@intel.com>", "To": "dev@dpdk.org", "Cc": "Jiaqi Min <jiaqix.min@intel.com>,\n Zalfresso-Jundzillo <marekx.zalfresso-jundzillo@intel.com>", "Date": "Wed, 8 Apr 2020 10:05:21 +0000", "Message-Id": "<20200408100523.67792-3-jiaqix.min@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200408100523.67792-1-jiaqix.min@intel.com>", "References": "<20200325032356.20198-1-jiaqix.min@intel.com>\n <20200408100523.67792-1-jiaqix.min@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 2/4] net/i40e/base: new device ID introduced\n\tfor V710-TL 5G", "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 <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": "This change is adding new device ID and handling it in the same\nway as X710-T*L head of family. A new device ID is for new V710-T*L adapter\nsupporting speeds up to 5G.\n\nSigned-off-by: Zalfresso-Jundzillo <marekx.zalfresso-jundzillo@intel.com>\nSigned-off-by: Jiaqi Min <jiaqix.min@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c | 12 +++++++++---\n drivers/net/i40e/base/i40e_devids.h | 4 +++-\n drivers/net/i40e/i40e_ethdev.c | 1 +\n 3 files changed, 13 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 84e67f285..4e06f2d23 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -34,6 +34,7 @@ enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)\n \t\tcase I40E_DEV_ID_10G_BASE_T_BC:\n \t\tcase I40E_DEV_ID_10G_B:\n \t\tcase I40E_DEV_ID_10G_SFP:\n+\t\tcase I40E_DEV_ID_5G_BASE_T_BC:\n \t\tcase I40E_DEV_ID_20G_KR2:\n \t\tcase I40E_DEV_ID_20G_KR2_A:\n \t\tcase I40E_DEV_ID_25G_B:\n@@ -6728,6 +6729,7 @@ enum i40e_status_code i40e_write_phy_register(struct i40e_hw *hw,\n \tcase I40E_DEV_ID_10G_BASE_T:\n \tcase I40E_DEV_ID_10G_BASE_T4:\n \tcase I40E_DEV_ID_10G_BASE_T_BC:\n+\tcase I40E_DEV_ID_5G_BASE_T_BC:\n \tcase I40E_DEV_ID_10G_BASE_T_X722:\n \tcase I40E_DEV_ID_25G_B:\n \tcase I40E_DEV_ID_25G_SFP28:\n@@ -6764,6 +6766,7 @@ enum i40e_status_code i40e_read_phy_register(struct i40e_hw *hw,\n \t\tbreak;\n \tcase I40E_DEV_ID_10G_BASE_T:\n \tcase I40E_DEV_ID_10G_BASE_T4:\n+\tcase I40E_DEV_ID_5G_BASE_T_BC:\n \tcase I40E_DEV_ID_10G_BASE_T_X722:\n \tcase I40E_DEV_ID_25G_B:\n \tcase I40E_DEV_ID_25G_SFP28:\n@@ -7036,7 +7039,8 @@ enum i40e_status_code i40e_get_phy_lpi_status(struct i40e_hw *hw,\n \tstat->rx_lpi_status = 0;\n \tstat->tx_lpi_status = 0;\n \n-\tif (hw->device_id == I40E_DEV_ID_10G_BASE_T_BC &&\n+\tif ((hw->device_id == I40E_DEV_ID_10G_BASE_T_BC ||\n+\t hw->device_id == I40E_DEV_ID_5G_BASE_T_BC) &&\n \t (hw->phy.link_info.link_speed == I40E_LINK_SPEED_2_5GB ||\n \t hw->phy.link_info.link_speed == I40E_LINK_SPEED_5GB)) {\n \t\tret = i40e_aq_get_phy_register(hw,\n@@ -7081,7 +7085,8 @@ enum i40e_status_code i40e_get_lpi_counters(struct i40e_hw *hw,\n \t/* only X710-T*L requires special handling of counters\n \t * for other devices we just read the MAC registers\n \t */\n-\tif (hw->device_id == I40E_DEV_ID_10G_BASE_T_BC &&\n+\tif ((hw->device_id == I40E_DEV_ID_10G_BASE_T_BC ||\n+\t hw->device_id == I40E_DEV_ID_5G_BASE_T_BC) &&\n \t hw->phy.link_info.link_speed != I40E_LINK_SPEED_1GB) {\n \t\tenum i40e_status_code retval;\n \t\tu32 cmd_status = 0;\n@@ -7123,7 +7128,8 @@ enum i40e_status_code i40e_get_lpi_duration(struct i40e_hw *hw,\n \tenum i40e_status_code retval;\n \tu32 cmd_status;\n \n-\tif (hw->device_id != I40E_DEV_ID_10G_BASE_T_BC)\n+\tif (hw->device_id != I40E_DEV_ID_10G_BASE_T_BC &&\n+\t hw->device_id != I40E_DEV_ID_5G_BASE_T_BC)\n \t\treturn I40E_ERR_NOT_IMPLEMENTED;\n \n \tretval = i40e_aq_run_phy_activity\ndiff --git a/drivers/net/i40e/base/i40e_devids.h b/drivers/net/i40e/base/i40e_devids.h\nindex 5897d38f6..b87e1bcb4 100644\n--- a/drivers/net/i40e/base/i40e_devids.h\n+++ b/drivers/net/i40e/base/i40e_devids.h\n@@ -25,6 +25,7 @@\n #define I40E_DEV_ID_X710_N3000 0x0CF8\n #define I40E_DEV_ID_XXV710_N3000\t0x0D58\n #define I40E_DEV_ID_10G_BASE_T_BC\t0x15FF\n+#define I40E_DEV_ID_5G_BASE_T_BC\t0x101F\n #if defined(INTEGRATED_VF) || defined(VF_DRIVER) || defined(I40E_NDIS_SUPPORT)\n #define I40E_DEV_ID_VF\t\t\t0x154C\n #define I40E_DEV_ID_VF_HV\t\t0x1571\n@@ -39,7 +40,8 @@\n #define I40E_DEV_ID_10G_B\t\t0x104F\n #define I40E_DEV_ID_10G_SFP\t\t0x104E\n #define I40E_IS_X710TL_DEVICE(d) \\\n-\t((d) == I40E_DEV_ID_10G_BASE_T_BC)\n+\t(((d) == I40E_DEV_ID_10G_BASE_T_BC) || \\\n+\t((d) == I40E_DEV_ID_5G_BASE_T_BC))\n #define I40E_DEV_ID_KX_X722\t\t0x37CE\n #define I40E_DEV_ID_QSFP_X722\t\t0x37CF\n #define I40E_DEV_ID_SFP_X722\t\t0x37D0\ndiff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 530908b0e..60de68fd8 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -443,6 +443,7 @@ static const struct rte_pci_id pci_id_i40e_map[] = {\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_X710_N3000) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_XXV710_N3000) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_BASE_T_BC) },\n+\t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_5G_BASE_T_BC) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_B) },\n \t{ RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_SFP) },\n \t{ .vendor_id = 0, /* sentinel */ },\n", "prefixes": [ "v2", "2/4" ] }{ "id": 67999, "url": "