From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 231D941E15; Wed, 8 Mar 2023 08:38:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B18AD40FAE; Wed, 8 Mar 2023 08:38:00 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 0A06E40ED6 for ; Wed, 8 Mar 2023 08:37:58 +0100 (CET) Received: from kwepemi500017.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PWkd25JKnzKqJ4; Wed, 8 Mar 2023 15:35:50 +0800 (CST) Received: from [10.67.103.235] (10.67.103.235) by kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 8 Mar 2023 15:37:53 +0800 Subject: Re: [PATCH 6/9] net/hns3: fix segment fault when parse runtime config To: Chengwen Feng , , , Yisen Zhuang , "Min Hu (Connor)" , Chengchang Tang References: <20230302075012.32423-1-fengchengwen@huawei.com> <20230302075012.32423-7-fengchengwen@huawei.com> CC: From: Dongdong Liu Message-ID: Date: Wed, 8 Mar 2023 15:37:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20230302075012.32423-7-fengchengwen@huawei.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.235] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500017.china.huawei.com (7.221.188.110) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2023/3/2 15:50, Chengwen Feng wrote: > The rte_kvargs_process() was used to parse KV pairs, it also supports > to parse 'only keys' (e.g. socket_id) type. And the callback function > parameter 'value' is NULL when parsed 'only keys'. > > This patch fixes segment fault when parse input args with 'only keys' > (e.g. rx_func_hint). > > Fixes: a124f9e9591b ("net/hns3: add runtime config to select IO burst function") > Fixes: 70791213242e ("net/hns3: support masking device capability") > Fixes: 2fc3e696a7f1 ("net/hns3: add runtime config for mailbox limit time") > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng Acked-by: Dongdong Liu Thanks, Dongdong