[PATCH v2 02/44] ethdev: fix segment fault when parse args

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Sun Apr 9 10:10:15 CEST 2023


On 3/20/23 12:20, 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 args with 'only keys'
> (e.g. 'mac,representor').
> 
> Fixes: c10cdce180a6 ("ethdev: support MAC address as iterator filter")
> Fixes: a7d3c6271d55 ("ethdev: support representor id as iterator filter")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>

Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>




More information about the dev mailing list