[PATCH 5.10 040/120] net/mlx5: Fix function calculation for page trees