Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/34961/?format=api
http://patches.dpdk.org/api/patches/34961/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1517832104-2800-1-git-send-email-yliu@fridaylinux.org/", "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": "<1517832104-2800-1-git-send-email-yliu@fridaylinux.org>", "list_archive_url": "https://inbox.dpdk.org/dev/1517832104-2800-1-git-send-email-yliu@fridaylinux.org", "date": "2018-02-05T12:01:44", "name": "[dpdk-dev] net/mlx5: fix link speed", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9cf9fe43b2fc76a288f67d1cd309f06c5b93d720", "submitter": { "id": 760, "url": "http://patches.dpdk.org/api/people/760/?format=api", "name": "Yuanhan Liu", "email": "yliu@fridaylinux.org" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1517832104-2800-1-git-send-email-yliu@fridaylinux.org/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/34961/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/34961/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 F23E21B340;\n\tMon, 5 Feb 2018 13:03:52 +0100 (CET)", "from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com\n\t[66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 686B11B2FF;\n\tMon, 5 Feb 2018 13:03:52 +0100 (CET)", "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n\tby mailout.nyi.internal (Postfix) with ESMTP id D70BB20B2E;\n\tMon, 5 Feb 2018 07:03:51 -0500 (EST)", "from frontend1 ([10.202.2.160])\n\tby compute1.internal (MEProxy); Mon, 05 Feb 2018 07:03:51 -0500", "from localhost.localdomain (unknown [218.64.213.73])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id 74BB77E3DF;\n\tMon, 5 Feb 2018 07:03:48 -0500 (EST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org;\n\th=cc:date:from:message-id:subject:to:x-me-sender:x-me-sender\n\t:x-sasl-enc; s=fm2; bh=8wCxCA18dAQzrirQtAOIi+LD69yOv7fVGZUVZY28c\n\tnY=; b=p/6dJoQlAktk/RzMJKxgV8UmoLFlJWQOGn7U9d0SBZjoWHsGSYWkOxZm8\n\thib78XPlyOYv23I3z7KD1sVodQGV0tCm0/ZQ8tvgx250KmY6xXb0ZR3n6ZVDQsj5\n\te9yIoEIEIt0N24n0DSqke5Lmgbe70LY5sWS4anrRZu9XKGwRbb8zC+jsPR171XWj\n\tsCt8xEvHhnkaKwV/BU1c3MOaqKS1JrnJg4fDA0zfZvK+2diO0hpwnZ0jDf7KrCtn\n\t5EymYmZX2fuJe5mCVgve5i3DAuWamvz81wZVzHUdbGzHn9DFjrz22gf0/vDcEJT3\n\tUtYdWCn8CkLBdYdl3g3ZZJUCSGwNQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:date:from:message-id:subject:to\n\t:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8wCxCA18dAQzrirQt\n\tAOIi+LD69yOv7fVGZUVZY28cnY=; b=ZXtq1VJ0UHblrxbvBOB5gkqYqcbkMPyV5\n\tyt8Prk5he+ICKLPBJy1hl/knf65uXQW8A0jOP0y5TKb+IjZGucEPVVGa9oHuItu/\n\tzBnPfCZ6k9BzfHO7hSTS5HeciwzPCw0WypOOsdlV8F8RFY2jvUk7jehstmeTqAEk\n\tIDTKj7j/zcUxkXNeZSYfMhY1A4alxihQbuw8Dr8eloHNLsc1H11afv2Yo2cfiePL\n\t2tjjSEjBGuxGqJjL6z8IZFqU44h5PK2x5zGpB34hCZZfxmdxnSnuGxuHki9gxFUX\n\tCGHuE3pY5B3qVi4hec7qHv/bwQLf1ka7y9J7Z2fFOjolkMVpDtBxg==" ], "X-ME-Sender": "<xms:J0h4WiuMFLjSjfXShcP1qBtHRLS7dxqfc8Nm_7dWIsC61zSaWxe9Sg>", "From": "Yuanhan Liu <yliu@fridaylinux.org>", "To": "dev@dpdk.org", "Cc": "Adrien Mazarguil <adrien.mazarguil@6wind.com>,\n\tNelio Laranjeiro <nelio.laranjeiro@6wind.com>,\n\tYongseok Koh <yskoh@mellanox.com>, Shahaf Shuler <shahafs@mellanox.com>, \n\tYuanhan Liu <yliu@fridaylinux.org>, stable@dpdk.org", "Date": "Mon, 5 Feb 2018 20:01:44 +0800", "Message-Id": "<1517832104-2800-1-git-send-email-yliu@fridaylinux.org>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH] net/mlx5: fix link speed", "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://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": "<https://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": "When the link is down, mlx5 kernel driver reports the link speed as -1\n(UNKNOWN_SPEED). We need turn it to 0 for such case, otherwise, it\nwill be re-queried again due to the link_speed is not 0, due to following\ncode:\n\n 1201 if (((link->link_speed == 0) && link->link_status) ||\n 1202 ((link->link_speed != 0) && !link->link_status)) {\n 1203 /*\n 1204 * Inconsistent status. Event likely occurred before the\n 1205 * kernel netdevice exposes the new status.\n 1206 */\n\nFixes: 188408719888 (\"net/mlx5: fix support for newer link speeds\")\n\nCc: stable@dpdk.org\nSigned-off-by: Yuanhan Liu <yliu@fridaylinux.org>\n---\n drivers/net/mlx5/mlx5_ethdev.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c\nindex 6665076..492ca07 100644\n--- a/drivers/net/mlx5/mlx5_ethdev.c\n+++ b/drivers/net/mlx5/mlx5_ethdev.c\n@@ -808,6 +808,10 @@ mlx5_link_update_unlocked_gs(struct rte_eth_dev *dev, int wait_to_complete)\n \t\treturn -1;\n \t}\n \tdev_link.link_speed = ecmd->speed;\n+\tif (link_speed == -1)\n+\t\tdev_link.link_speed = 0;\n+\telse\n+\t\tdev_link.link_speed = link_speed;\n \tsc = ecmd->link_mode_masks[0] |\n \t\t((uint64_t)ecmd->link_mode_masks[1] << 32);\n \tpriv->link_speed_capa = 0;\n", "prefixes": [ "dpdk-dev" ] }{ "id": 34961, "url": "