[dpdk-dev] [PATCH 3/3] app/testpmd: fix uninitialized members when setting PFC

Ferruh Yigit ferruh.yigit at intel.com
Tue Feb 4 19:25:26 CET 2020

On 1/28/2020 11:21 AM, Ferruh Yigit wrote:
> On 1/21/2020 11:44 AM, Wei Hu (Xavier) wrote:
>> From: "Wei Hu (Xavier)" <xavier.huwei at huawei.com>
>> Only a part of members in the local structure variable named pfc_conf are
>> initialized in the function named cmd_priority_flow_ctrl_set_parsed when
>> typing "set pfc_ctrl..." command, and others are random values. However,
>> those uninitialized members may cause failure.
>> This patch adds clearing zero operation before calling the API named
>> rte_eth_dev_priority_flow_ctrl_set API with pfc_conf as the input
>> parameter.
>> Fixes: 9b53e542e9e1 ("app/testpmd: add priority flow control")
>> Cc: stable at dpdk.org
>> Signed-off-by: Huisong Li <lihuisong at huawei.com>
>> Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
>> Signed-off-by: Xuan Li <lixuan47 at hisilicon.com>
> Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied to dpdk-next-net/master, thanks.

More information about the dev mailing list