[dpdk-dev] [PATCH v2] net/pcap: solve pcap resource leakage when port probe

Ferruh Yigit ferruh.yigit at intel.com
Thu Sep 9 15:02:24 CEST 2021


On 8/30/2021 4:01 AM, Qiming Chen wrote:
> When the port is probed, if the eth_from_pcaps function fails, the
> previously opened pcap resources are not released, causing resource
> leakage.
> 
> The patch solves the problem of resource leakage caused by abnormal
> branch exit during the port probe process.
> 
> Signed-off-by: Qiming Chen <chenqiming_huawei at 163.com>

Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

This seems missing from the begging of the PMD, need to following to commit log:
	Fixes: 4c173302c307 ("pcap: add new driver")
	Cc: stable at dpdk.org


Also we use 'fix' as almost like keyword, so please prefer 'fix' against 'solve'
next time, I will update while merging.

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


More information about the dev mailing list