[PATCH 3/5] net/pcap: fix segment fault when parse devargs

Ferruh Yigit ferruh.yigit at amd.com
Thu Mar 16 19:20:17 CET 2023


On 3/14/2023 12:48 PM, 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'.
> 
> Fixes: 4c173302c307 ("pcap: add new driver")
> Fixes: 53bf48403409 ("net/pcap: capture only ingress packets from Rx iface")
> Fixes: c9507cd0cada ("net/pcap: support physical interface MAC address")
> Fixes: a3f5252e5cbd ("net/pcap: enable infinitely Rx a pcap file")
> Cc: stable at dpdk.org
> 

Can you please check following callbacks too:
`rx_iface_args_process()`
`open_tx_iface()`


More information about the dev mailing list