Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/17609/?format=api
https://patches.dpdk.org/api/patches/17609/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1480833100-48545-19-git-send-email-wei.dai@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": "<1480833100-48545-19-git-send-email-wei.dai@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1480833100-48545-19-git-send-email-wei.dai@intel.com", "date": "2016-12-04T06:31:30", "name": "[dpdk-dev,19/29] net/ixgbe/base: check only X550 devices support 5G", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "28d1a371d827111b6bf6636a5e7ddd69180c881a", "submitter": { "id": 490, "url": "https://patches.dpdk.org/api/people/490/?format=api", "name": "Wei Dai", "email": "wei.dai@intel.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1480833100-48545-19-git-send-email-wei.dai@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/17609/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/17609/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 C0617FA97;\n\tSun, 4 Dec 2016 07:37:03 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 1AD4F5678\n\tfor <dev@dpdk.org>; Sun, 4 Dec 2016 07:35:48 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga101.fm.intel.com with ESMTP; 03 Dec 2016 22:35:48 -0800", "from dpdk4.bj.intel.com ([172.16.182.178])\n\tby orsmga003.jf.intel.com with ESMTP; 03 Dec 2016 22:35:47 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.33,740,1477983600\"; d=\"scan'208\";a=\"908483947\"", "From": "Wei Dai <wei.dai@intel.com>", "To": "helin.zhang@intel.com,\n\tkonstantin.ananyev@intel.com", "Cc": "dev@dpdk.org,\n\tWei Dai <wei.dai@intel.com>", "Date": "Sun, 4 Dec 2016 14:31:30 +0800", "Message-Id": "<1480833100-48545-19-git-send-email-wei.dai@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1480833100-48545-1-git-send-email-wei.dai@intel.com>", "References": "<1480833100-48545-1-git-send-email-wei.dai@intel.com>", "Subject": "[dpdk-dev] [PATCH 19/29] net/ixgbe/base: check only X550 devices\n\tsupport 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": "<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": "Since only X550 devices have support for 5G, so it should be checked\nfor that speed on such devices.\n\nSigned-off-by: Wei Dai <wei.dai@intel.com>\n---\n drivers/net/ixgbe/base/ixgbe_common.c | 2 +-\n drivers/net/ixgbe/base/ixgbe_hv_vf.c | 2 +-\n drivers/net/ixgbe/base/ixgbe_vf.c | 2 +-\n 3 files changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c\nindex 89b4b5f..18bb18c 100644\n--- a/drivers/net/ixgbe/base/ixgbe_common.c\n+++ b/drivers/net/ixgbe/base/ixgbe_common.c\n@@ -4230,7 +4230,7 @@ s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, ixgbe_link_speed *speed,\n \t\tbreak;\n \tcase IXGBE_LINKS_SPEED_100_82599:\n \t\t*speed = IXGBE_LINK_SPEED_100_FULL;\n-\t\tif (hw->mac.type >= ixgbe_mac_X550) {\n+\t\tif (hw->mac.type == ixgbe_mac_X550) {\n \t\t\tif (links_reg & IXGBE_LINKS_SPEED_NON_STD)\n \t\t\t\t*speed = IXGBE_LINK_SPEED_5GB_FULL;\n \t\t}\ndiff --git a/drivers/net/ixgbe/base/ixgbe_hv_vf.c b/drivers/net/ixgbe/base/ixgbe_hv_vf.c\nindex 6e3449e..c4e11cc 100644\n--- a/drivers/net/ixgbe/base/ixgbe_hv_vf.c\n+++ b/drivers/net/ixgbe/base/ixgbe_hv_vf.c\n@@ -147,7 +147,7 @@ static s32 ixgbevf_hv_check_mac_link_vf(struct ixgbe_hw *hw,\n \t\tbreak;\n \tcase IXGBE_LINKS_SPEED_100_82599:\n \t\t*speed = IXGBE_LINK_SPEED_100_FULL;\n-\t\tif (hw->mac.type >= ixgbe_mac_X550) {\n+\t\tif (hw->mac.type == ixgbe_mac_X550) {\n \t\t\tif (links_reg & IXGBE_LINKS_SPEED_NON_STD)\n \t\t\t\t*speed = IXGBE_LINK_SPEED_5GB_FULL;\n \t\t}\ndiff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c\nindex 66486ea..8775ee5 100644\n--- a/drivers/net/ixgbe/base/ixgbe_vf.c\n+++ b/drivers/net/ixgbe/base/ixgbe_vf.c\n@@ -623,7 +623,7 @@ s32 ixgbe_check_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed *speed,\n \t\tbreak;\n \tcase IXGBE_LINKS_SPEED_100_82599:\n \t\t*speed = IXGBE_LINK_SPEED_100_FULL;\n-\t\tif (hw->mac.type >= ixgbe_mac_X550) {\n+\t\tif (hw->mac.type == ixgbe_mac_X550) {\n \t\t\tif (links_reg & IXGBE_LINKS_SPEED_NON_STD)\n \t\t\t\t*speed = IXGBE_LINK_SPEED_5GB_FULL;\n \t\t}\n", "prefixes": [ "dpdk-dev", "19/29" ] }{ "id": 17609, "url": "