[PATCH 20.11] net/nfp: free HW rings memzone on queue release

Luca Boccassi bluca at debian.org
Tue Feb 22 15:27:32 CET 2022


On Tue, 2022-02-22 at 15:37 +0200, heinrich.kuhn at corigine.com wrote:
> From: Heinrich Kuhn <heinrich.kuhn at corigine.com>
> 
> [upstream commit 15174c40b70dfa89c1d94ff93ae756fae8d471bc]
> 
> During rx/tx queue setup, memory is reserved for the hardware rings.
> This memory zone should subsequently be freed in the queue release
> logic. This commit also adds a call to the release logic in the
> dev_close() callback so that the ring memzone may be freed during port
> close too.
> 
> Fixes: b812daadad0d ("nfp: add Rx and Tx")
> 
> Signed-off-by: Heinrich Kuhn <heinrich.kuhn at corigine.com>
> Signed-off-by: Simon Horman <simon.horman at corigine.com>
> ---
>  drivers/net/nfp/nfp_net.c     | 16 ++++++++++++++++
>  drivers/net/nfp/nfp_net_pmd.h |  6 ++++++
>  2 files changed, 22 insertions(+)

Thanks, applied and pushed.

-- 
Kind regards,
Luca Boccassi


More information about the stable mailing list