DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: fix job flow memory calculation
@ 2023-11-09  8:12 Suanming Mou
  2023-11-12 14:26 ` Raslan Darawsheh
  0 siblings, 1 reply; 2+ messages in thread
From: Suanming Mou @ 2023-11-09  8:12 UTC (permalink / raw)
  To: Matan Azrad, Viacheslav Ovsiienko, Ori Kam
  Cc: dev, rasland, Dariusz Sosnowski

The upd_flow is the final object in the memory layout.

This commit adjusts the new job memory start from upd_flow.

Fixes: 63296851fadb ("net/mlx5: support flow rule update")

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index deb0be05fb..d512889682 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -9088,8 +9088,7 @@ flow_hw_configure(struct rte_eth_dev *dev,
 					    &priv->hw_q[nb_q_updated];
 		else
 			priv->hw_q[i].job = (struct mlx5_hw_q_job **)
-				&job[_queue_attr[i - 1]->size - 1].items
-				 [MLX5_HW_MAX_ITEMS];
+				&job[_queue_attr[i - 1]->size - 1].upd_flow[1];
 		job = (struct mlx5_hw_q_job *)
 		      &priv->hw_q[i].job[_queue_attr[i]->size];
 		mhdr_cmd = (struct mlx5_modification_cmd *)
-- 
2.34.1


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

* RE: [PATCH] net/mlx5: fix job flow memory calculation
  2023-11-09  8:12 [PATCH] net/mlx5: fix job flow memory calculation Suanming Mou
@ 2023-11-12 14:26 ` Raslan Darawsheh
  0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2023-11-12 14:26 UTC (permalink / raw)
  To: Suanming Mou, Matan Azrad, Slava Ovsiienko, Ori Kam
  Cc: dev, Dariusz Sosnowski

Hi,

> -----Original Message-----
> From: Suanming Mou <suanmingm@nvidia.com>
> Sent: Thursday, November 9, 2023 10:12 AM
> To: Matan Azrad <matan@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Ori Kam <orika@nvidia.com>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>; Dariusz
> Sosnowski <dsosnowski@nvidia.com>
> Subject: [PATCH] net/mlx5: fix job flow memory calculation
> 
> The upd_flow is the final object in the memory layout.
> 
> This commit adjusts the new job memory start from upd_flow.
> 
> Fixes: 63296851fadb ("net/mlx5: support flow rule update")
> 
> Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

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

end of thread, other threads:[~2023-11-12 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09  8:12 [PATCH] net/mlx5: fix job flow memory calculation Suanming Mou
2023-11-12 14:26 ` Raslan Darawsheh

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).