Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/65008/?format=api
http://patches.dpdk.org/api/patches/65008/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200121114433.57543-4-huwei013@chinasoftinc.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": "<20200121114433.57543-4-huwei013@chinasoftinc.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200121114433.57543-4-huwei013@chinasoftinc.com", "date": "2020-01-21T11:44:33", "name": "[3/3] app/testpmd: fix uninitialized members when setting PFC", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b68053fb1e1666111fb99faa90c33c1d047767b7", "submitter": { "id": 1537, "url": "http://patches.dpdk.org/api/people/1537/?format=api", "name": "Wei Hu (Xavier)", "email": "huwei013@chinasoftinc.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/20200121114433.57543-4-huwei013@chinasoftinc.com/mbox/", "series": [ { "id": 8241, "url": "http://patches.dpdk.org/api/series/8241/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8241", "date": "2020-01-21T11:44:30", "name": "app/testpmd: fixes for testpmd application", "version": 1, "mbox": "http://patches.dpdk.org/series/8241/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/65008/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/65008/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 B466CA04DD;\n\tTue, 21 Jan 2020 12:45:06 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0C0AD4C7B;\n\tTue, 21 Jan 2020 12:44:54 +0100 (CET)", "from incedge.chinasoftinc.com (unknown [114.113.233.8])\n by dpdk.org (Postfix) with ESMTP id EFC3B322C\n for <dev@dpdk.org>; Tue, 21 Jan 2020 12:44:48 +0100 (CET)", "from mail.chinasoftinc.com (inccas002.ito.icss [10.168.0.52]) by\n incedge.chinasoftinc.com with ESMTP id 21fXzHlG4oF4UzdN (version=TLSv1\n cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO) for <dev@dpdk.org>;\n Tue, 21 Jan 2020 19:44:46 +0800 (CST)", "from localhost.localdomain (114.119.4.74) by INCCAS002.ito.icss\n (10.168.0.60) with Microsoft SMTP Server id 14.3.439.0; Tue, 21 Jan 2020\n 19:44:40 +0800" ], "X-ASG-Debug-ID": "1579607080-0a3dd173f383950004-TfluYd", "X-Barracuda-Envelope-From": "huwei013@chinasoftinc.com", "X-Barracuda-RBL-Trusted-Forwarder": [ "10.168.0.52", "10.168.0.60" ], "X-ASG-Whitelist": "Client", "From": "\"Wei Hu (Xavier)\" <huwei013@chinasoftinc.com>", "To": "<dev@dpdk.org>", "Date": "Tue, 21 Jan 2020 19:44:33 +0800", "X-ASG-Orig-Subj": "[PATCH 3/3] app/testpmd: fix uninitialized members when\n setting PFC", "Message-ID": "<20200121114433.57543-4-huwei013@chinasoftinc.com>", "X-Mailer": "git-send-email 2.23.0", "In-Reply-To": "<20200121114433.57543-1-huwei013@chinasoftinc.com>", "References": "<20200121114433.57543-1-huwei013@chinasoftinc.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[114.119.4.74]", "X-Barracuda-Connect": "inccas002.ito.icss[10.168.0.52]", "X-Barracuda-Start-Time": "1579607084", "X-Barracuda-Encrypted": "ECDHE-RSA-AES256-SHA", "X-Barracuda-URL": "https://spam.chinasoftinc.com:443/cgi-mod/mark.cgi", "X-Virus-Scanned": "by bsmtpd at chinasoftinc.com", "X-Barracuda-Scan-Msg-Size": "1384", "Subject": "[dpdk-dev] [PATCH 3/3] app/testpmd: fix uninitialized members when\n\tsetting PFC", "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": "From: \"Wei Hu (Xavier)\" <xavier.huwei@huawei.com>\n\nOnly a part of members in the local structure variable named pfc_conf are\ninitialized in the function named cmd_priority_flow_ctrl_set_parsed when\ntyping \"set pfc_ctrl...\" command, and others are random values. However,\nthose uninitialized members may cause failure.\n\nThis patch adds clearing zero operation before calling the API named\nrte_eth_dev_priority_flow_ctrl_set API with pfc_conf as the input\nparameter.\n\nFixes: 9b53e542e9e1 (\"app/testpmd: add priority flow control\")\nCc: stable@dpdk.org\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nSigned-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>\nSigned-off-by: Xuan Li <lixuan47@hisilicon.com>\n---\n app/test-pmd/cmdline.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex a09cb87e1..b6d8ef0f0 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -7090,6 +7090,7 @@ cmd_priority_flow_ctrl_set_parsed(void *parsed_result,\n \t\t{RTE_FC_NONE, RTE_FC_TX_PAUSE}, {RTE_FC_RX_PAUSE, RTE_FC_FULL}\n \t};\n \n+\tmemset(&pfc_conf, 0, sizeof(struct rte_eth_pfc_conf));\n \trx_fc_enable = (!strncmp(res->rx_pfc_mode, \"on\",2)) ? 1 : 0;\n \ttx_fc_enable = (!strncmp(res->tx_pfc_mode, \"on\",2)) ? 1 : 0;\n \tpfc_conf.fc.mode = rx_tx_onoff_2_pfc_mode[rx_fc_enable][tx_fc_enable];\n", "prefixes": [ "3/3" ] }{ "id": 65008, "url": "