[dpdk-dev] [PATCH v3] net/avp: remove resources when port is closed

Ferruh Yigit ferruh.yigit at intel.com
Tue Jun 25 19:27:38 CEST 2019


On 6/19/2019 12:33 PM, Peters, Matt wrote:
>> -----Original Message-----
>> From: Legacy, Allain
>> Sent: Tuesday, June 18, 2019 3:19 PM
>> To: thomas at monjalon.net
>> Cc: dev at dpdk.org; ferruh.yigit at intel.com; Peters, Matt
>> Subject: [PATCH v3] net/avp: remove resources when port is closed
>>
>> The rte_eth_dev_close() function now handles freeing resources for
>> devices (e.g., mac_addrs).  To conform with the new close() behaviour we
>> are asserting the RTE_ETH_DEV_CLOSE_REMOVE flag so that
>> rte_eth_dev_close() releases all device level dynamic memory.
>>
>> Second level memory allocated to each individual rx/tx queue is now
>> freed as part of the close() operation therefore making it safe for the
>> rte_eth_dev_close() function to free the device private data without
>> orphaning the rx/tx queue pointers.
>>
>> Cc: Matt Peters <matt.peters at windriver.com>
>> Signed-off-by: Allain Legacy <allain.legacy at windriver.com>
> 
> Acked-by: Matt Peters <matt.peters at windriver.com>
> 

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list