net/mlx5: split flow validation to dedicated function