Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/92253/?format=api
http://patches.dpdk.org/api/patches/92253/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1619525859-4182-1-git-send-email-humin29@huawei.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": "<1619525859-4182-1-git-send-email-humin29@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1619525859-4182-1-git-send-email-humin29@huawei.com", "date": "2021-04-27T12:17:39", "name": "[v3] net/hns3: fix parse link fails code fail", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e170c3c27cf87be9f3e0e6eacf30585d306dbdd2", "submitter": { "id": 1944, "url": "http://patches.dpdk.org/api/people/1944/?format=api", "name": "humin (Q)", "email": "humin29@huawei.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1619525859-4182-1-git-send-email-humin29@huawei.com/mbox/", "series": [ { "id": 16701, "url": "http://patches.dpdk.org/api/series/16701/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16701", "date": "2021-04-27T12:17:39", "name": "[v3] net/hns3: fix parse link fails code fail", "version": 3, "mbox": "http://patches.dpdk.org/series/16701/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/92253/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/92253/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 60249A0548;\n\tTue, 27 Apr 2021 14:17:35 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E417140150;\n\tTue, 27 Apr 2021 14:17:34 +0200 (CEST)", "from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by mails.dpdk.org (Postfix) with ESMTP id 9BD234014E\n for <dev@dpdk.org>; Tue, 27 Apr 2021 14:17:33 +0200 (CEST)", "from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60])\n by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FV11Z5P6dzlbFj\n for <dev@dpdk.org>; Tue, 27 Apr 2021 20:15:30 +0800 (CST)", "from localhost.localdomain (10.69.192.56) by\n DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id\n 14.3.498.0; Tue, 27 Apr 2021 20:17:29 +0800" ], "From": "\"Min Hu (Connor)\" <humin29@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@intel.com>", "Date": "Tue, 27 Apr 2021 20:17:39 +0800", "Message-ID": "<1619525859-4182-1-git-send-email-humin29@huawei.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1619056552-43937-4-git-send-email-humin29@huawei.com>", "References": "<1619056552-43937-4-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 v3] net/hns3: fix parse link fails code fail", "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: Chengwen Feng <fengchengwen@huawei.com>\n\nThe link fails code should be parsed using the structure\nhns3_mbx_vf_to_pf_cmd, else it will parse fail.\n\nFixes: 109e4dd1bd7a (\"net/hns3: get link state change through mailbox\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nSigned-off-by: Min Hu (Connor) <humin29@huawei.com>\n---\nv3:\n* get the parameter as 'struct hns3_mbx_vf_to_pf_cmd' at first place.\n\nv2:\n* kept original API interface.\n---\n drivers/net/hns3/hns3_mbx.c | 11 +++++++++--\n 1 file changed, 9 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/hns3/hns3_mbx.c b/drivers/net/hns3/hns3_mbx.c\nindex ba04ac9..31ab130 100644\n--- a/drivers/net/hns3/hns3_mbx.c\n+++ b/drivers/net/hns3/hns3_mbx.c\n@@ -347,7 +347,7 @@ hns3_link_fail_parse(struct hns3_hw *hw, uint8_t link_fail_code)\n \n static void\n hns3pf_handle_link_change_event(struct hns3_hw *hw,\n-\t\t\t struct hns3_mbx_pf_to_vf_cmd *req)\n+\t\t\t\tstruct hns3_mbx_vf_to_pf_cmd *req)\n {\n #define LINK_STATUS_OFFSET 1\n #define LINK_FAIL_CODE_OFFSET 2\n@@ -513,7 +513,14 @@ hns3_dev_handle_mbx_msg(struct hns3_hw *hw)\n \t\t\thns3_handle_asserting_reset(hw, req);\n \t\t\tbreak;\n \t\tcase HNS3_MBX_PUSH_LINK_STATUS:\n-\t\t\thns3pf_handle_link_change_event(hw, req);\n+\t\t\t/*\n+\t\t\t * This message is reported by the firmware and is\n+\t\t\t * reported in 'struct hns3_mbx_vf_to_pf_cmd' format.\n+\t\t\t * Therefore, we should cast the req variable to\n+\t\t\t * 'struct hns3_mbx_vf_to_pf_cmd' and then process it.\n+\t\t\t */\n+\t\t\thns3pf_handle_link_change_event(hw,\n+\t\t\t\t(struct hns3_mbx_vf_to_pf_cmd *)req);\n \t\t\tbreak;\n \t\tcase HNS3_MBX_PUSH_VLAN_INFO:\n \t\t\t/*\n", "prefixes": [ "v3" ] }{ "id": 92253, "url": "