[dpdk-dev] [PATCH v1 56/58] net/octeontx2: add device stop and close operations

Ferruh Yigit ferruh.yigit at intel.com
Thu Jun 6 18:23:12 CEST 2019


On 6/2/2019 4:24 PM, jerinj at marvell.com wrote:
> From: Nithin Dabilpuram <ndabilpuram at marvell.com>
> 
> Add device stop, close and reset operations.
> 
> Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
> Signed-off-by: Vamsi Attunuru <vattunuru at marvell.com>

<...>

> @@ -1792,6 +1844,24 @@ otx2_eth_dev_uninit(struct rte_eth_dev *eth_dev, bool mbox_close)
>  	return 0;
>  }
>  
> +static void
> +otx2_nix_dev_close(struct rte_eth_dev *eth_dev)
> +{
> +	otx2_eth_dev_uninit(eth_dev, true);
> +}

'close' should free all PMD resources, with 'RTE_ETH_DEV_CLOSE_REMOVE' flag
ethdev API can free the ethdev level allocated memory itself.





More information about the dev mailing list