[dpdk-dev] [PATCH] net/tap: release port upon close
Ferruh Yigit
ferruh.yigit at intel.com
Tue Sep 15 16:52:47 CEST 2020
On 8/28/2020 1:37 PM, wangyunjian wrote:
> From: Yunjian Wang <wangyunjian at huawei.com>
>
> Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private
> resources for the port can be freed by rte_eth_dev_close().
>
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
<...>
> @@ -1040,6 +1044,9 @@ tap_dev_close(struct rte_eth_dev *dev)
> struct pmd_process_private *process_private = dev->process_private;
> struct rx_queue *rxq;
>
> + if (process_private == NULL)
> + return;
Why this check is required?
More information about the dev
mailing list