[dpdk-stable] [PATCH 19.11] net/cxgbe: fix queue DMA ring leaks during port close

Luca Boccassi bluca at debian.org
Wed Dec 2 18:16:46 CET 2020


On Wed, 2020-12-02 at 22:14 +0530, Rahul Lakkireddy wrote:
> [ upstream commit 6b78a629954c3857d4bc651a673fe102958a12db ]
> 
> Free up the DMA memzones properly for all the port's queues during
> port close. So, rework DMA ring allocation/free logic to use
> rte_eth_dma_zone_reserve()/rte_eth_dma_zone_free() helper functions
> for allocating/freeing the memzones.
> 
> The firmware event queue doesn't have an associated freelist queue.
> So, remove check that tries to give memzone name for a non-existent
> freelist queue.
> 
> Also, add a missing free for the control queue mempools.
> 
> Fixes: 0462d115441d ("cxgbe: add device related operations")
> 
> Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy at chelsio.com>
> ---
>  drivers/net/cxgbe/base/adapter.h |   1 +
>  drivers/net/cxgbe/cxgbe_ethdev.c |   7 +-
>  drivers/net/cxgbe/sge.c          | 175 +++++++++++++++++--------------
>  3 files changed, 101 insertions(+), 82 deletions(-)

Acked-by: Luca Boccassi <bluca at debian.org>

Thanks, applied.

-- 
Kind regards,
Luca Boccassi


More information about the stable mailing list