[dpdk-dev] [PATCH 2/4] net/dpaa2: improve the error handling in dev init
Ferruh Yigit
ferruh.yigit at intel.com
Fri May 12 15:51:32 CEST 2017
On 4/19/2017 2:09 PM, Hemant Agrawal wrote:
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
<...>
> - /*Close the device at underlying layer*/
> - ret = dpni_close(dpni, CMD_PRI_LOW, priv->token);
> - if (ret) {
> - PMD_INIT_LOG(ERR, "Failure closing dpni device with"
> - " error code %d\n", ret);
> - }
> -
> - /*Free the allocated memory for ethernet private data and dpni*/
> - priv->hw = NULL;
> - free(dpni);
Where this free operation done when it is removed from dpaa2_dev_uninit() ?
> -
> eth_dev->dev_ops = NULL;
> eth_dev->rx_pkt_burst = NULL;
> eth_dev->tx_pkt_burst = NULL;
>
More information about the dev
mailing list