net/cpfl: release memzone for rxq

Message ID 20230613083017.43290-1-beilei.xing@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers
Series net/cpfl: release memzone for rxq |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/github-robot: build success github build: passed
ci/Intel-compilation success Compilation OK
ci/iol-unit-testing success Testing PASS
ci/iol-aarch-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS

Commit Message

Xing, Beilei June 13, 2023, 8:30 a.m. UTC
  From: Beilei Xing <beilei.xing@intel.com>

Memzone of split Rx queue is not released, this commit fixes
this issue.

Fixes: c3f4af354506 ("net/cpfl: refine structures")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
---
 drivers/net/cpfl/cpfl_rxtx.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Yaqi Tang June 14, 2023, 2:54 a.m. UTC | #1
> -----Original Message-----
> From: beilei.xing@intel.com <beilei.xing@intel.com>
> Sent: Tuesday, June 13, 2023 4:30 PM
> To: Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Xing, Beilei <beilei.xing@intel.com>
> Subject: [PATCH] net/cpfl: release memzone for rxq
> 
> From: Beilei Xing <beilei.xing@intel.com>
> 
> Memzone of split Rx queue is not released, this commit fixes this issue.
> 
> Fixes: c3f4af354506 ("net/cpfl: refine structures")
> 
> Signed-off-by: Beilei Xing <beilei.xing@intel.com>
> ---

Verified and passed.

Tested-by: Yaqi Tang <yaqi.tang@intel.com>
  
Qi Zhang June 14, 2023, 5:57 a.m. UTC | #2
> -----Original Message-----
> From: Tang, Yaqi <yaqi.tang@intel.com>
> Sent: Wednesday, June 14, 2023 10:55 AM
> To: Xing, Beilei <beilei.xing@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Xing, Beilei <beilei.xing@intel.com>
> Subject: RE: [PATCH] net/cpfl: release memzone for rxq
> 
> 
> > -----Original Message-----
> > From: beilei.xing@intel.com <beilei.xing@intel.com>
> > Sent: Tuesday, June 13, 2023 4:30 PM
> > To: Wu, Jingjing <jingjing.wu@intel.com>
> > Cc: dev@dpdk.org; Xing, Beilei <beilei.xing@intel.com>
> > Subject: [PATCH] net/cpfl: release memzone for rxq
> >
> > From: Beilei Xing <beilei.xing@intel.com>
> >
> > Memzone of split Rx queue is not released, this commit fixes this issue.
> >
> > Fixes: c3f4af354506 ("net/cpfl: refine structures")
> >
> > Signed-off-by: Beilei Xing <beilei.xing@intel.com>
> > ---
> 
> Verified and passed.
> 
> Tested-by: Yaqi Tang <yaqi.tang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi
  

Patch

diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c
index 9d278dca54..2ef6871a85 100644
--- a/drivers/net/cpfl/cpfl_rxtx.c
+++ b/drivers/net/cpfl/cpfl_rxtx.c
@@ -304,6 +304,7 @@  cpfl_rx_queue_release(void *rxq)
 		if (q->bufq1)
 			cpfl_rx_split_bufq_release(q->bufq1);
 
+		rte_memzone_free(q->mz);
 		rte_free(cpfl_rxq);
 		return;
 	}