]> git.droids-corp.org - dpdk.git/commit
net/nfp: free HW ring memzone on queue release
authorHeinrich Kuhn <heinrich.kuhn@corigine.com>
Wed, 19 Jan 2022 11:48:00 +0000 (13:48 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 26 Jan 2022 16:29:59 +0000 (17:29 +0100)
commit15174c40b70dfa89c1d94ff93ae756fae8d471bc
tree7944f906151701f498472064c2c87b1bdee151e6
parentadcf2717cb158f95c83c69c13b47578b15111b50
net/nfp: free HW ring memzone on queue release

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")
Cc: stable@dpdk.org
Signed-off-by: Heinrich Kuhn <heinrich.kuhn@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
drivers/net/nfp/nfp_ethdev.c
drivers/net/nfp/nfp_ethdev_vf.c
drivers/net/nfp/nfp_rxtx.c