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 <[email protected]>
Acked-by: Dariusz Sosnowski <[email protected]>


Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh

Reply via email to