Re: [PATCH net-next V2 1/7] net/mlx5e: Enhance function structures for self loopback prevention application

From: Simon Horman
Date: Mon Nov 03 2025 - 08:57:42 EST


On Thu, Oct 30, 2025 at 03:32:33PM +0200, Tariq Toukan wrote:
> The re-application of self loopback prevention attributes in TIRs is
> necessary in old firmwares (where tis_tir_td_order cap is cleared) after
> recreation of SQs.
>
> However, this is not needed in new firmware with tis_tir_td_order=1.
>
> As a preparation patch, enhance the function structures to differentiate
> between an explicit loopback prevention configuration apply, and the
> re-apply operation required by old firmware.
>
> Loopback selftests should now call mlx5e_modify_tirs_lb() directly, as
> their use case is not related to the firmware limitation.
>
> Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>
> Reviewed-by: Carolina Jubran <cjubran@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>