Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/91392/?format=api
https://patches.dpdk.org/api/patches/91392/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1618369325-32797-1-git-send-email-humin29@huawei.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": "<1618369325-32797-1-git-send-email-humin29@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1618369325-32797-1-git-send-email-humin29@huawei.com", "date": "2021-04-14T03:02:05", "name": "[v2] app/testpmd: fix bitmap of link speeds when force speed", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ce944e3ae5e249feb3fe5b7205294f2aa76e7bea", "submitter": { "id": 1944, "url": "https://patches.dpdk.org/api/people/1944/?format=api", "name": "humin (Q)", "email": "humin29@huawei.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/1618369325-32797-1-git-send-email-humin29@huawei.com/mbox/", "series": [ { "id": 16352, "url": "https://patches.dpdk.org/api/series/16352/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16352", "date": "2021-04-14T03:02:05", "name": "[v2] app/testpmd: fix bitmap of link speeds when force speed", "version": 2, "mbox": "https://patches.dpdk.org/series/16352/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/91392/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/91392/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 E9811A0524;\n\tWed, 14 Apr 2021 05:01:53 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CE92516122B;\n\tWed, 14 Apr 2021 05:01:53 +0200 (CEST)", "from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35])\n by mails.dpdk.org (Postfix) with ESMTP id 7998316100E\n for <dev@dpdk.org>; Wed, 14 Apr 2021 05:01:52 +0200 (CEST)", "from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60])\n by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FKnJ56NhWzB0Sd\n for <dev@dpdk.org>; Wed, 14 Apr 2021 10:59:33 +0800 (CST)", "from localhost.localdomain (10.69.192.56) by\n DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id\n 14.3.498.0; Wed, 14 Apr 2021 11:01:48 +0800" ], "From": "\"Min Hu (Connor)\" <humin29@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@intel.com>, <xiaoyun.li@intel.com>", "Date": "Wed, 14 Apr 2021 11:02:05 +0800", "Message-ID": "<1618369325-32797-1-git-send-email-humin29@huawei.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1617877348-16394-1-git-send-email-humin29@huawei.com>", "References": "<1617877348-16394-1-git-send-email-humin29@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.69.192.56]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH v2] app/testpmd: fix bitmap of link speeds when\n force speed", "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": "From: Huisong Li <lihuisong@huawei.com>\n\nCurrently, when the user sets force link speed through 'link_speeds',\nbit(0) of 'link_speeds' is not set to 1(ETH_LINK_SPEED_FIXED),\nwhich conflicts with the definition.\n\nFixes: 88fbedcd5e5a (\"app/testpmd: move speed and duplex parsing in a function\")\nCc: stable@dpdk.org\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nSigned-off-by: Min Hu (Connor) <humin29@huawei.com>\n---\nv2:\n* When users set 10M and 100M speed, fixed bit is still set.\n v2 fix the bug.\n---\n app/test-pmd/cmdline.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 56cf0bf..4eff5fd 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -1525,6 +1525,9 @@ parse_and_check_speed_duplex(char *speedstr, char *duplexstr, uint32_t *speed)\n \t\t}\n \t}\n \n+\tif (*speed != ETH_LINK_SPEED_AUTONEG)\n+\t\t*speed |= ETH_LINK_SPEED_FIXED;\n+\n \treturn 0;\n }\n \n", "prefixes": [ "v2" ] }{ "id": 91392, "url": "