Re: [PATCH] net/mlx5: Fix L3 tunnel entropy refcount leak

From: Simon Horman

Date: Mon Jun 15 2026 - 08:25:17 EST


On Sat, Jun 13, 2026 at 11:36:31PM +0800, lirongqing wrote:
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> mlx5_tun_entropy_refcount_inc() counts both VXLAN and L2-to-L3
> tunnel reformat entries as entropy-enabling users. The matching
> decrement path only handled VXLAN, leaving L2-to-L3 tunnel entries
> counted after release.
>
> Handle MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL in
> mlx5_tun_entropy_refcount_dec() as well so the enabling entry
> refcount remains balanced.
>
> Fixes: f828ca6a2fb6 ("net/mlx5e: Add support for hw encapsulation of MPLS over UDP")
> Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>