net/mlx5: add flow prepare function