[PATCH v2] net/mlx5: cleanup unused olx parameter in Tx free routines
Raslan Darawsheh
rasland at nvidia.com
Tue Mar 24 16:28:25 CET 2026
Hi,
On 23/03/2026 2:41 PM, Viacheslav Ovsiienko wrote:
> The olx parameter is intended to be known in compile time and
> widely used for static optimizations while generating the tx_burst
> rotuines code from the template.
>
> However, in the mlx5_tx_free_mbuf routine we have the olx parameter
> provided in runtime only, for all possible execution paths. And the
> only intended optimization (that actually does not happen) is to check
> whether multi-buf packets are supported. As fast free offload is not
> supported for multi-buf packets, we can simplify the code and get rid of
> the unused olx parameter in the entire call chain.
>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the dev
mailing list