> -----Original Message-----
> From: Bing Zhao <[email protected]>
> Sent: Tuesday, November 26, 2024 10:26
> To: Dariusz Sosnowski <[email protected]>; Slava Ovsiienko
> <[email protected]>; [email protected]; Raslan Darawsheh
> <[email protected]>
> Cc: Ori Kam <[email protected]>; Suanming Mou <[email protected]>;
> Matan Azrad <[email protected]>; Maayan Kashani
> <[email protected]>
> 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: [email protected]
> 
> Signed-off-by: Bing Zhao <[email protected]>

Acked-by: Dariusz Sosnowski <[email protected]>

Best regards,
Dariusz Sosnowski

Reply via email to