On 6/2/2019 4:24 PM, [email protected] wrote:
> From: Nithin Dabilpuram <[email protected]>
>
> Add device stop, close and reset operations.
>
> Signed-off-by: Nithin Dabilpuram <[email protected]>
> Signed-off-by: Vamsi Attunuru <[email protected]>
<...>
> @@ -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.