net/pcap: fix file descriptor leak on close
authorTengfei Zhang <zypscode@outlook.com>
Tue, 2 Mar 2021 16:51:30 +0000 (16:51 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Mar 2021 13:53:57 +0000 (14:53 +0100)
commite412a138db918019cbd883132f81860951515a9b
tree8beee3cbb55ef94b55c8b75c2417914ada2e800b
parentfb7c1b59273b62c387c2d186a4393164975ade38
net/pcap: fix file descriptor leak on close

pcap fd was opend when vdev probed,
but not closed when vdev removed.

Fixes: c956caa6eabf ("pcap: support port hotplug")
Cc: stable@dpdk.org
Signed-off-by: Tengfei Zhang <zypscode@outlook.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c