DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/nfp: fix the problem of mask table free
@ 2022-11-15  1:13 Chaoyong He
  2022-11-18 12:45 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Chaoyong He @ 2022-11-15  1:13 UTC (permalink / raw)
  To: dev; +Cc: oss-drivers, niklas.soderlund, Chaoyong He

The free process of mask table has problem, should use
'rte_has_free()' rather than 'rte_free()'.

Fixes: ac09376096d8 ("net/nfp: add structures and functions for flow offload")

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
---
 drivers/net/nfp/nfp_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c
index af56e7bef2..6f79d950db 100644
--- a/drivers/net/nfp/nfp_flow.c
+++ b/drivers/net/nfp/nfp_flow.c
@@ -4116,7 +4116,7 @@ nfp_flow_priv_init(struct nfp_pf_dev *pf_dev)
 free_flow_table:
 	rte_hash_free(priv->flow_table);
 free_mask_table:
-	rte_free(priv->mask_table);
+	rte_hash_free(priv->mask_table);
 free_stats:
 	rte_free(priv->stats);
 free_stats_id:
-- 
2.29.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/nfp: fix the problem of mask table free
  2022-11-15  1:13 [PATCH] net/nfp: fix the problem of mask table free Chaoyong He
@ 2022-11-18 12:45 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2022-11-18 12:45 UTC (permalink / raw)
  To: Chaoyong He, dev; +Cc: oss-drivers, niklas.soderlund

On 11/15/2022 1:13 AM, Chaoyong He wrote:
> The free process of mask table has problem, should use
> 'rte_has_free()' rather than 'rte_free()'.

s/_has_/_hash_/

> 
> Fixes: ac09376096d8 ("net/nfp: add structures and functions for flow offload")
> 
> Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-18 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-15  1:13 [PATCH] net/nfp: fix the problem of mask table free Chaoyong He
2022-11-18 12:45 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).