net/mlx4: merge flow creation and validation code