> -----Original Message-----
> From: Bing Zhao <bi...@nvidia.com>
> Sent: Tuesday, November 26, 2024 10:26
> To: Dariusz Sosnowski <dsosnow...@nvidia.com>; Slava Ovsiienko
> <viachesl...@nvidia.com>; dev@dpdk.org; Raslan Darawsheh
> <rasl...@nvidia.com>
> Cc: Ori Kam <or...@nvidia.com>; Suanming Mou <suanmi...@nvidia.com>;
> Matan Azrad <ma...@nvidia.com>; Maayan Kashani
> <mkash...@nvidia.com>
> Subject: [PATCH] net/mlx5: fix the unneeded stub table allocation
> 
> The HWS non-template flow API is reusing some implementation of template
> API to unifiy code logic. So for each rule creation, a stub / temporary table 
> is
> used in order to reuse the actions construction.
> 
> Since this is temporary and used only internally, there is no need to save the
> table permanently. Only parts of them are mandatory, so the allocation / free
> from the heap of RTE memory is a waste and causes a lot of overhead. By
> using the pre-allocated workspace and set the needed fields expliticly will 
> save
> the overhead and help to speed up the rule insertion rate.
> 
> Fixes: 27d171b88031 ("net/mlx5: abstract flow action and enable
> reconfigure")
> Cc: mkash...@nvidia.com
> 
> Signed-off-by: Bing Zhao <bi...@nvidia.com>

Acked-by: Dariusz Sosnowski <dsosnow...@nvidia.com>

Best regards,
Dariusz Sosnowski

Reply via email to